Skip to content

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:

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.

ModelCache writeCache readPays back afterSaving at 9 reuses
Claude Sonnet 5.5Anthropic1.25×0.05×1 reuse83 %
Claude Haiku 5.5Anthropic1.25×0.10×1 reuse78 %
GPT-6.1 SolOpenAI1.25×0.05×1 reuse83 %
GPT-6 LunaOpenAI1.25×0.10×1 reuse78 %
Gemini 4 CarbonGoogle1.00×0.05×1 reuse86 %
DeepSeek V4.1 FlashDeepSeek1.00×0.02×1 reuse88 %
Qwen3.8 FlashAlibaba1.33×0.11×1 reuse77 %
Grok 4.7xAI1.00×0.25×1 reuse68 %

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

Put your own numbers into the cost calculator.