Verified October 2026

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 28 models in the dataset.

80%Default cache hit rate
10,000Default system prompt tokens
60-78%Typical saving
28Models compared

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.

Prompt caching savings by model — USD, rates verified October 2026
#ModelProviderUncachedCached (80% hit)Saving
1Claude Fable 5.1Anthropic$0.10$0.03763%
2DeepSeek V4.1 FlashDeepSeek$0.003$0.001163%
3DeepSeek V4 ProDeepSeek$0.0132$0.0049762%
4GPT-6.1 SolOpenAI$0.02$0.007861%
5GPT-6 AstraOpenAI$0.10$0.04357%
6GPT-6 SolOpenAI$0.02$0.008657%
7GPT-6 LunaOpenAI$0.001$0.0004357%
8GPT-5.6 SolOpenAI$0.04$0.017257%
9GPT-5.6 TerraOpenAI$0.02$0.008657%
10GPT-5.6 LunaOpenAI$0.002$0.0008657%
11GPT-5.5OpenAI$0.05$0.021557%
12GPT-5.4OpenAI$0.025$0.010857%
13GPT-5.4 miniOpenAI$0.0075$0.0032357%
14GPT-5.4 nanoOpenAI$0.002$0.0008657%
15GPT-5.2OpenAI$0.0175$0.0075357%
16Claude Opus 5Anthropic$0.05$0.021557%
17Claude Sonnet 5Anthropic$0.02$0.008657%
18Claude Sonnet 4.6Anthropic$0.03$0.012957%
19Claude Haiku 4.5Anthropic$0.01$0.004357%
20Gemini 3.8 FlashGoogle Gemini$0.0075$0.0032357%
21Gemini 3.7 FlashGoogle Gemini$0.0075$0.0032357%
22Gemini 3.5 Flash-LiteGoogle Gemini$0.003$0.0012957%
23Gemini 3.5 FlashGoogle Gemini$0.015$0.0064557%
24Gemini 3.1 Pro (Preview)Google Gemini$0.02$0.008657%
25Gemini 2.5 ProGoogle Gemini$0.0125$0.0053857%
26Grok 4.3xAI Grok$0.0125$0.0059852%
27GPT-4.1OpenAI$0.02$0.01145%
28Grok 4.6xAI Grok$0.02$0.01145%

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:

When caching loses money

Keep going

Calculate a real monthly bill

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

Calculate a real monthly bill