Models · Anthropic

Claude API cost: the tokenizer and the cache write

Sonnet 4.6 and Haiku 4.5 rates, plus the two Anthropic-specific line items that move your bill more than the sticker price does.

All numbers computed from pricing data verified 2026-07-11 — this page updates with every pricing refresh.

The rate card

ModelInput /1MOutput /1MCached readCache writeBatch inputContext
Claude Sonnet 4.6$3$15$0.3$3.75$1.5200K
Claude Haiku 4.5$1$5$0.1$1.25$0.5200K

What it costs on real workloads

Realistic monthly cost at 1,000 requests/day with the calculator’s defaults — 8% retries, 40% cache hit rate, 15% infra overhead, per-model tokenizer calibration applied. The same three workloads used across every comparison on this site, so the numbers line up.

WorkloadClaude Sonnet 4.6Claude Haiku 4.5
Simple chatbot$307/mo$102/mo
Chatbot with history$628/mo$209/mo
Multi-step agent$3,910/mo$1,303/mo

The tokenizer is a hidden price increase

Claude’s tokenizer emits roughly 10% more tokens than OpenAI’s o200k_base for the same English text. Providers meter their own tokenizer, so this is not an accounting curiosity — it is a real multiplier on every input line of your invoice.

Sonnet 4.6 sticker input     $3/1M
× tokenizer ratio            1.1
= effective input price      $3.30/1M of the same text

Any like-for-like comparison against another provider has to apply this, or it flatters Claude by about 10%. Our calculator applies it automatically; most published comparison tables do not.

The cache write costs 1.25× input

Anthropic bills first-time cache writes at $3.75/1M on Sonnet — 1.25× the standard input rate — where OpenAI and Google charge nothing extra to warm a cache. In exchange, cached reads come back at $0.3/1M, or 10% of input.

That is a genuine trade, not a penalty: pay a little more on the miss, get one of the steepest read discounts available on the hit. Which side you land on is entirely a function of your cache hit rate — high, steady traffic against a stable prefix wins, while spiky low-volume traffic pays the write premium repeatedly without earning it back. It’s worth modelling rather than guessing.

Sonnet or Haiku?

On the history-carrying chatbot above, Sonnet 4.6 runs $628/mo against Haiku 4.5 at $209/mo — Haiku is 67% cheaper for the same workload. Anthropic positions Haiku as near-frontier quality at budget pricing, which makes it an unusually strong default; the honest caveat is that “near-frontier” is a claim to verify on your task before committing at scale, not a spec to take on faith.

Context: both models ship a 200K standard window, and Sonnet 4.6 additionally offers a 1M-token context at standard pricing. Above a few hundred thousand tokens that stops being a pricing question and becomes an architecture one — a long window can remove an entire retrieval pipeline, and the calls that came with it.

Model the Claude line on your workload — with the tokenizer ratio and cache-write premium applied.

Open the calculator →

Related