Input vs output token spend
Output tokens usually cost several times more than input, so answer length is what really drives your bill.
Home / Dev & AI / AI & LLM Cost / AI Token Cost Calculator
AI & LLM Cost
See exactly what your tokens cost. Enter how many input and output tokens each request uses, choose a model, and this AI token cost calculator prices the split and compares every major 2026 model side by side.
Estimated monthly cost
$0
Input vs output token spend
Output tokens usually cost several times more than input, so answer length is what really drives your bill.
The same workload priced across AI models
Your monthly token volume run through popular 2026 models, cheapest first.
Tokens are the unit AI providers bill in, so understanding token cost is the key to controlling any AI budget. A token is a short piece of text, about four characters on average. Your prompt, system message and any documents you attach count as input tokens, and everything the model writes back counts as output tokens, each priced at its own per million rate.
This AI token cost calculator makes that split visible. It shows how much of your spend comes from feeding the model context versus generating answers, so you can see whether to trim prompts, shorten replies or switch to a cheaper model for the volume you run.
On Claude Sonnet 4.5 ($3 input, $15 output per million), a request with 2,000 input tokens and 800 output tokens costs 0.002 × $3 + 0.0008 × $15 = $0.006 + $0.012 = $0.018 per request. Run 500,000 of those a month and you are looking at about $9,000.
| Model | Provider | Input / 1M tokens | Output / 1M tokens |
|---|---|---|---|
| GPT-5 | OpenAI | $1.25 | $10.00 |
| GPT-5 mini | OpenAI | $0.25 | $2.00 |
| Claude Opus 4.1 | Anthropic | $15.00 | $75.00 |
| Claude Sonnet 4.5 | Anthropic | $3.00 | $15.00 |
| Claude Haiku 4.5 | Anthropic | $1.00 | $5.00 |
| Gemini 2.5 Pro | $1.25 | $10.00 | |
| Gemini 2.5 Flash | $0.30 | $2.50 | |
| DeepSeek V3 | DeepSeek | $0.27 | $1.10 |
| Grok 4 | xAI | $3.00 | $15.00 |
| Llama 4 Maverick | Meta | $0.20 | $0.60 |
Prices are public list estimates for planning as of July 2026 and change often. Providers bill per token, where roughly 1,000 tokens equals about 750 words. Always confirm live rates on the provider pricing page before you set a budget.
A quick rule is 1 token ≈ 4 characters ≈ 0.75 words in English. For an exact count, use the provider tokenizer, since code, punctuation and other languages tokenize differently.
No. Output tokens usually cost three to six times more than input tokens, because generating text is far more compute intensive than reading it.
Long system prompts, few-shot examples and large retrieved documents. Context you resend on every call adds up quickly, which is where caching helps most.
A short answer is 50 to 200 tokens, a detailed one 400 to 900. Cap the maximum output length if you want predictable costs.
They are July 2026 list estimates. Confirm the live per million token rate on the provider page before budgeting.