AI / Agent
TokenCounter
Displays prompt, completion, and total token counts with a visual usage bar against the context limit.
Preview:1280px
Token Usage
2.9% of limit
Prompt
3.2k
Completion
512
Total
3.8k
Est. cost:$0.0075
Token Usage
94.5% of limit
Prompt
185.0k
Completion
4.1k
Total
189.1k
Est. cost:$0.5673
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| prompt | number | 0 | Number of prompt tokens. |
| completion | number | 0 | Number of completion tokens. |
| limit | number | - | Maximum context window size for the model. |
| costPer1k | number | - | Cost per 1,000 tokens. |