Claude Cost Calculator
Estimate Anthropic Claude API token spend using current model, cache-read, and Batch API rates.
Inputs
Choose the model tier you plan to use in production.
Average prompt size per API call — system prompt + context + user message. Typical ranges: simple chat 500–2,000 · RAG chatbot 2,000–8,000 · document analysis 10,000–100,000. A page of text ≈ 750 tokens.
Average response length per API call. Typical ranges: short answer 200–500 · paragraph 500–1,000 · long-form 1,000–4,000 tokens.
Total API calls per month across all users and jobs. 10 users × 3 sessions/day × 10 calls/session × 30 days = 9,000 requests/month.
Fraction of input tokens billed as cached reads. Cache writes and storage are not included. Use 0 if caching is disabled.
((2,000 fresh input × $5 + 0 cached-read input × $0.5 + 500 output × $25) / 1M × 10,000 req) × 12
Decision Summary
Enabling Prompt Cache with a 60% hit ratio could save $648.00/yr (24% reduction). Fix your system prompt at the start of every request and reuse it across calls.
Cost breakdown
| Item | Monthly | Yearly |
|---|---|---|
| Fresh input (2,000 tok/req × 10,000 req × $5/MTok) | $100.00 | $1,200.00 |
| Output spend (500 tok/req × 10,000 req × $25/MTok) | $125.00 | $1,500.00 |
| Total monthly spend | $225.00 | $2,700.00 |
Comparison
| Option | Monthly | Yearly |
|---|---|---|
| OpenAI GPT-5 | $75.00 | $900.00 |
| Claude Claude Opus 5current | $225.00 | $2,700.00 |
| Gemini Gemini 2.5 Pro | $75.00 | $900.00 |
| DeepSeek DeepSeek V4 Flashcheapest | $4.20 | $50.40 |
Pricing sources
Last verified 2026-08-03 · Claude official pricing platform.claude.com/docs/en/about-claude/pricing
Industry Benchmark
Pricing sources
Last verified 2026-08-03 · developers.openai.com/api/docs/models/compare developers.openai.com/api/docs/models/compare · platform.claude.com/docs/en/about-claude/pricing platform.claude.com/docs/en/about-claude/pricing · ai.google.dev/gemini-api/docs/pricing ai.google.dev/gemini-api/docs/pricing · api-docs.deepseek.com/quick_start/pricing api-docs.deepseek.com/quick_start/pricing
Trends & comparison
Trend
Comparison (monthly vs. yearly)
Official Anthropic rates used
Verified August 3, 2026: Claude Opus 5 and Opus 4.7 are $5/MTok input, $25 output, and $0.50 cached read. Sonnet 4.6 is $3/$15/$0.30; Haiku 4.5 is $1/$5/$0.10. Sonnet 5 is temporarily $2/$10/$0.20 through August 31, 2026.
A reproducible workload example
For 50,000 monthly calls with 800 input and 400 output tokens, token spend is $140 on Haiku 4.5, $420 on Sonnet 4.6, and $700 on Opus 5 before cache or Batch adjustments. These figures are direct token arithmetic, not performance claims.
Caching and Batch assumptions
Anthropic publishes separate cache-write and cache-read rates, and says Batch discounts can stack with prompt caching. This calculator models cached reads and the token-rate Batch multiplier, but excludes cache-write premiums, storage, tools, and other service charges.
Validate capability before routing
The calculator intentionally does not claim that a cheaper Claude tier has equivalent quality. Build an eval set from production tasks, establish pass thresholds, and route only the task classes that the lower-cost model handles reliably.
Frequently asked questions
What Claude prices does this calculator use?▾
Claude Opus 5 and Opus 4.7 use $5/MTok input and $25 output; Sonnet 4.6 uses $3/$15; Haiku 4.5 uses $1/$5. Sonnet 5 uses its published $2/$10 introductory rate through August 31, 2026.
Will Claude Sonnet 5 pricing change?▾
Anthropic says Sonnet 5 introductory pricing ends August 31, 2026 and becomes $3/MTok input and $15 output on September 1. The site must update the rate table on that date.
How is Claude prompt caching represented?▾
The cache slider represents cached reads at the published read rate. The estimate excludes the initial cache-write premium and any provider-specific charges, so it is a steady-state estimate rather than an invoice forecast.
Which Claude model should I choose?▾
Price alone cannot answer that. Run Opus, Sonnet, and Haiku against the same representative prompts and acceptance criteria, then compare total cost only among models that pass your quality and latency thresholds.
Related calculators
Same cluster
- OpenAI vs Claude: API Cost Comparison
- Claude vs Gemini: API Cost Comparison
- OpenAI vs Claude for AI Agents: Cost Comparison
- GPT-5 Mini vs Claude Haiku: Budget LLM Cost Comparison
- Claude Sonnet vs Gemini Flash: Mid-Tier Cost Comparison
- OpenAI vs Claude for RAG Pipelines: Cost Comparison
- Claude vs OpenAI for Code Generation: Cost Comparison
Compare verified first-party API prices on the same standard workload → AI Model Price Leaderboard