Released 2026-10-19; $0.15 / $0.60 / $0.015 (¥1 / ¥4 / ¥0.1). Flat rate — no long-context tier, and unlike M3 it does not accept service_tier=priority.
Input
$0.300
Output
$0.240400,000 tokens
Input
$0.15 / 1M2,000,000 tokens
Output
$0.60 / 1M
Context window
1,000,000Last updated: 2026-10-20
DeepSeek
DeepSeek V4.1-Flash 1017
$1.08/ month
$12.96 / year
Peak hours
Checkpoint DeepSeek-V4.1-Flash-1017 (released 2026-10-17), served under the API model name `deepseek-flash`; open weights on Hugging Face / ModelScope. The 2026-09-10 launch price is unchanged. The launch checkpoint is kept as its own row (deepseek-flash-0910).
Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
MiniMax
MiniMax M3
$1.08/ month
$12.96 / year
Released 2026-06-01. service_tier=priority costs 1.5× ($0.45 / $1.80 / $0.09). No separate cache-write charge. The cached-input rate above 512k doubles to $0.12; cost.ts applies the input multiplier to the cached rate as well.
Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google
Gemini 3.1 Flash-Lite
$1.10/ month
$13.20 / year
Input
$0.500
Output
$0.600400,000 tokens
Input
$0.25 / 1M2,000,000 tokens
Output
$1.50 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google
Gemini 2.5 Flash
$1.60/ month
$19.20 / year
Input
$0.600
Output
$1.00400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$2.50 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google
Gemini 3.8 Flash
$3.00/ month
$36.00 / year
Introductory pricing: $0.75 / $3.75 / $0.075 through 2026-12-31, then $1.50 / $7.50 / $0.15 from 2027-01-01.
Input
$1.50
Output
$1.50400,000 tokens
Input
$0.75 / 1M2,000,000 tokens
Output
$3.75 / 1M
Context window
1,000,000Last updated: 2026-10-20
Anthropic
Claude Haiku 4.5
$4.00/ month
$48.00 / year
Input
$2.00
Output
$2.00400,000 tokens
Input
$1.00 / 1M2,000,000 tokens
Output
$5.00 / 1M
Context window
200,000Last updated: 2026-10-20
DeepSeek
DeepSeek V4-Pro
$4.22/ month
$50.69 / year
Peak hours
Input
$2.64
Output
$1.58400,000 tokens
Input
$1.32 / 1M2,000,000 tokens
Output
$3.96 / 1M
Context window
1,000,000Last updated: 2026-10-20
Grok
Grok 4.7
$6.40/ month
$76.80 / year
Input
$4.00
Output
$2.40400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$6.00 / 1M
Context window
500,000Last updated: 2026-10-20
Google
Gemini 2.5 Pro
$6.50/ month
$78.00 / year
Input
$2.50
Output
$4.00400,000 tokens
Input
$1.25 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI
GPT-6 sol
$8.00/ month
$96.00 / year
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic
Sonnet 5
$8.00/ month
$96.00 / year
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google
Gemini 4 Argon
$8.00/ month
$96.00 / year
Introductory pricing: $2 / $10 / $0.10 through 2026-11-30, then $4 / $20 / $0.20 from 2026-12-01. Implicit caching only — explicit caching is not supported. Batch and Flex run at half the standard rate; Priority is 1.8×.
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,048,576Last updated: 2026-10-20
Google
Gemini 3.1 Pro Preview
$8.80/ month
$106 / year
Input
$4.00
Output
$4.80400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$12.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI
GPT-5.6 sol
$16.00/ month
$192 / year
Promotional pricing ($4 / $20 / $0.40) is available at least through 2026-11-21; the pre-promo rate was $5 / $30. Re-check after that date.
It depends entirely on the model. GPT-5 nano is around $0.05 input / $0.40 output per 1M tokens; Claude Opus 4.5 is $5 / $25; Gemini 2.5 Flash is $0.30 / $2.50. Use the calculator above to compare every major model at your exact usage.
How do I count tokens?
For OpenAI models, the calculator uses the real tokenizer (o200k_base for GPT-5, cl100k_base for older families). For Anthropic, Google, DeepSeek, MiniMax, and Grok, it uses a CJK-aware character approximation — accurate to within ~10% for English, ~5% for Chinese.
How accurate is this calculator?
Token counts are exact for OpenAI-family models and approximate for everyone else. Prices are sourced from each provider's official pricing page and re-verified regularly, but providers change prices without notice — always check the source link on each model card before relying on a number for billing.
What is prompt caching?
Prompt caching lets you reuse a previously-seen prefix (system prompt, tool definitions, large document) across requests at a fraction of the normal input cost. Anthropic charges ~90% less for cached reads; OpenAI charges ~90% less on GPT-5; DeepSeek charges ~90% less for cache hits. The biggest single cost saver for repeat-prompt workloads.
How often are prices updated?
Prices are re-verified against each provider's official pricing page regularly. The "Updated YYYY-MM-DD" stamp at the top of the page reflects the last verification. A machine-readable version is available at /api/prices.json — same data, designed for AI agents and programmatic access.