Claude API cost calculator
Filtered to Anthropic’s Claude 5.5 models and set to a code review workload. Compare Haiku, Sonnet and Opus per month, with prompt caching and batch pricing.
| Model | Per month |
|---|
Three tiers, one API
Haiku is built for high-volume, low-latency work: routing, tagging, short replies. Sonnet is the general workhorse for coding and writing. Opus is for the hardest reasoning and long agent runs, at twice Sonnet’s price.
All three read up to 1M tokens, so the choice is about quality and cost rather than how much fits. Haiku switches to a higher long-context rate once a request passes 100K input tokens.
Prompt caching on Claude
Anthropic’s caching is explicit: you mark which part of the prompt to cache. Writing to the default cache costs 1.25× the input price; reading from it costs about a twentieth of input on Sonnet and Opus.
For a long system prompt reused across many requests, the first write pays for itself after one or two reads.
| Model | Input | Cache read | Cache write | Output |
|---|---|---|---|---|
| Claude Haiku 5.5 | $0.10 | $0.01 | $0.125 | $0.50 |
| Claude Sonnet 5.5 | $2.00 | $0.10 | $2.50 | $10.00 |
| Claude Opus 5.5 | $4.00 | $0.20 | $5.00 | $20.00 |
Other AI setups
- OpenAI API cost calculator5 models
- Claude API cost calculator
- Gemini API cost calculatorFlash · Pro
- DeepSeek API cost calculatorOff-peak rates
- Prompt caching savings calculatorCached vs uncached
- AI agent cost calculator20 turns
- Context window calculator128K to 1M
- Private token counter
Related
Questions
Which Claude model should I start with?
Sonnet for most applications. Drop to Haiku where speed and volume matter more than nuance; move up to Opus only for tasks where Sonnet visibly falls short.
How do I turn on prompt caching with Claude?
Add a cache_control marker to the end of the stable part of your prompt, usually the system prompt and tool definitions. Requests that repeat that prefix read it from cache.
Does Claude charge for the system prompt every time?
Without caching, yes: it is part of the input on every request. With caching, repeats are billed at the cache read rate.
Is the Message Batches API slower?
Batches are processed asynchronously, usually within hours and at most a day, in exchange for half price.