Guides

Prompt caching explained, with savings

Prompt caching bills a repeated prompt prefix at a fraction of the input price. How big the discount is, and whether writing to the cache costs extra, varies by provider. Prices verified 2026-10-18.

Assumptions

Change any of these in the calculator: every row below has a link that opens the same scenario for that model.

How it works

When consecutive requests start with the same tokens (system prompt, tool definitions, a document, earlier conversation turns), the provider can reuse its work on that prefix. Those tokens are billed at the cached-input price instead of the normal input price. Anything after the first changed token is billed normally, so put stable content first and variable content last.

Some models charge a premium to write a prefix into the cache. In our data that is 16 models: Anthropic and OpenAI, at 1.25× the input price for a standard cache write (Anthropic's 1-hour cache costs 2× input). Every other model bills cache writes as normal input. Some providers apply caching automatically; others need it enabled per request, so check the provider documentation linked from each model page.

Cache prices by model

ModelInputCache readRead vs inputCache writeReads to break even
Claude Fable 5.1$10.00$0.253%$12.501
Claude Opus 5$5.00$0.5010%$6.251
Claude Opus 4.8$5.00$0.5010%$6.251
Claude Opus 5.5$4.00$0.205%$5.001
Claude Sonnet 4.6$3.00$0.3010%$3.751
Claude Sonnet 5.5$2.00$0.105%$2.501
Claude Sonnet 5$2.00$0.2010%$2.501
Claude Haiku 4.5$1.00$0.1010%$1.251
Claude Haiku 5.5$0.10$0.0110%$0.131
DeepSeek V4 Pro$1.32$0.0443%input price1
DeepSeek V4.1 Flash$0.30$0.0062%input price1
Gemini 4 Argon$2.00$0.105%input price1
Gemini 3.1 Pro (Preview)$2.00$0.2010%input price1
Gemini 3.8 Flash$0.75$0.07510%input price1
Gemini 3.6 Flash$0.75$0.07510%input price1
Gemini 3.5 Flash-Lite$0.30$0.0310%input price1
Gemini 2.5 Flash$0.30$0.0310%input price1
Gemini 3.1 Flash-Lite$0.25$0.02510%input price1
Mistral Medium 3.5$1.50$0.1510%input price1
Mistral Large 4$0.68$0.0710%input price1
Codestral$0.30$0.0310%input price1
Mistral Small 4$0.15$0.01510%input price1
Ministral 3 8B$0.15$0.01510%input price1
GPT-6 Astra$10.00$1.0010%$12.501
GPT-5.5$5.00$0.5010%input price1
GPT-5.6 Sol$4.00$0.4010%$5.001
GPT-6.1 Sol$2.00$0.105%$2.501
GPT-6 Sol$2.00$0.2010%$2.501
GPT-5.6 Terra$2.00$0.2010%$2.501
GPT-5.4 mini$0.75$0.07510%input price1
GPT-5.6 Luna$0.20$0.0210%$0.251
GPT-6 Luna$0.10$0.0110%$0.131
Grok 4.7$2.00$0.5025%input price1
Grok 4.3$1.25$0.2016%input price1
Grok 4.20 (Reasoning)$1.25$0.2016%input price1
Grok Build 0.1$1.00$0.2020%input price1

USD per 1M tokens. "Reads to break even": how many times a cached prefix must be reused before caching is cheaper than not caching.

Does the cache-write premium pay off?

For Claude Opus 5.5, sending a prefix uncached twice costs 2 × $4.00; writing it once and reading it once costs $5.00 + $0.20. Caching wins after 1 read with the 5-minute cache, and after 2 reads with the 1-hour cache (write at 2× input). For all 16 models with a write premium, the 5-minute break-even is 1 read.

Chatbot: savings by cache hit rate

Model0% cached50% cached90% cached
Claude Sonnet 5.5$8.00$6.10$4.58
GPT-6.1 Sol$8.00$6.10$4.58
Gemini 3.8 Flash$3.00$2.32$1.78
DeepSeek V4 Pro$4.22$2.95$1.93
Claude Haiku 5.5$0.40$0.31$0.24
GPT-6 Luna$0.40$0.31$0.24

Cost per 1,000 replies. Output tokens are never cached, so savings flatten once output dominates the bill.

Savings on a 30-step coding agent run

Sorted by the share of the run cost that caching removes.

ModelTierAgent run, no cacheAgent run, cachedSaved
DeepSeek V4.1 Flash DeepSeeksmall$0.68$0.0987%Calculator
DeepSeek V4 Pro DeepSeekflagship$2.97$0.3887%Calculator
Claude Fable 5.1 Anthropicflagship$23.10$3.6384%Calculator
Gemini 4 Argon Google price changes 2026-12-01flagship$4.62$0.7683%Calculator
Ministral 3 8B Mistral AIsmall$0.33$0.0583%Calculator
Claude Opus 5.5 Anthropicflagship$9.24$1.6682%Calculator
Claude Sonnet 5.5 Anthropicmid$4.62$0.8382%Calculator
GPT-6.1 Sol OpenAImid$4.62$0.8382%Calculator
Codestral Mistral AIsmall$0.67$0.1381%Calculator
Mistral Large 4 Mistral AI sale priceflagship$1.53$0.2981%Calculator
Claude Haiku 5.5 Anthropicsmall$0.62$0.1281%Calculator
Mistral Small 4 Mistral AIsmall$0.34$0.0780%Calculator
Gemini 3.8 Flash Google price changes 2027-01-01mid$1.73$0.3679%Calculator
Gemini 3.6 Flash Google price changes 2027-01-01mid$1.73$0.3679%Calculator
Mistral Medium 3.5 Mistral AImid$3.47$0.7279%Calculator
Gemini 3.1 Flash-Lite Googlesmall$0.59$0.1378%Calculator
Gemini 3.1 Pro (Preview) Googleflagship$4.68$1.0378%Calculator
GPT-5.4 mini OpenAIsmall$1.76$0.3878%Calculator
GPT-5.5 OpenAIflagship$11.70$2.5678%Calculator
Claude Sonnet 4.6 Anthropicmid$6.93$1.5578%Calculator
GPT-6 Luna OpenAIsmall$0.23$0.0578%Calculator
Claude Sonnet 5 Anthropicmid$4.62$1.0378%Calculator
Claude Haiku 4.5 Anthropicsmall$2.31$0.5278%Calculator
GPT-5.6 Sol OpenAIflagship$9.24$2.0678%Calculator
GPT-6 Sol OpenAImid$4.62$1.0378%Calculator
Claude Opus 5 Anthropicflagship$11.55$2.5878%Calculator
Claude Opus 4.8 Anthropicflagship$11.55$2.5878%Calculator
GPT-6 Astra OpenAIflagship$23.10$5.1678%Calculator
Grok 4.20 (Reasoning) xAIreasoning$2.77$0.6477%Calculator
Grok 4.3 xAImid$2.77$0.6477%Calculator
GPT-5.6 Terra OpenAImid$4.68$1.0977%Calculator
GPT-5.6 Luna OpenAIsmall$0.47$0.1177%Calculator
Gemini 3.5 Flash-Lite Googlesmall$0.72$0.1776%Calculator
Gemini 2.5 Flash Googlesmall$0.72$0.1776%Calculator
Grok Build 0.1 xAIsmall$2.22$0.6073%Calculator
Grok 4.7 xAIflagship$4.50$1.4568%Calculator

USD, standard list prices. Tags mark announced price changes and temporary sale prices.

Price is not quality

This page ranks by cost only. Models differ in accuracy, instruction following, tool use, latency, rate limits and data policies, and those differences often matter more than the price gap. Shortlist two or three models from the table, run them on a sample of your real inputs, and compare cost per successful result.

Related comparisons

More guides

FAQ

How much cheaper are cached tokens?

In our data cached input costs between 2% and 25% of the normal input price, depending on the model.

Is the cache write premium worth it?

For the models in our data that charge one, a single reuse already makes caching cheaper with a standard cache write. Anthropic's 1-hour cache (write 2× input) needs 2 reuses at a 0.1× read price.

Are output tokens cached?

No. Caching only discounts input tokens that repeat at the start of the prompt.