Claude Cost Calculator
Estimate your monthly Anthropic API costs. See how Claude Sonnet and Haiku compare to GPT, Gemini and others.
Anthropic cheapest option: Claude Haiku 4.5 at U$ 55.00/mo — overall cheapest is Llama 4 Maverick (U$ 7.00/mo)
Anthropic Models
| Model | Per Request | Monthly Total |
|---|---|---|
| bestClaude Haiku 4.5 | U$ 0.0055 | U$ 55.00 |
| Claude Sonnet 5 | U$ 0.0165 | U$ 165 |
| Claude Opus 4.8 | U$ 0.0275 | U$ 275 |
All Models (Comparison)
| Model | Per Request | Monthly Total |
|---|---|---|
| bestLlama 4 Maverick | U$ 0.000700 | U$ 7.00 |
| GPT-5.6 Luna | U$ 0.0013 | U$ 13.00 |
| Nemotron 3 Ultra | U$ 0.0024 | U$ 24.50 |
| Gemini 2.5 Flash | U$ 0.0027 | U$ 26.50 |
| GLM-5.2 | U$ 0.0051 | U$ 51.00 |
| Claude Haiku 4.5 | U$ 0.0055 | U$ 55.00 |
| Gemini 2.5 Pro | U$ 0.0106 | U$ 106.25 |
| GPT-5.6 Terra | U$ 0.0130 | U$ 130 |
| Claude Sonnet 5 | U$ 0.0165 | U$ 165 |
| Kimi K3 | U$ 0.0165 | U$ 165 |
| Claude Opus 4.8 | U$ 0.0275 | U$ 275 |
| GPT-5.6 Sol | U$ 0.0325 | U$ 325 |
How Anthropic API pricing works
Anthropic prices Claude models per million tokens, split between input and output, and — like most providers — output tokens cost more than input tokens because generation is more compute-intensive than reading. This calculator multiplies your average input and output tokens per request by Claude's current per-model rate, then scales by your expected monthly request volume. Anthropic also offers prompt caching, which can cut the cost of repeated system prompts or long context by a large margin on cache hits, plus batch processing for asynchronous jobs at a further discount — neither is applied here, so this is a full-price, worst-case estimate.
Picking the right Claude tier for the job
Anthropic sells capability in tiers, and the price gaps between them are large enough to decide your architecture. Haiku is built for high-volume, well-defined tasks — classification, extraction, routing, short answers — where its per-token rate is a small fraction of the larger models'. Sonnet is the workhorse tier for reasoning-heavy work like coding, analysis and long-form writing. The practical question is rarely "which model is best" but "what is the cheapest tier that clears my quality bar", and the honest way to answer it is to run your own test set through each tier and compare failures, not vibes.
A useful mental model: if a task can be described completely in the prompt — fixed format, clear rules, no judgment calls — it probably belongs on Haiku. The moment a task needs the model to weigh trade-offs or hold a long chain of reasoning, budget for Sonnet rates in your estimate above.
The economics of prompt caching
Prompt caching is Anthropic's most underused discount. You pay a small premium to write a prompt prefix into the cache, and subsequent requests that reuse that exact prefix read it at a large discount — roughly an order of magnitude cheaper than regular input. The catch is the cache lifetime: entries expire after a few minutes of inactivity, so the discount only materializes when requests arrive close together.
That shape fits three workloads almost perfectly: chatbots with a large system prompt serving steady traffic, RAG applications that pin the same reference context across many questions, and agents that repeatedly re-read the same documents in one session. If your traffic is sparse — a request every ten minutes — cache entries expire between calls and the write premium becomes pure overhead. Estimate with the full-price number from the calculator above, then treat caching as an optimization to validate with real traffic.
Claude-specific budgeting tips
Three habits keep Anthropic invoices predictable. Set max_tokens deliberately — it is a hard cost ceiling per request, and generous defaults quietly permit expensive answers. Watch conversation length: Claude's large context window makes it easy to carry an entire session's history in every request, and all of it is billed as input each turn. And route asynchronous work through the Batch API, which cuts the price of jobs that can tolerate delay roughly in half.
To sanity-check whether Claude is the right home for your workload at all, run the same numbers through the OpenAI cost calculator and the GPT vs Claude comparison — the winner often changes with the input/output ratio. For a full head-to-head with tier mapping and caching differences, read Claude Sonnet 5 vs GPT-5.6: a fair cost comparison.
Claude next to the alternatives, tier by tier
Anthropic prices three tiers on the same 200k-token context window, per million tokens (input / output): Opus 4.8 at $5.00 / $25.00, Sonnet 5 at $3.00 / $15.00 and Haiku 4.5 at $1.00 / $5.00. Sonnet 5 also carries a launch promotion of $2.00 / $10.00 through 31 August 2026, which is why a quote you took in July may not match one taken in September.
The closest OpenAI equivalents are GPT-5.6 Sol at $5.00 / $30.00, Terra at $2.00 / $12.00 and Luna at $0.20 / $1.20 — the last two repriced downward on 30 July 2026. At the flagship tier Claude is cheaper on output ($25.00 against $30.00), which matters most for generation-heavy work like drafting, summarizing or code writing. But the July cut flipped the lower tiers: Terra now undercuts Sonnet 5 on both sides, and Luna is roughly 5× cheaper than Haiku 4.5 on input and 4× on output. Where OpenAI also pulls ahead is context: 1.05M tokens against Claude's 200k, relevant only if you genuinely feed whole corpora in one call. Outside the two, Kimi K3 matches Sonnet exactly at $3.00 / $15.00 with a 1M window, while GLM-5.2 ($1.40 / $4.40) undercuts Haiku on output. The tier-by-tier guide goes deeper on picking between them.
Three real Claude workloads, priced
A customer support assistant. A 1,200-token system prompt plus 300 tokens of user message, answering in about 250 tokens, run 20,000 times a month. On Haiku 4.5 that is roughly 30M input and 5M output tokens — about $30 in, $25 out, so $55 a month. The same volume on Opus 4.8 costs about $150 in and $125 out: $275, five times more for a task Haiku usually handles fine.
A document summarizer. A 40k-token report in, a 1,500-token summary out, 200 documents a month. Sonnet 5 at list price: 8M input tokens ($24) and 300k output ($4.50), so roughly $28.50 — under $10 while the launch promo lasts. Our PDF summary calculator models this shape in more detail.
A coding agent. These are output-heavy and iterate: 15k in, 4k out, 500 runs a month. On Sonnet 5 that is 7.5M input ($22.50) and 2M output ($30) — about $52.50. Cache the parts of the prompt that repeat and the input side of all three examples drops by roughly 90%.
Frequently asked questions
What's the difference between Claude Sonnet and Claude Haiku pricing?
Sonnet is Anthropic's mid-tier model, balancing capability and cost, while Haiku is the fastest and cheapest tier, aimed at high-volume, latency-sensitive tasks. Haiku typically costs a fraction of Sonnet per token — check the model comparison table above for current rates.
Does prompt caching change my real cost?
Yes, significantly for workloads that repeat the same system prompt or long context across requests. This calculator doesn't apply caching discounts, so your actual bill will likely be lower if you use that feature.
Are these prices official?
Prices are pulled from OpenRouter's live pricing feed with a 24-hour cache, with a hardcoded fallback if that feed is unavailable. Always confirm current pricing on Anthropic's official pricing page before budgeting for production usage.
When does prompt caching not help?
When requests are infrequent, when prompt prefixes vary between calls (even small edits break the match), or when your system prompt is short enough that the cache write premium outweighs the read savings. Caching rewards stable prefixes and steady traffic.
Does Claude's long context window make it more expensive?
The window itself costs nothing — you pay only for tokens you actually send. The risk is behavioral: a large window invites stuffing in more context than the task needs, and every one of those tokens is billed as input on every request that includes it.
Is the Sonnet 5 launch promotion included in the estimate?
The calculator quotes the standard $3.00 / $15.00 rate per million tokens, not the $2.00 / $10.00 promotional rate that Anthropic has published through 31 August 2026. That keeps the estimate conservative: your bill during the promo will come in lower than shown, and it will not jump unexpectedly once the promo ends. Always confirm the current rate on Anthropic's pricing page before planning around it.
How much does batch processing actually save?
Anthropic's Batch API discounts both input and output by 50% for work submitted asynchronously with results returned within 24 hours. It stacks with prompt caching, so a cached, batched workload can land near a tenth of the naive per-call price. The catch is latency — batch is for backfills, bulk classification and offline summarization, not for anything a user is waiting on.
Do Claude's thinking tokens get billed?
Yes. On models with extended thinking enabled, the reasoning tokens the model generates before its visible answer are billed as output tokens, at the output rate. A response that shows 500 tokens of text may have produced several thousand tokens of reasoning behind it. If you enable extended thinking, raise the output figure you enter here well above the length of the visible answer.
Curious where these numbers come from? Read our pricing methodology.