Skip to content
Get Pro

Cost Meter

Run cost split by model or task and compared against an optional session budget.

Run cost

$0.0524

of $0.10
  • Reasoning

    18,240 tokens

    $0.0284
  • Response generation

    4,620 tokens

    $0.0162
  • Tool calls

    2,380 tokens

    $0.0078

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/cost-meter.json

API reference

Cost Meter

Cost Meter properties
PropTypeDefaultDescription
itemsCostItem[]Provides cost and token attribution.
budgetnumberAdds a session budget comparison.
currencystring$Sets the displayed currency symbol.