Verified November 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 45 models in the dataset.

80%Default cache hit rate
10,000Default system prompt tokens
60-78%Typical saving
45Models 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 November 2026
#ModelProviderUncachedCached (80% hit)Saving
1Claude Fable 5.1Anthropic$0.10$0.03763%
2Claude Fable 5.2Anthropic$0.08$0.029663%
3DeepSeek V4.1 FlashDeepSeek$0.003$0.001163%
4DeepSeek V4 ProDeepSeek$0.0132$0.0049762%
5GPT-6.1 SolOpenAI$0.02$0.007861%
6GPT-6.1 TerraOpenAI$0.01$0.003961%
7Claude Opus 5.5Anthropic$0.04$0.015661%
8Claude Sonnet 5.5Anthropic$0.02$0.007861%
9Gemini 4 CarbonGoogle Gemini$0.02$0.007861%
10Gemini 4 ArgonGoogle Gemini$0.02$0.007861%
11Gemini 4 HydrogenGoogle Gemini$0.015$0.0058561%
12GPT-6 AstraOpenAI$0.10$0.04357%
13GPT-6 SolOpenAI$0.02$0.008657%
14GPT-6 LunaOpenAI$0.001$0.0004357%
15GPT-5.6 SolOpenAI$0.04$0.017257%
16GPT-5.6 TerraOpenAI$0.02$0.008657%
17GPT-5.6 LunaOpenAI$0.002$0.0008657%
18GPT-5.5OpenAI$0.05$0.021557%
19GPT-5.4OpenAI$0.025$0.010857%
20GPT-5.4 miniOpenAI$0.0075$0.0032357%
21GPT-5.4 nanoOpenAI$0.002$0.0008657%
22GPT-5.2OpenAI$0.0175$0.0075357%
23Claude Opus 5Anthropic$0.05$0.021557%
24Claude Sonnet 5Anthropic$0.02$0.008657%
25Claude Sonnet 4.6Anthropic$0.03$0.012957%
26Claude Haiku 4.5Anthropic$0.01$0.004357%
27Claude Haiku 5.5Anthropic$0.001$0.0004357%
28Gemini 3.8 FlashGoogle Gemini$0.0075$0.0032357%
29Gemini 3.6 FlashGoogle Gemini$0.0075$0.0032357%
30Gemini 3.5 Flash-LiteGoogle Gemini$0.003$0.0012957%
31Gemini 3.1 Flash-LiteGoogle Gemini$0.0025$0.0010857%
32Gemini 3.1 Pro (Preview)Google Gemini$0.02$0.008657%
33Gemini 2.5 ProGoogle Gemini$0.0125$0.0053857%
34Llama 4 MaverickMeta (Llama)$0.0027$0.0011657%
35Llama 4 ScoutMeta (Llama)$0.0018$0.0007757%
36Llama 3.3 70BMeta (Llama)$0.0088$0.0037857%
37Qwen 3 235BAlibaba (Qwen)$0.005$0.0021557%
38Qwen 3 32BAlibaba (Qwen)$0.0015$0.0006457%
39Qwen 3 8BAlibaba (Qwen)$0.0005$0.0002257%
40Mistral Large 4Mistral AI$0.007$0.0030157%
41Mistral Small 4Mistral AI$0.0015$0.0006457%
42Grok 4.3xAI Grok$0.0125$0.0059852%
43GPT-4.1OpenAI$0.02$0.01145%
44Grok 4.6xAI Grok$0.02$0.01145%
45Grok 4.7xAI 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