Token Cost Calculator

Claude Token Cost Calculator

Cost per token and monthly estimates for Claude Opus, Sonnet, and Haiku — with the Anthropic API.

Last updated: 2026-10-20

1,000
2,000
400
1,000 × 2,000in + 400out = 2,000,000 input,400,000 output tokens

Estimated cost across 21 models

Google Cheapest

Gemini 2.5 Flash-Lite

$0.360/ month
$4.32 / year
Input
$0.200
Output
$0.160400,000 tokens
Input
$0.10 / 1M2,000,000 tokens
Output
$0.40 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 luna

$0.400/ month
$4.80 / year
Input
$0.200
Output
$0.200400,000 tokens
Input
$0.10 / 1M2,000,000 tokens
Output
$0.50 / 1M
Context window
1,050,000Last updated: 2026-10-20
MiniMax

MiniMax M3.1 Flash

$0.540/ month
$6.48 / year

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.

Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Opus 5.5

$16.00/ month
$192 / year
Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 astra

$40.00/ month
$480 / year
Input
$20.00
Output
$20.00400,000 tokens
Input
$10.00 / 1M2,000,000 tokens
Output
$50.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Fable 5.1

$40.00/ month
$480 / year
Input
$20.00
Output
$20.00400,000 tokens
Input
$10.00 / 1M2,000,000 tokens
Output
$50.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-5.6 cyber

$55.00/ month
$660 / year
Input
$25.00
Output
$30.00400,000 tokens
Input
$12.50 / 1M2,000,000 tokens
Output
$75.00 / 1M
Context window
400,000Last updated: 2026-10-20

Prices verified 2026-10-20. Source: official provider pricing pages. · Machine-readable: /api/prices.json

Quick takeaways
  • 1Output tokens usually cost 4–8× more than input — keeping replies short is the highest-leverage cost saver.
  • 2Anthropic prompt caching drops repeat-input cost by ~90%; OpenAI cached input drops it by ~90% on GPT-5.
  • 3DeepSeek off-peak hours are ~50% cheaper than peak — schedule batch jobs accordingly.
  • 4Gemini 2.5 Pro doubles its input price above 200K context — large-context calls cost roughly twice as much.
Token Cost Calculator

Claude.ai subscription vs API

Claude Pro ($20/mo) and Claude Max ($200/mo) include generous usage caps that are usually cheaper than the API up to a break-even point. Beyond that point, the API — or a third-party router like OpenRouter — is the right choice.

Claude Pro · $20/mo

Break-even: ~1.90M input + 0.95M output per month

Below this combined usage the Pro plan is cheaper; above it the API starts winning.

Claude Max · $200/mo

Break-even: ~19.0M input + 9.52M output per month

For sustained heavy usage, Max covers you up to roughly the API equivalent of $200/mo.

Sample reference: 1M input + 500K output tokens via the API costs $10.50 / month (at current Sonnet 4.5 rates).

Token Cost Calculator

How to bring the bill down

  1. 1Use a smaller model for routing / classification — Haiku 4.5 / GPT-5 nano cost roughly 5–10× less than the flagship.
  2. 2Cache repeat prefixes (system prompts, tool schemas) — Anthropic cached input drops the rate by ~90%.
  3. 3Set max_tokens explicitly — output is the expensive side; capping it prevents runaway replies.
  4. 4Batch non-urgent jobs into DeepSeek off-peak hours for ~50% cheaper inference.
  5. 5Trim long context — Gemini 2.5 Pro doubles its input rate above 200K; chunk documents that don't need the rest.
Token Cost Calculator

Frequently asked questions

How much does Claude Sonnet 4.5 cost per million tokens?
Claude Sonnet 4.5 is $3 per 1M input tokens and $15 per 1M output tokens via the Anthropic API. With prompt caching, cached reads drop to $0.30 per 1M (90% off). The 5-minute cache write is $3.75 per 1M; the 1-hour cache write is $6 per 1M.
How much do 10,000 tokens cost in Claude?
10,000 input tokens on Claude Sonnet 4.5 cost $0.03 (3 cents). 10,000 output tokens cost $0.15 (15 cents). For Opus 4.5 the same is $0.05 input and $0.25 output; for Haiku 4.5 it's $0.01 input and $0.05 output.
How many tokens does $5 get you in Claude?
$5 buys you roughly 1.67M input tokens on Claude Sonnet 4.5 (or 333K output tokens). On Haiku 4.5 the same $5 buys 5M input / 1M output tokens. On Opus 4.5 it's 1M input / 200K output tokens.
How much is 200,000 tokens in Claude?
200,000 input tokens on Claude Sonnet 4.5 cost $0.60; on Opus 4.5 it's $1.00; on Haiku 4.5 it's $0.20. The same 200K output tokens cost $3.00 on Sonnet 4.5, $5.00 on Opus 4.5, and $1.00 on Haiku 4.5.
Is Claude Pro or Max cheaper than the API?
Up to a point, yes. Claude Pro ($20/mo) is cheaper than the API below roughly 6M input + 3M output tokens per month (Sonnet rates). Max ($200/mo) covers up to roughly 60M input + 30M output. Beyond those thresholds, the API wins on pure cost.
How does Claude prompt caching work?
Anthropic caches prompt prefixes for 5 minutes or 1 hour. Reads from the cache cost 90% less than fresh input ($0.30 per 1M on Sonnet 4.5). Writes cost a small premium — $3.75 per 1M for the 5-min window, $6 per 1M for the 1-hour window. Caching is the single biggest cost saver for repeat-system-prompt workloads.
Which Claude model is cheapest?
Claude Haiku 4.5 is the cheapest at $1 / $5 per 1M tokens. For most classification and short-answer workloads it matches Sonnet 4.5 on quality at a third of the price. Sonnet 4.5 ($3 / $15) is the mid-tier; Opus 4.5 ($5 / $25) is the flagship.
How accurate is this calculator?
Token counts are approximated (the Claude tokenizer is not yet bundled with this tool — counts use a CJK-aware character heuristic, accurate to within ~10% for English, ~5% for Chinese). Prices are sourced from claude.com/pricing and re-verified regularly. Always check the source link on each card before relying on a number for billing.