RSS
Tips

Claude prompt caching costs: cache reads are the largest cost in long Claude Code sessions

In a long Claude Code session the largest line on the bill is the model re-reading its own history from the prompt cache: 62% of a modelled 100-turn Opus 5.5 session at list prices, down from 76% on Opus 5. In short sessions, cache writes cost more.

Server rack with blinking green lights illustrating Claude prompt caching costs
Photo by Domaintechnik on Unsplash

In a long Claude Code session, the largest line on the bill is usually not output tokens. It is cache reads: the model re-reading the conversation it has already seen, once per request. On November 23 Chinese tech outlet 36Kr ran a piece calling this Anthropic's "cache tax". It leans on two developer blog posts: Martin Alderson's "Watch out for cache read costs" and a September post by a writer who signs as Diogo, who argues that subscriptions only look heavily subsidized because most coding-agent tokens are cheap cache reads. We took Alderson's example session and re-priced it at the Claude API list prices on Anthropic's pricing page, fetched November 23, 2026.

Why cache reads pile up

The model keeps no memory between requests, so every request re-sends the full context. Each turn, Claude Code re-sends the system prompt, project context, every earlier message and every tool result, and appends the new part at the end, according to the Claude Code prompt caching docs. Prompt caching means the unchanged prefix is billed at the cache-hit rate instead of being processed again. But it is still billed on every request. A session of N tokens of context that makes T tool calls reads roughly N × T input tokens. Because N grows each turn, the total grows quadratically with session length.

Diogo replayed Nvidia's Open-SWE-Traces coding trajectories at Fable 5 prices and found output tokens were 9-18% of the total bill. Alderson's hypothetical session starts at 60,000 tokens of context, and each turn adds 500 output tokens and 5,000 tokens of tool results, with a 100% cache hit rate. At 20 turns, cache reads were 44.9% of his Opus 5 bill; at 100 turns, 76.4%.

Current Claude prices for caching

Cache prices are multiples of each model's base input price. A five-minute cache write costs 1.25x, a one-hour write costs 2x, and a cache hit costs 0.1x on most models. The newest models get a lower hit rate: 0.05x on Opus 5.5 and Sonnet 5.5, and 0.025x on Fable 5.2 and Mythos 5.2, according to Anthropic's pricing page. Diogo notes that Fable 5.1 already cut the hit price from $1.00 to $0.25 per million tokens. Prices change; check the pricing page before relying on these.

Source: Claude API pricing page, fetched 2026-11-23.
ModelInput / MTokOutput / MTok5-min write1-hour writeCache hit
Claude Fable 5.2$8$40$10$16$0.20 (0.025x)
Claude Opus 5.5$4$20$5$8$0.20 (0.05x)
Claude Sonnet 5.5$2$10$2.50$4$0.10 (0.05x)
Claude Opus 5$5$25$6.25$10$0.50 (0.1x)

The same 100-turn session at current prices

We reran Alderson's session in a short script. With Opus 5 prices it reproduces his result exactly: $16.31 in cache reads, $3.78 in cache writes, $1.25 in output, $21.34 in total. Then we swapped in current prices. This is a modelled session at API list prices, not a measured one. Real sessions have cache misses, compaction and subagents, and on a Pro, Max or Ultra plan you pay the subscription, not these amounts.

claudefox calculation, 2026-11-23: 60k starting context, +5,500 tokens per turn, 100 turns, 100% hits, 5-minute writes.
ModelCache readsCache writesOutputTotal
Claude Opus 5 (Alderson)$16.31 (76.4%)$3.78 (17.7%)$1.25 (5.9%)$21.34
Claude Opus 5.5$6.52 (61.9%)$3.02 (28.7%)$1.00 (9.5%)$10.55
Claude Sonnet 5.5$3.26 (61.9%)$1.51 (28.7%)$0.50 (9.5%)$5.27
Claude Fable 5.2$6.52 (44.8%)$6.04 (41.5%)$2.00 (13.7%)$14.57

The lower hit price roughly halves the Opus bill: $10.55 on Opus 5.5 against $21.34 on Opus 5, with cache reads falling from 76.4% to 61.9% of the total. Cache reads are still the largest single line on Opus 5.5 and Sonnet 5.5. On Fable 5.2, reads ($6.52) and writes ($6.04) end up almost even, because its hit price is only 0.025x while its write price follows its $8 input price. Without caching, the same Opus 5.5 session would send 33.2 million input tokens at $4 per million: about $133 plus $1 of output.

Short sessions, one-hour caches and misses

Session length changes the picture. At 20 turns, cache writes, not reads, are the largest cost: on Opus 5.5 reads are 28.9% of a $1.44 session and writes 57.2%. With one-hour cache writes at 2x, which Claude Code requests by default for the main conversation on a subscription, the 100-turn Opus 5.5 session comes to $12.36, with reads at 52.8% and writes at 39.1%.

