Token & Cost Estimator
Estimate tokens, context usage, and input, output, cached, and total API costs across 28 models for text or multi-turn conversations.
o200k · exact
Est. Tokens
0% of context
0
within window: 0% of GPT-4o window
Characters
0
Words
0
Tokens / Word
0.000
Tokens / 100 chars
0.0
o200k encoder approximation; exact billing uses the provider tokenizer.
Input / 1M
$2.5
Output / 1M
$10
Est. Input Cost
$0.000000
at $2.5/M
Est. Output Cost
$0.005120
512 out tokens
Est. Total Cost
$0.005120
input + 512 output tokens
LLM token counter: estimate usage and cost
Plan context windows and API spend with model-aware token estimates for text or multi-turn conversations.
Features
- Approximate token counts across 28 models and 10 provider families with context utilization
- Single text and multi-turn conversation modes with token visualization and model comparison
- Input, output, cached-input, and total cost estimates with expected-output controls
- Trend charts, context warnings, insights, JSON report export, and local browser-only processing
How to use
- Paste text or add role-based conversation turns.
- Select a model and set expected output or cached-input options.
- Review estimated tokens, context utilization, and cost.
Frequently asked questions
What does a token counter measure?
It estimates how text is split into model tokens and shows context usage and estimated API cost for the selected model.
Are these token counts exact for every model?
Counts are dependency-free estimates intended for planning; use the provider's official tokenizer when an exact billing or limit decision matters.
Can I count a multi-turn conversation?
Yes. Switch to conversation mode to count role-based turns and estimate the combined context and cost.