What this calculator does
Most developer & utility tools bury the answer under ads and jargon. The token cost calculator shows the number first, the breakdown next, and the assumptions in plain language.
The Token Cost Calculator turns raw token counts and per-million-token prices into money. Use it when you have a custom or self-hosted model, an enterprise contract, or a provider not listed in the OpenAI/AI calculators.
How to use the Token Cost Calculator
- Pick the model or enter its per-million-token prices.
- Enter average input & output tokens per request and monthly request volume.
- Review the monthly cost, per-request cost and input/output split chart.
The formula
cost = tokens × price_per_1M ÷ 1,000,000
Worked example
1,200 input tokens at $3/M + 600 output tokens at $15/M = $0.0126 per request. At 20,000 req/mo → $252/month.
Common mistakes
- Dividing by 1,000 instead of 1,000,000 — a 1000× error in your favor (or against you).
- Mixing per-1K and per-1M prices between providers when comparing.
- Forgetting that context caching and batch APIs can cut prices 50–90%.
When to use it
Use when negotiating provider pricing, evaluating a new model, or checking what a single long prompt actually costs.
Pro tips for the Token Cost Calculator
- Bookmark this page: the URL and inputs are all you need to reproduce the exact result later.
- Save your favorite scenarios by clicking the star icon — they're stored locally, no account needed.
- For big decisions, run best-case, expected, and worst-case scenarios and compare the breakdowns side by side.
Frequently asked questions
›How is cost calculated?
Cost = (input tokens × input price + output tokens × output price) ÷ 1,000,000, then multiplied by monthly requests.
›What is a token?
Roughly 4 characters or ¾ of an English word. 1,000 tokens ≈ 750 words.
›Are prices real-time?
No — prices reflect published list rates and can change. Verify with the provider before budgeting.
›Does this include fine-tuning or images?
No. This estimator covers text chat/completion tokens only.
›Where do I find price per 1M tokens?
Check the provider's pricing page. Anthropic and OpenAI list per-million rates; Google lists per-character and per-million.
›Same price for input and output?
Rare. Almost every provider charges 2–5× more for output tokens.
›Does the Token Cost Calculator store the numbers I enter?
No. All math runs locally in your browser — nothing is sent to a server, and closing the tab discards the inputs unless you save them to favorites.
›Where does the formula come from?
The formula shown in the "How it works" section is the same one you'll find in standard developer & utility references — no proprietary tweaks or hidden weightings.
LLM pricing comparison
Prices per 1M tokens, USD| Provider | Model | Input | Output | Context |
|---|---|---|---|---|
| OpenAI | GPT-4o | $2.500 | $10.00 | 128k |
| OpenAI | GPT-4o mini | $0.150 | $0.60 | 128k |
| OpenAI | o1 | $15.000 | $60.00 | 200k |
| Anthropic | Claude 3.5 Sonnet | $3.000 | $15.00 | 200k |
| Anthropic | Claude 3.5 Haiku | $0.800 | $4.00 | 200k |
| Anthropic | Claude 3 Opus | $15.000 | $75.00 | 200k |
| Gemini 1.5 Pro | $1.250 | $5.00 | 2M | |
| Gemini 1.5 Flash | $0.075 | $0.30 | 1M | |
| Meta | Llama 3.1 405B (host) | $2.700 | $2.70 | 128k |
| DeepSeek | DeepSeek V3 | $0.270 | $1.10 | 64k |
Prices reflect public API list rates and may change — check each provider for current pricing before committing to spend.
Embed this calculator
Drop the Token Cost Calculator into your own site or blog post. Free to use — a small “Powered by CalcPilot” link is appreciated.
<iframe src="https://calcpilot.tools/calculators/token-cost-calculator?embed=1" width="100%" height="720" style="border:1px solid #e5e7eb;border-radius:12px;max-width:720px;" loading="lazy" title="Token Cost Calculator — CalcPilot"></iframe>Related calculators
Hand-picked next steps if you found the Token Cost Calculator useful.