Prompt caching: when it pays back
A cached prompt costs a fraction to read, and sometimes extra to write. Here is when that trade is worth it.
The idea
Most calls repeat a long opening: instructions, tool definitions, a document. With prompt caching the vendor keeps that opening for a few minutes. The first call pays to store it. Later calls that start with the same text read it at a discount.
The formula
Take a repeated opening of P tokens and an input price of 1 per token. Writing it to the cache costs w, reading it costs r. Sent once and reused n times:
- without caching: (1 + n) × P
- with caching: w × P + n × r × P
Caching is cheaper as soon as n is larger than (w − 1) ÷ (1 − r). On Claude Sonnet 5.5, w is 1.25 for the default 5-minute cache and r is 0.05, so the answer is 0.26: the first reuse already pays. The 1-hour cache costs 2.00 to write, which gives 1.05: you need 2 reuses.
Current multipliers
Computed from the list prices checked on November 11, 2026. “Saving at 9 reuses” is for an opening sent ten times inside the cache lifetime.
| Model | Cache write | Cache read | Pays back after | Saving at 9 reuses |
|---|---|---|---|---|
| Claude Sonnet 5.5Anthropic | 1.25× | 0.05× | 1 reuse | 83 % |
| Claude Haiku 5.5Anthropic | 1.25× | 0.10× | 1 reuse | 78 % |
| GPT-6.1 SolOpenAI | 1.25× | 0.05× | 1 reuse | 83 % |
| GPT-6 LunaOpenAI | 1.25× | 0.10× | 1 reuse | 78 % |
| Gemini 4 CarbonGoogle | 1.00× | 0.05× | 1 reuse | 86 % |
| DeepSeek V4.1 FlashDeepSeek | 1.00× | 0.02× | 1 reuse | 88 % |
| Qwen3.8 FlashAlibaba | 1.33× | 0.11× | 1 reuse | 77 % |
| Grok 4.7xAI | 1.00× | 0.25× | 1 reuse | 68 % |
A write multiplier of 1.00× means the vendor caches automatically and charges nothing extra to store the opening.
A worked example
An assistant sends a 10,000-token manual with every question, ten questions within five minutes, on Claude Sonnet 5.5. Without caching the manual costs $0.200. With caching it costs $0.034, a saving of 83 %. With the 1-hour cache the same ten calls cost $0.049.
When caching loses
- The opening changes on every call. A cache only matches an identical start, so put what changes at the end.
- Calls are too far apart. If the next call comes after the cache has expired, you paid the write surcharge for nothing.
- The opening is short. Vendors set a minimum size for a cacheable prefix.