Home › Tools › Prompt caching calculator
LLM Prompt Caching Cost Calculator
Prompt caching is the single largest cost lever in modern LLM APIs. On a 10,000-token system prompt at 80% cache hit rate, the monthly bill drops by 60-78% depending on the model. This page shows the cached vs. uncached cost for all 45 models in the dataset.
Cached vs. uncached cost per model
Cost of a 10,000-token prefix sent 1,000 times a month, at 80% cache hit rate, including write premium. Sorted by saving.
| # | Model | Provider | Uncached | Cached (80% hit) | Saving |
|---|---|---|---|---|---|
| 1 | Claude Fable 5.1 | Anthropic | $0.10 | $0.037 | 63% |
| 2 | Claude Fable 5.2 | Anthropic | $0.08 | $0.0296 | 63% |
| 3 | DeepSeek V4.1 Flash | DeepSeek | $0.003 | $0.0011 | 63% |
| 4 | DeepSeek V4 Pro | DeepSeek | $0.0132 | $0.00497 | 62% |
| 5 | GPT-6.1 Sol | OpenAI | $0.02 | $0.0078 | 61% |
| 6 | GPT-6.1 Terra | OpenAI | $0.01 | $0.0039 | 61% |
| 7 | Claude Opus 5.5 | Anthropic | $0.04 | $0.0156 | 61% |
| 8 | Claude Sonnet 5.5 | Anthropic | $0.02 | $0.0078 | 61% |
| 9 | Gemini 4 Carbon | Google Gemini | $0.02 | $0.0078 | 61% |
| 10 | Gemini 4 Argon | Google Gemini | $0.02 | $0.0078 | 61% |
| 11 | Gemini 4 Hydrogen | Google Gemini | $0.015 | $0.00585 | 61% |
| 12 | GPT-6 Astra | OpenAI | $0.10 | $0.043 | 57% |
| 13 | GPT-6 Sol | OpenAI | $0.02 | $0.0086 | 57% |
| 14 | GPT-6 Luna | OpenAI | $0.001 | $0.00043 | 57% |
| 15 | GPT-5.6 Sol | OpenAI | $0.04 | $0.0172 | 57% |
| 16 | GPT-5.6 Terra | OpenAI | $0.02 | $0.0086 | 57% |
| 17 | GPT-5.6 Luna | OpenAI | $0.002 | $0.00086 | 57% |
| 18 | GPT-5.5 | OpenAI | $0.05 | $0.0215 | 57% |
| 19 | GPT-5.4 | OpenAI | $0.025 | $0.0108 | 57% |
| 20 | GPT-5.4 mini | OpenAI | $0.0075 | $0.00323 | 57% |
| 21 | GPT-5.4 nano | OpenAI | $0.002 | $0.00086 | 57% |
| 22 | GPT-5.2 | OpenAI | $0.0175 | $0.00753 | 57% |
| 23 | Claude Opus 5 | Anthropic | $0.05 | $0.0215 | 57% |
| 24 | Claude Sonnet 5 | Anthropic | $0.02 | $0.0086 | 57% |
| 25 | Claude Sonnet 4.6 | Anthropic | $0.03 | $0.0129 | 57% |
| 26 | Claude Haiku 4.5 | Anthropic | $0.01 | $0.0043 | 57% |
| 27 | Claude Haiku 5.5 | Anthropic | $0.001 | $0.00043 | 57% |
| 28 | Gemini 3.8 Flash | Google Gemini | $0.0075 | $0.00323 | 57% |
| 29 | Gemini 3.6 Flash | Google Gemini | $0.0075 | $0.00323 | 57% |
| 30 | Gemini 3.5 Flash-Lite | Google Gemini | $0.003 | $0.00129 | 57% |
| 31 | Gemini 3.1 Flash-Lite | Google Gemini | $0.0025 | $0.00108 | 57% |
| 32 | Gemini 3.1 Pro (Preview) | Google Gemini | $0.02 | $0.0086 | 57% |
| 33 | Gemini 2.5 Pro | Google Gemini | $0.0125 | $0.00538 | 57% |
| 34 | Llama 4 Maverick | Meta (Llama) | $0.0027 | $0.00116 | 57% |
| 35 | Llama 4 Scout | Meta (Llama) | $0.0018 | $0.00077 | 57% |
| 36 | Llama 3.3 70B | Meta (Llama) | $0.0088 | $0.00378 | 57% |
| 37 | Qwen 3 235B | Alibaba (Qwen) | $0.005 | $0.00215 | 57% |
| 38 | Qwen 3 32B | Alibaba (Qwen) | $0.0015 | $0.00064 | 57% |
| 39 | Qwen 3 8B | Alibaba (Qwen) | $0.0005 | $0.00022 | 57% |
| 40 | Mistral Large 4 | Mistral AI | $0.007 | $0.00301 | 57% |
| 41 | Mistral Small 4 | Mistral AI | $0.0015 | $0.00064 | 57% |
| 42 | Grok 4.3 | xAI Grok | $0.0125 | $0.00598 | 52% |
| 43 | GPT-4.1 | OpenAI | $0.02 | $0.011 | 45% |
| 44 | Grok 4.6 | xAI Grok | $0.02 | $0.011 | 45% |
| 45 | Grok 4.7 | xAI Grok | $0.02 | $0.011 | 45% |
Uncached = 10,000 tokens x 1,000 requests at full input rate. Cached = 80% reads at cached rate + 20% uncached + writes at 1.25x (12 writes per month for a 5-minute TTL). Output tokens are excluded — caching discounts input only.
How prompt caching pricing works
Every provider bills cached prompts in three token classes:
- Write premium. Storing a prefix costs more than sending it once — 1.25x on Anthropic (including Bedrock), storage-based on Google.
- Read discount. A cache hit costs 0.10x base input on Anthropic, $0.075 on Gemini Flash — a 90% saving per token read.
- Write frequency. The cache expires. Every refresh pays the premium again. At steady traffic this is usually the largest line item.
When caching loses money
- Prefixes that change every call. User-specific instructions at the top guarantee a write and zero reads.
- Long gaps between requests. A 20-minute interval means multiple rebuilds per reuse.
- Short prompts below the minimum. Nothing is cached, and you pay full rate.
- Output-heavy workloads. Caching does nothing for output, which is 4-5x input.
Keep going
- All 45 models ranked by price
- Head-to-head comparisons
- Prompt Caching Calculator: Bedrock vs Gemini (blog)
- Bedrock Prompt Caching Pricing Guide (blog)
- Context Caching on Gemini (blog)
FAQ
What is prompt caching?
Prompt caching stores a repeated prefix (system instructions, tool schemas, retrieved documents) so the model does not re-process it on every request. Cached tokens are billed at a deep discount — 0.10x on Anthropic, $0.075 on Gemini Flash.
How much can prompt caching save?
On a typical workload with a 40,000-token prefix and 80% cache hit rate, prompt caching reduces the input bill by 60-78%. The exact saving depends on prefix size, traffic, and cache policy.
Does Bedrock support prompt caching?
Yes. Bedrock bills the same token classes as the Anthropic API: 1.25x to write, 0.10x to read, with a 5-minute TTL refreshed by use. Up to four cache breakpoints are supported.
Is Gemini context caching cheaper than Bedrock?
For irregular traffic, yes — Gemini implicit caching has no write premium. For steady high-volume workloads, Bedrock can win if writes are kept infrequent with a longer TTL.
What is the minimum cacheable length?
Roughly 1,024 tokens for Sonnet and Opus class models, 2,048 for Haiku. Shorter prompts are silently not cached.
Keep going
- Tokens to cost
- All models
- Comparisons
- All 45 models ranked by price
- Run your own volumes in the calculator