Claude Sonnet 5 pricing
Anthropic · API id claude-sonnet-5 · verified 2026-10-18
| Input | $2.00 |
| Cached input (cache hit) | $0.20 |
| Cache write | $2.50 |
| Output | $10.00 |
| Batch discount | 50% |
| Context window | 1,000,000 tokens |
| Max output | 128,000 tokens |
USD per 1M tokens unless noted. Official source
Estimate your workload on Claude Sonnet 5 →
What Claude Sonnet 5 costs for real workloads
| Workload | Claude Sonnet 5 | Grok 4.3 | Gemini 3.8 Flash | Gemini 3.6 Flash | Mistral Medium 3.5 |
|---|---|---|---|---|---|
| 10,000 chatbot replies 2,000 input + 400 output tokens each, 50% of the prompt cached | $62.00 | $24.50 | $23.25 | $23.25 | $46.50 |
| One 30-step coding agent run 12K system + tools prompt, 1K output and 3K tool result per step, caching on | $1.03 | $0.64 | $0.36 | $0.36 | $0.72 |
| 1M documents classified (batch) 600 input + 20 output tokens each, batch API where available | $700 | $640 | $263 | $263 | $525 |
Compared with the cheapest other mid models. Change the numbers in the calculator.
Billing notes
Legacy. Launch "introductory" $2/$10 pricing made permanent; planned Sept 1, 2026 increase to $3/$15 cancelled. 1M context at standard price (no long-context surcharge). 1h cache write = 2x input. Uses newer tokenizer (~30% more tokens than Claude 4.6 and earlier for same text). US-only inference_geo = 1.1x.
Where Claude Sonnet 5 ranks by use case
Position by cost among all models that fit each workload (1 = cheapest).
- Cheapest LLM for coding agents: #25 of 36 (Per run (cached): $1.03)
- Cheapest LLM for RAG chatbots: #25 of 36 (Per 1,000 answers: $13.30)
- Cheapest LLM for batch classification and extraction: #22 of 36 (Classify 1M docs: $700)
- Long-context document analysis (400K tokens): #14 of 29 (10 questions, cached: $1.92)
- Cheapest LLM for high-volume customer support: #25 of 36 (Per 1,000 replies: $5.30)
Counting tokens for a prompt? The token counter estimates Claude Sonnet 5 tokens (Claude 4.7 and later tokenizer, estimated) and input cost.
Other Anthropic models
- Claude Fable 5.1: $10.00 / $50.00
- Claude Opus 5: $5.00 / $25.00
- Claude Opus 4.8: $5.00 / $25.00
- Claude Opus 5.5: $4.00 / $20.00
- Claude Sonnet 4.6: $3.00 / $15.00
- Claude Sonnet 5.5: $2.00 / $10.00
- Claude Haiku 4.5: $1.00 / $5.00
- Claude Haiku 5.5: $0.10 / $0.50
FAQ
How much does Claude Sonnet 5 cost per 1M tokens?
Claude Sonnet 5 costs $2.00 per 1M input tokens and $10.00 per 1M output tokens at standard rates (verified 2026-10-18).
Does Claude Sonnet 5 support prompt caching?
Yes. Cached input is billed at $0.20 per 1M tokens, and writing to the cache costs $2.50 per 1M tokens.
Is there a batch discount for Claude Sonnet 5?
Yes. The batch API is 50% cheaper than standard requests.
What is the context window of Claude Sonnet 5?
1,000,000 tokens, with up to 128,000 output tokens.