Prompt Caching Economics: Why the Same Prompt Costs $8 or $0.20

Cached input is priced at 2.5 to 5 percent of a fresh prompt at both frontier labs. Here is how the billing works, when caching pays off, and how to compute your own break-even point.

Take a look at the price of a prompt at the frontier tier in late 2026 and you will find two numbers that look like a typo.

On OpenAI’s GPT-6.2 Astra, a million input tokens cost $8.00. The same million tokens, read back from the prompt cache, cost $0.40. On Anthropic’s Claude Fable 5.2, the equivalents are $8.00 and $0.20.

A cached prefix is twenty times cheaper at OpenAI and forty times cheaper at Anthropic than a fresh one. That is not a rounding artefact or a loyalty discount. It is the single largest lever in an inference bill, and almost nobody uses it properly.

How the billing works

A cache is a prefix cache. When a request arrives, the provider checks whether the beginning of your prompt — byte for byte, from the very first token — matches something it has already processed. If it does, the model skips re-computing that portion and reads the stored internal state instead.

The consequences are structural, and they explain every rule in the pricing tables.

Only prefixes cache. The match has to start at token zero. If you interleave a changing timestamp in the first system prompt, you invalidate the entire cache for that request and every request after it. This single mistake is the most common cause of “why is my cache hit rate near zero”.

Cache writes cost money. Anthropic charges $10 per million tokens for a 5-minute cache write and $16 for a 1-hour write on Claude Fable 5.2. OpenAI charges $10 for a 30-minute write and $20 for a 12-hour write on GPT-6.2 Astra. You pay a premium on the first request to get the discount on every subsequent one.

Cache reads are billed at a steep discount. Anthropic’s standard multiplier is 0.1× of base input price, but Fable 5.2 and Mythos 5.2 — along with Fable 5.1 and Mythos 5.1 — are priced at 0.025×, which works out to $0.20 per million tokens. OpenAI’s GPT-6.2 Astra charges $0.40, which is 0.05× of its $8 input rate.

There is a time limit. A cache entry expires. Anthropic’s tiers are 5 minutes and 1 hour; OpenAI’s are 30 minutes and 12 hours. Choose the tier that matches your actual reuse interval, not the one that sounds generous.

Batch requests are cheaper still. Both labs discount batch API calls by 50% on input and output, and Anthropic notes that fast mode is not available with the Batch API.

Computing the break-even point

The arithmetic is simple and worth doing before you ship anything.

Let C be the cost of caching one million tokens of your prefix, R be the cost of reading one million cached tokens, and F be the cost of feeding one million tokens fresh. If you make n requests that share the prefix, the cached path costs C + (n − 1) × R and the uncached path costs n × F. Caching wins when:

n > (C − F) / (F − R)

For Claude Fable 5.2 with a 5-minute cache write: C = $10, R = $0.20, F = $8. Break-even is n > (10 − 8) / (8 − 0.20) = n > 0.26. Caching pays from the second request.

For a 1-hour write: C = $16. Break-even is n > (16 − 8) / 7.8 = n > 1.03. Caching pays from the third request.

For GPT-6.2 Astra with a 30-minute write: C = $10, R = $0.40, F = $8. Break-even is n > 0.25. Again, the second request.

The conclusion is uncomfortable for anyone who assumed caching was a scale optimisation. At these prices, caching is worth it the moment you make a second request with the same prefix. It is not an optimisation you defer until you have traffic.

The one caveat is latency and concurrency. A cache hit is faster, but two requests arriving simultaneously on a cold prefix both pay the write cost, and some providers deprioritise cache reads during contention. If your traffic pattern is a single request followed by a long silence, you are paying the premium for one use.

Where to put the cache boundary

The practical technique is to structure your prompt so that everything stable comes first and everything volatile comes last.

The stable prefix should contain:

  • The system prompt and any policy or persona instructions
  • Tool definitions and schemas
  • Retrieved documents, when the same set is used across calls
  • Few-shot examples
  • Large fixed reference material

The volatile suffix should contain:

  • The user’s current message
  • The current timestamp
  • Retrieved documents that change per request
  • Tool results from this turn

This ordering matters for two reasons. First, it maximises the cached prefix. Second, it puts the most important, most recent material nearest the end of the prompt, where long-context models attend most reliably.

If you need per-request retrieved documents, the pattern that works is to keep the system prefix fixed and let the retrieved block be the volatile suffix — accepting the loss of caching on that block — or to shard the cache by grouping requests that share a document set.

The tokenizer gotcha

Anthropic’s documentation notes that Claude 4.7 and later models use a tokenizer introduced with Opus 4.7 that produces approximately 30% more tokens for the same text than the previous tokenizer.

This has a direct effect on caching economics, and it is not obvious. A cache is a prefix match on tokens, not on characters. If your application’s token count shifts — because the provider changed tokenizer, or because you changed the system prompt by one word — the prefix no longer matches, and you pay the write cost again for every subsequent request.

The rule is the same as for any cache: change the prefix and the cache is cold. But with a provider-side tokenizer change, the change happens to you. Re-measure token counts after a model upgrade rather than assuming the cache still hits.

The long-context interaction

Cache pricing and long-context surcharges interact in ways worth understanding.

OpenAI doubles input and cached-input rates and multiplies output by 1.5 for requests above 272,000 input tokens. On GPT-6.2 Astra, a cached long-context read costs $0.80 rather than $0.40 — still a twentieth of the $16 uncached input rate at that tier, so the relative advantage holds.

Anthropic bills the full 1M context window at standard pricing with no surcharge, so a 900,000-token request costs the same per token as a 9,000-token one. Cache reads within that window remain at $0.20.

If you are running a long-context workload, the combination to compare is not just “which lab has a bigger window” but “which combination of base rate, long-context policy, and cache discount is cheapest for my actual request shape”. For a document-heavy, repeatedly-queried corpus, Anthropic’s structure is currently the cheaper of the two.

What this changes about architecture

Once caching is priced correctly, the architecture of an AI application changes.

Retrieval-augmented generation becomes more attractive, not less. If a retrieved document set is stable across many queries, caching it is worth far more than re-embedding and re-fetching it. And if the document set changes per query, the retrieval layer has to be efficient enough that the saved cache cost still shows up in the margin.

Tool-heavy agents get a specific benefit. Tool definitions and schemas are often large, stable, and sent on every turn of a multi-step run. Caching them is close to pure margin for any agent that takes more than two steps.

Multi-turn conversations get a specific benefit too. In a chat application, the entire conversation history up to the new user message is a valid cache prefix, and it is reused on every subsequent turn. The longer the conversation, the larger the cached fraction — which is the opposite of the usual intuition that long conversations get expensive.

A short checklist

  • Put stable content at the front, volatile content at the back.
  • Never mutate the first token of your prompt between requests.
  • Choose your cache TTL from your actual reuse interval, not from the longest option available.
  • Measure cache hit rate as a first-class metric. If it is below the break-even point for your request volume, you are leaving money on the table; if it is high and you are still surprised by the bill, check that you are not double-counting cached tokens as fresh input in your own accounting.
  • Re-measure after every model upgrade, because tokenizer changes silently invalidate prefix matches.

Sources