Skip to content
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

PropTypeDefaultDescription
promptnumber0Number of prompt tokens.
completionnumber0Number of completion tokens.
limitnumber-Maximum context window size for the model.
costPer1knumber-Cost per 1,000 tokens.