AI LLM Token & API Cost Calculator
Describe one typical request and how often it runs. The calculator prices the same workload on 32 current models from OpenAI, Anthropic, Google, xAI, Mistral, Alibaba, DeepSeek, Amazon and Meta, so you can see the bill before you pick a model.
Results
List prices in USD from each provider’s official pricing page, last checked 2026-12-03. Taxes, free tiers and volume discounts are not included.
Your current result is saved as scenario A. Change any input to see scenario B next to it.
Results
- Input (uncached)$360.0042.9%
- Output$480.0057.1%
Price list per 1M tokens
| Model | Provider | Input / 1M | Output / 1M | Context | Per month |
|---|---|---|---|---|---|
| Ministral 3 8B | Mistral | $0.15 | $0.15 | 256K | $34.20 |
| Qwen3.5 Flash | Alibaba | $0.10 | $0.40 | 1M | $37.20 |
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | 1.1M | $42.00 |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | 1M | $42.00 |
| Mistral Small 4 | Mistral | $0.15 | $0.60 | 256K | $55.80 |
| GPT-5.4 nano | OpenAI | $0.20 | $1.25 | 400K | $96.00 |
| DeepSeek V4.1 Flash | DeepSeek | $0.30 | $1.20 | 1M | $111.60 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.50 | 1M | $117.00 | |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 | 1M | $174.00 | |
| Qwen3.5 Plus | Alibaba | $0.40 | $2.40 | 1M | $187.20 |
| Grok Build 0.1 | xAI | $1.00 | $2.00 | 256K | $276.00 |
| Gemini 3.8 Flash | $0.75 | $3.75 | 1M | $315.00 | |
| Amazon Ergo | Amazon | $1.00 | $3.00 | 1M | $324.00 |
| Grok 4.3 | xAI | $1.25 | $2.50 | 1M | $345.00 |
| GPT-5.4 mini | OpenAI | $0.75 | $4.50 | 400K | $351.00 |
| GPT-6.1 Terra | OpenAI | $1.00 | $5.00 | 1.1M | $420.00 |
| DeepSeek V4 Pro | DeepSeek | $1.32 | $3.96 | 1M | $427.68 |
| Muse Spark 1.3 | Meta | $1.25 | $4.25 | 1M | $429.00 |
| Qwen4 Max | Alibaba | $1.50 | $4.50 | 1M | $486.00 |
| Gemini 4 Hydrogen | $1.50 | $7.50 | 1M | $630.00 | |
| Mistral Medium 3.5 | Mistral | $1.50 | $7.50 | 256K | $630.00 |
| Grok 4.7 | xAI | $2.00 | $6.00 | 500K | $648.00 |
| GPT-6.2 Sol | OpenAI | $2.00 | $10.00 | 1.1M | $840.00 |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $10.00 | 1M | $840.00 |
| Gemini 3.1 Pro | $2.00 | $12.00 | 1M | $936.00 | |
| Gemini 4 Neon | $3.00 | $15.00 | 1M | $1,260 | |
| Claude Opus 5.5 | Anthropic | $4.00 | $20.00 | 1M | $1,680 |
| Gemini 4 Carbon | $4.00 | $20.00 | 1M | $1,680 | |
| Gemini 4 Argon | $4.00 | $20.00 | 1M | $1,680 | |
| GPT-6.2 Astra | OpenAI | $8.00 | $40.00 | 1.1M | $3,360 |
| Claude Fable 5.2 | Anthropic | $8.00 | $40.00 | 1M | $3,360 |
| GPT-5.5 Pro | OpenAI | $30.00 | $180.00 | 1M | $14,040 |
How to use it
- Pick the model you plan to use and enter the tokens one request sends (prompt, system text, documents, chat history) and the tokens it gets back.
- Set the number of requests per day and active days per month. If part of the prompt repeats, enter the share served from the prompt cache; choose batch pricing for work that can wait.
- Read the cards, then scan the bar chart: every model runs the identical workload, so the bars are a fair price comparison. The table lists the per-million rates used.
How the cost is calculated
Providers bill input and output tokens separately, per million tokens. Cached input is billed at a much lower rate:
cost per request = (input × (1 − cache share) × input price
+ input × cache share × cached price
+ output × output price) ÷ 1,000,000
monthly cost = cost per request × requests per day × days
batch / off-peak = monthly cost × 0.5
Some models switch to a higher rate card once a single prompt passes a threshold (Gemini 3.1 Pro above 200K tokens, Claude Haiku 5.5 above 100K). The calculator applies the right card automatically, based on your input size. All rates are kept in one dated price file, shown under the results.
Example: a support chatbot on Claude Sonnet 5.5
Each answer reads 3,000 input tokens (instructions plus the conversation) and writes 800 tokens. At 2,000 requests a day for 30 days that is 60,000 calls and 228 million tokens a month.
On Claude Sonnet 5.5 ($2 in / $10 out) one request costs $0.014, so the month comes to $840, or $14 per 1,000 requests. Output is only a fifth of the tokens but 57.1% of the bill, because it is five times dearer per token.
Caching half of the prompt drops the month to $669; batch pricing halves it to $420. The same traffic would cost about $1,680 on Opus 5.5 and only $34.20 on the cheapest model, Ministral 3 8B.
Tips to cut the bill
- Trim output first. Ask for short, structured answers; every saved output token is worth 3–6 input tokens.
- Put the long, unchanging part of the prompt first so it can be cached, and keep it byte-for-byte identical between calls.
- Route easy requests to a small model and escalate only the hard ones; a two-tier setup often costs a third of using the flagship everywhere.
Questions about AI API pricing
How many tokens is a word?
For English text, 1,000 tokens is roughly 750 words. Other languages, code and tables usually need more tokens per word, and each provider uses its own tokenizer, so measure a few real requests.
Do reasoning or thinking tokens count?
Yes. Hidden reasoning is billed as output on all four providers. If your model thinks before answering, add those tokens to the output figure.
Are these prices current?
They are list prices copied from the official pricing pages on the date shown under the results. Providers change rates often, so check before you sign a large contract.
Why is DeepSeek cheaper at night?
DeepSeek charges half price outside its peak hours. Choose the batch / off-peak option to model jobs you can schedule then.
Results are estimates for planning only and are not financial, legal or engineering advice.