Prompt caching lets a provider reuse work it has already done. When you send a request whose opening tokens exactly match a prefix the provider has processed recently, it skips that portion and bills the reused tokens at a cache-read rate instead of the full input rate. For applications with long system prompts, fixed schemas or repeated document context, this is the largest single lever on API spend.
The discount differs sharply by provider. The table below shows the cache-read price against the fresh input price for every model in the dataset that publishes one.
| Model | Input | Cached input | Discount | Cache write |
|---|---|---|---|---|
| DeepSeek V4.1 Flash | $0.30 | $0.0060 | 98% | — |
| Claude Fable 5.1 | $10.00 | $0.25 | 97.5% | $12.50 |
| DeepSeek V4 Pro | $1.32 | $0.04 | 96.7% | — |
| GPT-6.1 Sol | $2.00 | $0.10 | 95% | $2.50 |
| GPT-6 Astra | $10.00 | $1.00 | 90% | $12.50 |
| GPT-6 Sol | $2.00 | $0.20 | 90% | $2.50 |
| GPT-6 Luna | $0.10 | $0.01 | 90% | $0.13 |
| GPT-5.6 Sol | $4.00 | $0.40 | 90% | $5.00 |
| GPT-5.6 Terra | $2.00 | $0.20 | 90% | $2.50 |
| GPT-5.6 Luna | $0.20 | $0.02 | 90% | $0.25 |
| GPT-5.5 | $5.00 | $0.50 | 90% | — |
| GPT-5.4 | $2.50 | $0.25 | 90% | — |
| GPT-5.4 mini | $0.75 | $0.07 | 90% | — |
| GPT-5.4 nano | $0.20 | $0.02 | 90% | — |
| GPT-5.2 | $1.75 | $0.17 | 90% | — |
| Claude Opus 5 | $5.00 | $0.50 | 90% | $6.25 |
| Claude Sonnet 5 | $2.00 | $0.20 | 90% | $2.50 |
| Claude Sonnet 4.6 | $3.00 | $0.30 | 90% | $3.75 |
| Claude Haiku 4.5 | $1.00 | $0.10 | 90% | $1.25 |
| Gemini 3.8 Flash | $0.75 | $0.07 | 90% | — |
| Gemini 3.7 Flash | $0.75 | $0.07 | 90% | — |
| Gemini 3.5 Flash-Lite | $0.30 | $0.03 | 90% | — |
| Gemini 3.5 Flash | $1.50 | $0.15 | 90% | — |
| Gemini 3.1 Pro (Preview) | $2.00 | $0.20 | 90% | — |
| Gemini 2.5 Pro | $1.25 | $0.13 | 90% | — |
| Grok 4.3 | $1.25 | $0.20 | 84% | — |
| GPT-4.1 | $2.00 | $0.50 | 75% | — |
| Grok 4.6 | $2.00 | $0.50 | 75% | — |
The standout is DeepSeek V4.1 Flash, where a cache read costs 98% less than fresh input. Anthropic and Google sit around the 90% mark. Grok is shallower, at 75% and 84%.
A cache is not free to create. Anthropic charges 1.25x the normal input rate to write a cache entry — visible above as $2.50 against a $2.00 input price. That surcharge is paid once per cache lifetime. Every subsequent read is discounted.
So the break-even is: how many requests will reuse this prefix before the cache expires? If a prefix costs $1.25 to write and saves $0.90 per million tokens on each of twenty subsequent requests, it pays for itself many times over. If only one request will ever use it, caching costs you 25% more than not caching.
Caching matches on an exact token prefix. Anything that changes early in the prompt invalidates everything after it. The common offenders are a timestamp at the top of the system prompt, a request ID injected before the instructions, a user name interpolated into the opening line, or a tool schema whose property order is not deterministic.
The fix is structural, not clever. Put stable material first — role instructions, output schema, reference documents — and volatile material last: the user's question, the current date, the session context. If you need the date for reasoning, pass it as a late message rather than a system-prompt prefix.
Short prompts. If your entire request is 300 tokens of unique user input, there is nothing stable to cache and the write premium is pure loss. Caching pays when the reusable prefix is long relative to the variable suffix — typically above roughly a thousand tokens of stable context.
Low-frequency traffic also erodes the benefit. A cache that expires in minutes only helps if requests arrive within that window. A batch job that runs once a night will rarely hit a cache written the previous night.
Providers report cached token counts in the usage object of each response. Log that number alongside total input tokens and compute the ratio. Without it you cannot tell whether caching is helping or quietly adding write charges. The calculator models both scenarios side by side using the cache prices in the table above.