Misses cost more than the hit rate suggests. In the same model, if the cache expires once at turn 50 and the whole prefix is written again, the Opus 5.5 session goes from $10.55 to $12.10 (+15%). Diogo cites a reported 89% hit rate for Claude Code and says others have measured 95%; both are third-party estimates, not Anthropic figures. In his replay, 89% made the workload cost 84% more than perfect caching. Alderson adds that the number of turns matters most: in his model, cutting turns by 10% cuts the cost per run by about 16%.

Routing and subagents interact with the cache too. Each model has its own cache, so handing a long context to a cheaper model means paying to write it again. Diogo's example shows an "easy" step routed from Opus to Sonnet costing almost three times more. He argues subagents pay off when they do not need the parent's full context, for example a search that reports back a short summary.

How to check your own cache hit rate in Claude Code

Run /usage and look at the Session block. From Claude Code v2.1.251, after the first response it adds a "Prompt cache (main)" line with the request count, the share of input tokens served from cache, the number of misses, and whether the cache is warm, with its TTL. The line covers the main conversation only, not subagents. On Pro, Max and Ultra plans the session dollar figure is not your bill, but the cache line still shows how efficient the session is.

  • Cache lifetime: on a Claude subscription within plan usage, the main conversation gets a one-hour TTL by default. With an API key, a cloud provider, or usage credits, the default is five minutes. Subagents, compaction and other side requests default to five minutes. Set promptCacheTtl or CLAUDE_CODE_PROMPT_CACHE_TTL to 5m or 1h (Claude Code v2.1.242 or later).
  • Things that break the cache: switching models with /model, turning fast mode on or off, connecting or removing MCP tools when tool search is off, a new Claude Code version (the first session after an upgrade), and /compact, which rebuilds the conversation layer by design.
  • Changing effort keeps the cache on Fable 5.1 and later, Opus 5.5, Sonnet 5.5 and Haiku 5.5 with an API key or a Claude subscription. On most other models it starts a fresh cache.
  • To see which TTL your cache writes used, run claude -p "hello" --output-format json and read usage.cache_creation: ephemeral_1h_input_tokens versus ephemeral_5m_input_tokens.
  • On the API, cache_read_input_tokens do not count toward the input-tokens-per-minute rate limit; only uncached input and cache writes do.

Try it with your AI. Paste this into Claude Code at the start of a long task to keep the cache warm and see what it costs.

Before we start, help me keep prompt caching efficient in this session. 1) Ask me to run
claude --version and /usage, and tell me whether my version is v2.1.251 or later (needed
for the "Prompt cache (main)" line). Report the active model and effort level; do not
change either. 2) Based only on the Claude Code prompt caching docs, list which of these
would invalidate the cache here: switching models, toggling fast mode, adding an MCP
server (say whether it depends on tool search), running /compact. 3) For the rest of
this task, if a step would switch models or toggle fast mode, tell me the cache cost and
wait for my confirmation. 4) Whenever I ask for a cache check, remind me to run /usage
and help me read the hit rate and misses. My task: [describe the task].

What this does not tell you

These numbers are list-price arithmetic. They say nothing about what serving a cache hit costs Anthropic. The "cache tax" argument is the bloggers' inference, based on cache reads being excluded from rate limits and on how inference works; Alderson puts his 100-turn Opus 5 session at roughly $0.5 per GB-hour of KV cache, against well under a cent per GB-hour for rented memory. Subsidy figures circulating this week, such as Diogo's citation of SemiAnalysis that the $200 Claude plan can yield up to $8,000 a month of API-equivalent tokens, come from social posts and paywalled analysis we could not check against the original.

FAQ

How much of a 100-turn Opus 5.5 Claude Code session is cache reads? In our re-run of Alderson's model (60,000 starting tokens, 5,500 tokens added per turn, 100% hits, five-minute writes), cache reads are $6.52 of $10.55, or 61.9%.

How do I check my cache hit rate in Claude Code? Run /usage and read the "Prompt cache (main)" line in the Session block (v2.1.251 or later). It shows requests, the share of input served from cache, misses and whether the cache is warm.

Do cache reads count toward the Claude API rate limit? No. cache_read_input_tokens do not count toward input tokens per minute; uncached input and cache writes do.

Does a one-hour cache cost more? A one-hour write costs 2x the base input price against 1.25x for five minutes. It pays off after two cache reads, against one for the five-minute cache, and avoids a full re-write after breaks of more than five minutes.

Why is Fable 5.2 more expensive than Opus 5.5 in this model if its cache hits cost the same? Both cost $0.20 per million tokens on a hit, but Fable 5.2's input and output prices are twice Opus 5.5's, so its cache writes and output cost twice as much.

Source: Claude API docs: Pricing (prompt caching multipliers and model prices), Claude API docs: Rate limits (cache-aware ITPM), Claude Code docs: Prompt caching, Claude Code docs: Manage costs effectively, 36Kr: 揭秘Anthropic的「暴利」真相:缓存税 (November 23, 2026), Martin Alderson: Watch out for cache read costs, Diogo: (KV) Cache Rules Everything Around Me

This story first appeared in the claudefox daily briefing for November 23, 2026.