LLM API cost calculator
Enter tokens per request and your request volume to estimate a token budget. Choose a dated model preset or enter custom prices; blank overrides use the selected preset.
Results
- Estimated monthly token cost
- $23.40
- Per request
- $0.00078
- Per day
- $0.78
- Applied rates: input / read / write / output
- $0.1 / $0.01 / $0.125 / $0.5 per 1M
| Model | Tier | Input / read / write / output ($/1M) | Per request | Per month |
|---|---|---|---|---|
| Anthropic Claude Haiku 5.5 | Base | 0.1 / 0.01 / 0.125 / 0.5 | $0.00078 | $23.40 |
| OpenAI GPT-6 Luna | Base | 0.1 / 0.01 / 0.125 / 0.5 | $0.00078 | $23.40 |
| DeepSeek V4.1 Flash (off-peak) | Base | 0.15 / 0.003 / 0.15 / 0.6 | $0.000924 | $27.72 |
| Mistral Small 4 | Base | 0.15 / 0.015 / 0.15 / 0.6 | $0.00102 | $30.60 |
| DeepSeek V4.1 Flash (peak) | Base | 0.3 / 0.006 / 0.3 / 1.2 | $0.00185 | $55.44 |
| Google Gemini 3.5 Flash-Lite (implicit cache) | Base | 0.3 / 0.03 / 0.3 / 2.5 | $0.00334 | $100.20 |
| DeepSeek V4 Pro (off-peak) | Base | 0.66 / 0.022 / 0.66 / 1.98 | $0.00348 | $104.28 |
| Mistral Large 4 | Base | 0.7 / 0.07 / 0.7 / 2.1 | $0.00406 | $121.80 |
| DeepSeek V4 Pro (peak) | Base | 1.32 / 0.044 / 1.32 / 3.96 | $0.00695 | $208.56 |
| Anthropic Claude Sonnet 5.5 | Base | 2 / 0.1 / 2.5 / 10 | $0.01 | $444.00 |
| Google Gemini 4 Carbon (November promotion) | Base | 2 / 0.1 / 2 / 10 | $0.01 | $444.00 |
| OpenAI GPT-6.1 Sol | Base | 2 / 0.1 / 2.5 / 10 | $0.01 | $444.00 |
| Google Gemini 4 Carbon (from December 1, 2026) | Base | 4 / 0.2 / 4 / 20 | $0.03 | $888.00 |
| Anthropic Claude Fable 5.2 | Base | 8 / 0.2 / 10 / 40 | $0.06 | $1,728.00 |
| OpenAI GPT-6 Astra | Base | 10 / 1 / 12.5 / 50 | $0.08 | $2,340.00 |
- Base preset tier selected using total input, including reads and writes. Rate overrides replace the final tier rates.
- Token costs only: excludes taxes, tool calls, explicit cache storage, regional premiums and subscription charges. This comparison does not validate model context limits or equivalent output quality.
- Choose the Carbon preset for your budget dates: November promotion or rates from December 1, 2026. DeepSeek has separate peak and off-peak rows. All prices are editable.
Prices change often. We list the date we last checked each price; confirm on the provider’s official pricing page before you budget.
How it works
Provider pricing tables quote USD per million tokens. Split total input I into cached reads C, cache writes W and ordinary input I − C − W. Each token belongs to just one category. The OpenAI caching guide confirms that the cache-write price is a total rate, not an extra fee on top of ordinary input.
request cost = [(I − C − W) × input rate + C × read rate + W × write rate + output × output rate] ÷ 1,000,000 × (1 − discount ÷ 100) monthly cost = request cost × monthly requests daily cost = monthly cost ÷ chosen days
For daily request volume, monthly requests equal daily requests times the chosen days. A 30-day month is an editable budget assumption. The batch percentage is a user-supplied scenario discount applied uniformly, including in the comparison. Verify the provider’s batch and caching combination before entering a discount. Preset rows keep their published prices even when you override the selected result.
OpenAI Astra, Sol and Luna switch the whole request to higher prices above 272,000 input tokens. Claude Sonnet 5.5 has no long-prompt surcharge. Claude Haiku 5.5 switches above 100,000 input tokens. Cached reads and writes count toward those thresholds. Overrides replace the resulting tier price. Google Carbon has separate presets for its November promotion and the published rates from December 1, 2026: $4 input, $0.20 cached input and $20 output per million tokens. Both appear in the comparison; choose the one matching your budget dates. DeepSeek has peak and off-peak presets. Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday–Friday excluding Chinese public holidays. All other hours, including weekends and Chinese public holidays, use half-price off-peak rates. No intermediate rounding is performed. Displayed money uses cents, or three significant digits for nonzero amounts below one cent.
Worked examples
A daily workload with cached reads
GPT-6 Luna with 10,000 input tokens, including 8,000 cached reads and no writes, plus 1,000 output tokens costs (2,000 × $0.10 + 8,000 × $0.01 + 1,000 × $0.50) ÷ 1,000,000 = $0.00078 per request. At 1,000 requests per day for 30 days, that is $0.78 per day and $23.40 per month.
Cache writes and an assumed batch discount
GPT-6 Astra with 10,000 total input, 8,000 reads, 1,000 writes and 1,000 output tokens costs (1,000 × $10 + 8,000 × $1 + 1,000 × $12.50 + 1,000 × $50) ÷ 1,000,000 = $0.0805. At 1,000 daily requests for 30 days it costs $2,415. A 50% batch scenario gives $1,207.50 per month.
Crossing a long-prompt threshold
Claude Haiku 5.5 with 100,001 ordinary input tokens, no reads or writes, and 1,000 output tokens uses $0.50 input and $2.50 output rates. The unrounded request cost is $0.0525005, displayed as $0.05. Exactly 100,000 input tokens would cost $0.0105 before display rounding.
Frequently asked questions
Are cached tokens additional to input tokens?
Do reasoning tokens cost money?
Can I change a preset’s price?
Does this estimate my complete API bill?
Does the comparison guarantee batch discounts or model capacity?
Sources
- OpenAI — API pricing, Standard and Batch tables (checked 2026-11-14)
- OpenAI — GPT-6 Astra text pricing and long-prompt tier (checked 2026-11-14)
- OpenAI — GPT-6.1 Sol text pricing and long-prompt tier (checked 2026-11-14)
- Google — Carbon Standard pricing from December 1 (checked 2026-11-14)
- OpenAI — GPT-6 Luna text pricing and long-prompt tier (checked 2026-11-14)
- OpenAI — Prompt caching billing categories (checked 2026-11-14)
- OpenAI — Reasoning token billing (checked 2026-11-14)
- Anthropic — Model pricing and long context pricing (checked 2026-11-14)
- Google — Gemini Developer API pricing (checked 2026-11-14)
- DeepSeek — Model details and peak/off-peak pricing (checked 2026-11-14)
- Mistral — Generalist model pricing (checked 2026-11-14)
- Mistral — Prompt caching, billing token categories (checked 2026-11-14)
Last reviewed 2026-11-14; next review due by 2026-11-30. The method is written out above so you can check our math.