Skip to content
UtilPouch

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.

Your workload

Processed on this device
Start from
tokens
tokens
/ day
days
20%

Share of input tokens that repeat, like a fixed system prompt.

Custom rate

Add your own or a negotiated price, in USD per 1M tokens. It appears as Custom model in the table.

ModelPer month

Prices checked December 6, 2026. Sources: OpenAI, Anthropic, Google, DeepSeek. Confirm current rates before you budget.

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.

Claude 5.5 models compared (USD per 1M tokens)
ModelInputCache readCache writeOutput
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

Message Batches halve these rates. Above 100K input tokens Haiku is billed at $0.50 in, $0.05 cache read, $0.625 cache write and $2.50 out; the calculator switches automatically. Confirm on anthropic.com/pricing.

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.