LLM Prompt Cache Savings Calculator
Model exact monthly KV-cache savings across 57+ open-weight and frontier models. Backed by live Inference.net cached-read pricing, automatic vs explicit caching mechanics, and minimum prefix thresholds.
Configure your cached workload
750K req/mo · 10.1B input tokens · 600M output tokensPrefix caching runs automatically on byte-identical prefixes. Do not pass prompt_cache_key on this route.
- Mode
- Automatic (no key)
- Request field
- Automatic (no key)
- Prefix target
- ~1,024 target
- Cache retention
- In-memory (capacity-evicted)
Live Prompt Caching Matrix (50% / 75% / 90% Hit Rates)
Monthly estimates for 12K shared prefix + 2K new input + 800 output tokens across 750K monthly requests.
| Model | Caching mechanics | Input / 1M | Cached / 1M | Uncached / mo | 50% hit / mo | 75% hit / mo | 90% hit / mo | Saved @ 85% |
|---|---|---|---|---|---|---|---|---|
GPT-5 NanoOpenAI · 400K | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.05 | $0.005-90% | $746.3 | $543.8 | $442.5 | $381.8 | $344.3 (46%) |
Gemini 2.5 Flash LiteGoogle · 1M | Automatic (implicit)Automatic prefix · ~9,000 target | $0.10 | $0.01-90% | $1,253 | $847.5 | $645.0 | $523.5 | $688.5 (55%) |
MiniMax M3.1 FlashMiniMax · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $0.10 | $0.005-95% | $1,313 | $885.0 | $671.3 | $543.0 | $726.8 (55%) |
DeepSeek V4.1 Flash 1017DeepSeek · 1M | Automatic (no key)Automatic (no key) · ~1,024 target | $0.08 | $0.007-91% | $1,191 | $862.5 | $698.3 | $599.7 | $558.5 (47%) |
GPT-6 LunaOpenAI · 922K | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $0.10 | $0.01-90% | $1,313 | $1,020 | $761.3 | $606.0 | $654.8 (50%) |
DeepSeek V4.1 FlashDeepSeek · 1M | Automatic (no key)Automatic (no key) · ~1,024 target | $0.103 | $0.007-93% | $1,403 | $970.9 | $754.9 | $625.3 | $734.4 (52%) |
GPT-4.1 NanoOpenAI · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.10 | $0.025-75% | $1,253 | $915.0 | $746.3 | $645.0 | $573.8 (46%) |
GLM-5.3-FlashZ.ai · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.10 | $0.03-70% | $1,223 | $907.5 | $750.0 | $655.5 | $535.5 (44%) |
GPT-4o MiniOpenAI · 128K | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.15 | $0.075-50% | $1,879 | $1,541 | $1,373 | $1,271 | $573.8 (31%) |
DeepSeek V4.1 Flash 1017 CyberDeepSeek · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $0.30 | $0.007-98% | $3,638 | $2,319 | $1,660 | $1,264 | $2,241 (62%) |
GPT-5.6 LunaOpenAI · 1.1M | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $0.20 | $0.02-90% | $2,745 | $2,160 | $1,643 | $1,332 | $1,310 (48%) |
Gemini 3.1 Flash LiteGoogle · 1M | Automatic (implicit)Automatic prefix · ~9,000 target | $0.25 | $0.025-90% | $3,431 | $2,419 | $1,913 | $1,609 | $1,721 (50%) |
GPT-5 MiniOpenAI · 400K | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.25 | $0.025-90% | $3,731 | $2,719 | $2,213 | $1,909 | $1,721 (46%) |
DeepSeek V4 Flash (0731)DeepSeek · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.53 | $0.017-97% | $6,314 | $4,006 | $2,852 | $2,159 | $3,924 (62%) |
Gemini 2.5 FlashGoogle · 1M | Explicit breakpointcache_control: ephemeral · ~9,000 target | $0.30 | $0.03-90% | $4,538 | $3,323 | $2,715 | $2,351 | $2,066 (46%) |
Gemini 3.5 Flash-LiteGoogle · 1M | Automatic (implicit)Automatic prefix · ~9,000 target | $0.30 | $0.03-90% | $4,538 | $3,323 | $2,715 | $2,351 | $2,066 (46%) |
Qwen 3.7 PlusQwen · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $0.40 | $0.08-80% | $5,010 | $3,570 | $2,850 | $2,418 | $2,448 (49%) |
GLM-5.3Z.ai · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.084 | $0.079-6% | $2,651 | $2,628 | $2,617 | $2,610 | $38.3 (1%) |
GPT-4.1 MiniOpenAI · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $0.40 | $0.10-75% | $5,010 | $3,660 | $2,985 | $2,580 | $2,295 (46%) |
Gemini 3 Flash PreviewGoogle · 1M | Automatic (implicit)Automatic prefix · ~9,000 target | $0.50 | $0.05-90% | $6,863 | $4,838 | $3,825 | $3,218 | $3,443 (50%) |
Amazon Ergo 1.0amazon · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $0.90 | $0.027-97% | $10,733 | $6,804 | $4,840 | $3,661 | $6,678 (62%) |
Kimi K2.5Moonshot AI · 262K | Automatic + session_idsession_id · ~1,024 target | $0.80 | $0.13-84% | $10,470 | $7,455 | $5,948 | $5,043 | $5,126 (49%) |
GLM-5Z.ai · 205K | Automatic + affinitysession_id + prompt_cache_key · ~1,024 target | $0.95 | $0.20-79% | $11,149 | $7,774 | $6,086 | $5,074 | $5,738 (51%) |
DeepSeek V4 Pro (0813)DeepSeek · 1M | Automatic (no key)Automatic (no key) · ~1,024 target | $1.32 | $0.044-97% | $15,741 | $9,999 | $7,128 | $5,405 | $9,761 (62%) |
Claude Haiku 4.5Anthropic · 200K | Explicit breakpointcache_control: ephemeral · 4,096 tokens min | $1.00 | $0.10-90% | $13,125 | $10,200 | $7,613 | $6,060 | $6,547 (50%) |
GLM-5.2Z.ai · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $1.30 | $0.20-85% | $15,803 | $10,853 | $8,378 | $6,893 | $8,415 (53%) |
DeepSeek V4 ProDeepSeek · 1M | Automatic (no key)Automatic (no key) · ~1,024 target | $2.10 | $0.004-100% | $23,782 | $14,349 | $9,632 | $6,802 | $16,037 (67%) |
Kimi K2.6Moonshot AI · 262K | Automatic (implicit)Automatic prefix · ~1,024 target | $1.25 | $0.21-83% | $15,836 | $11,156 | $8,816 | $7,412 | $7,956 (50%) |
Gemini 3.6 FlashGoogle · 1M | Automatic (implicit)Automatic prefix · ~9,000 target | $1.50 | $0.15-90% | $19,688 | $13,613 | $10,575 | $8,753 | $10,328 (52%) |
Gemini 3.7 FlashGoogle · 1M | Explicit breakpointcache_control: ephemeral · ~9,000 target | $1.50 | $0.15-90% | $19,688 | $13,613 | $10,575 | $8,753 | $10,328 (52%) |
Gemini 2.5 ProGoogle · 1M | Explicit breakpointcache_control: ephemeral · ~9,000 target | $1.25 | $0.125-90% | $18,656 | $13,594 | $11,063 | $9,544 | $8,606 (46%) |
Gemini 3.5 FlashGoogle · 1M | Automatic (implicit)Automatic prefix · ~9,000 target | $1.50 | $0.15-90% | $20,588 | $14,513 | $11,475 | $9,653 | $10,328 (50%) |
Grok 4.5xAI · 500K | Automatic + headerx-grok-conv-id header · ~1,024 target | $2.00 | $0.30-85% | $23,850 | $16,200 | $12,375 | $10,080 | $13,005 (55%) |
Kimi K3Moonshot AI · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $0.245 | $0.224-9% | $11,481 | $11,386 | $11,339 | $11,311 | $160.6 (1%) |
Kimi K3.1 ProMoonshot AI · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $1.80 | $0.20-89% | $23,625 | $16,425 | $12,825 | $10,665 | $12,240 (52%) |
Grok 4.6xAI · 500K | Automatic + headerx-grok-conv-id header · ~1,024 target | $2.00 | $0.50-75% | $23,850 | $17,100 | $13,725 | $11,700 | $11,475 (48%) |
GPT-6.1 SolOpenAI · 1M | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $2.00 | $0.10-95% | $26,250 | $19,950 | $14,550 | $11,310 | $13,860 (53%) |
GPT-6 SolOpenAI · 922K | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $2.00 | $0.20-90% | $26,250 | $20,400 | $15,225 | $12,120 | $13,095 (50%) |
GPT-4.1OpenAI · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $2.00 | $0.50-75% | $25,050 | $18,300 | $14,925 | $12,900 | $11,475 (46%) |
Gemini 3.1 Pro PreviewGoogle · 1M | Explicit breakpointcache_control: ephemeral · ~4,000 target | $2.00 | $0.20-90% | $27,450 | $19,350 | $15,300 | $12,870 | $13,770 (50%) |
GPT-5.6 TerraOpenAI · 1.1M | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $2.00 | $0.20-90% | $27,450 | $21,600 | $16,425 | $13,320 | $13,095 (48%) |
GLM-5.2 FastZ.ai · 1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $2.60 | $0.40-85% | $31,605 | $21,705 | $16,755 | $13,785 | $16,830 (53%) |
Kimi K3 FastMoonshot AI · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $0.45 | $0.40-11% | $15,356 | $15,131 | $15,019 | $14,951 | $382.5 (2%) |
kimi-k3.1-pro-fastMoonshot AI · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $2.70 | $0.27-90% | $35,438 | $24,503 | $19,035 | $15,755 | $18,590 (52%) |
GPT-5.4OpenAI · 1.1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $2.50 | $0.25-90% | $34,313 | $24,188 | $19,125 | $16,088 | $17,213 (50%) |
Claude Sonnet 4.6Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 1,024 tokens min | $3.00 | $0.30-90% | $39,375 | $30,600 | $22,838 | $18,180 | $19,643 (50%) |
GPT-4oOpenAI · 128K | Automatic + affinity keyprompt_cache_key · ~1,024 target | $2.50 | $1.25-50% | $31,313 | $25,688 | $22,875 | $21,188 | $9,563 (31%) |
Claude Opus 5.5Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 512 tokens min | $4.00 | $0.20-95% | $52,500 | $39,900 | $29,100 | $22,620 | $27,720 (53%) |
Kimi K3 FastMoonshot AI · 1M | Automatic (implicit)Automatic prefix · ~1,024 target | $4.50 | $0.45-90% | $59,063 | $40,838 | $31,725 | $26,258 | $30,983 (52%) |
Claude Opus 4.6Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 4,096 tokens min | $5.00 | $0.50-90% | $65,625 | $51,000 | $38,063 | $30,300 | $32,738 (50%) |
Claude Opus 4.7Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 2,048 tokens min | $5.00 | $0.50-90% | $65,625 | $51,000 | $38,063 | $30,300 | $32,738 (50%) |
Claude Opus 4.8Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 1,024 tokens min | $5.00 | $0.50-90% | $65,625 | $51,000 | $38,063 | $30,300 | $32,738 (50%) |
Claude Opus 5Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 512 tokens min | $5.00 | $0.50-90% | $65,625 | $51,000 | $38,063 | $30,300 | $32,738 (50%) |
GPT-5.5OpenAI · 1.1M | Automatic + affinity keyprompt_cache_key · ~1,024 target | $5.00 | $0.50-90% | $68,625 | $48,375 | $38,250 | $32,175 | $34,425 (50%) |
GPT-5.6 SolOpenAI · 1.1M | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $5.00 | $0.50-90% | $68,625 | $54,000 | $41,063 | $33,300 | $32,738 (48%) |
Claude Fable 5Anthropic · 1M | Explicit breakpointcache_control: ephemeral · 512 tokens min | $10.00 | $1.00-90% | $131,250 | $102,000 | $76,125 | $60,600 | $65,475 (50%) |
GPT-6 AstraOpenAI · 922K | Automatic + affinity keyprompt_cache_key · 1,024 tokens min | $10.00 | $1.00-90% | $131,250 | $102,000 | $76,125 | $60,600 | $65,475 (50%) |
Schematron V2 TurboInferenceNet · 128K | No cache pricingNot supported · — | $0.03 | — | $393.8 | $393.8 | $393.8 | $393.8 | $0.00 |
Llama 3.2 1B InstructMeta · 60K | No cache pricingNot supported · — | $0.027 | — | $394.0 | $394.0 | $394.0 | $394.0 | $0.00 |
Gemma 3 4BGoogle · 131K | No cache pricingNot supported · — | $0.05 | — | $566.3 | $566.3 | $566.3 | $566.3 | $0.00 |
Schematron V2 SmallInferenceNet · 128K | No cache pricingNot supported · — | $0.05 | — | $644.3 | $644.3 | $644.3 | $644.3 | $0.00 |
Llama 3.2 3B InstructMeta · 131K | No cache pricingNot supported · — | $0.05 | — | $704.3 | $704.3 | $704.3 | $704.3 | $0.00 |
Gemma 3 27BGoogle · 131K | No cache pricingNot supported · — | $0.09 | — | $1,061 | $1,061 | $1,061 | $1,061 | $0.00 |
NVIDIA Nemotron 3 Super 120BNVIDIA · 262K | No cache pricingNot supported · — | $0.102 | — | $1,321 | $1,321 | $1,321 | $1,321 | $0.00 |
Qwen 3 30B A3BQwen · 41K | No cache pricingNot supported · — | $0.12 | — | $1,515 | $1,515 | $1,515 | $1,515 | $0.00 |
Llama 3.3 70B InstructMeta · 131K | No cache pricingNot supported · — | $0.13 | — | $1,556 | $1,556 | $1,556 | $1,556 | $0.00 |
DeepSeek V4 FlashDeepSeek · 1M | No cache pricingNot supported · — | $0.23 | — | $2,701 | $2,701 | $2,701 | $2,701 | $0.00 |
Qwen 3 14BQwen · 131K | No cache pricingNot supported · — | $0.227 | — | $2,849 | $2,849 | $2,849 | $2,849 | $0.00 |
DeepSeek V3.2DeepSeek · 164K | No cache pricingNot supported · — | $0.70 | — | $8,288 | $8,288 | $8,288 | $8,288 | $0.00 |
Frequently asked questions.
Quick answers to help you get started
Prompt caching reuses KV-cache state for byte-identical prefixes such as system prompts, tool schemas, and repository context. Cached prefix tokens are billed at each model's cached-read price — typically 50% to 90% below standard input rates — while newly appended per-turn tokens and generated output tokens remain at standard rates.
Automatic (implicit) prefix caching matches identical leading tokens without extra fields (for example on Kimi K3, DeepSeek V4.1 Flash, or GPT routes with optional prompt_cache_key affinity). Explicit caching requires a cache breakpoint such as cache_control: { type: 'ephemeral' } on Claude and selected Gemini routes.
Some providers enforce verified per-model hard minimums before caching activates — for example 512 tokens on Claude Opus 5, Opus 5.5, and Fable 5, 1,024 tokens on GPT-5.6+ and Claude Sonnet 4.6 / Opus 4.8, 2,048 tokens on Claude Opus 4.7, and 4,096 tokens on Claude Opus 4.6 and Haiku 4.5. Below a verified hard minimum, the calculator applies 0% cache savings. For routes whose minimum varies by request settings or that publish practical prefix targets (such as pre-GPT-5.6 OpenAI routes, Gemini ~4,000–9,000, and open-weight ~1,024), the calculator still estimates savings and flags prefixes below the practical target.
Even at a 100% cache hit rate on your shared prefix, every turn still includes new user input tokens, non-reasoning output tokens, and any additional reasoning tokens. Fresh input tokens bill at the standard input rate, non-reasoning output tokens at the output rate, and additional reasoning tokens at the model's reasoning rate when separately cataloged (or the long-context output rate above a long-context threshold).
Prefix KV-cache retention is ephemeral and depends on the route. On Inference.net's own GPU fleet, prefix state lives in engine memory and is evicted dynamically based on active cluster load and memory pressure; affinity fields such as session_id or prompt_cache_key improve warm-replica routing affinity where supported without guaranteeing a fixed TTL. Upstream frontier routes follow each upstream provider's ephemeral cache lifecycle.
Yes. Zero Data Retention (ZDR) is enabled by default for new teams on Inference.net. Prompt caching does not disable ZDR or cause request or response content to be logged, retained, or used for model training.