Cost Meter
Run cost split by model or task and compared against an optional session budget.
Run cost
$0.0524
- $0.0284
Reasoning
18,240 tokens
- $0.0162
Response generation
4,620 tokens
- $0.0078
Tool calls
2,380 tokens
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/cost-meter.jsonAPI reference
Cost Meter
| Prop | Type | Default | Description |
|---|---|---|---|
items | CostItem[] | — | Provides cost and token attribution. |
budget | number | — | Adds a session budget comparison. |
currency | string | $ | Sets the displayed currency symbol. |