Prompt Cache Savings ROI Calculator
Forecast monthly cloud API bill reductions, break-even cache hit rates, hourly context storage costs, and Time to First Token (TTFT) latency gains across Anthropic, OpenAI, DeepSeek, and Google Gemini.
01. LLM Model & Cache Policy
02. Token Payload & Traffic Volume
Selected provider requires at least 1,024 static tokens to activate prompt caching.
| Cost Component | Token Volume & Rate | Uncached | Cached |
|---|---|---|---|
| Static Prefix Reads (Hits) | 960.0M toks @ $0.300/M | $0 | $288 |
| Static Prefix Writes (Misses) | 240.0M toks @ $3.75/M | $3,600 | $900 |
| Context Cache Storage | Included in TTL write fee | $0 | $0 |
| Dynamic User Input | 50.0M toks @ $3.00/M | $150 | $150 |
| LLM Output Generation | 80.0M toks @ $15.00/M | $1,200 | $1,200 |
Frontier LLM Prompt Caching Pricing & Live ROI Comparison
Official provider token rates alongside live monthly cost projections for your current payload (12,000 static + 500 dyn toks • 100,000 reqs/mo @ 80% hit).
| Provider & Model | Base In | Cache Read | Write / Storage | Min Prefix | Uncached/Mo | Cached/Mo | Net Savings | Break-Even |
|---|---|---|---|---|---|---|---|---|
| Anthropic Claude 3.7 / 3.5 Sonnet | $3.00/M | $0.300/M (90% Off) | $3.75/M (1.25x) | 1,024 toks | $4,950 | $2,538 | +$2,412/mo | 21.7% |
| Anthropic Claude 3.5 Haiku | $0.80/M | $0.080/M (90% Off) | $1.00/M (1.25x) | 2,048 toks | $1,320 | $677 | +$643/mo | 21.7% |
| OpenAI GPT-4.1 | $2.00/M | $0.500/M (75% Off) | $0 (Automatic) | 1,024 toks | $3,140 | $1,700 | +$1,440/mo | 1st Hit |
| OpenAI GPT-4o | $2.50/M | $1.250/M (50% Off) | $0 (Automatic) | 1,024 toks | $3,925 | $2,725 | +$1,200/mo | 1st Hit |
| OpenAI GPT-4o-mini | $0.15/M | $0.075/M (50% Off) | $0 (Automatic) | 1,024 toks | $236 | $164 | +$72.00/mo | 1st Hit |
| DeepSeek-V3 (Native MLA) | $0.27/M | $0.070/M (74% Off) | $0 (Native) | 64 toks | $426 | $234 | +$192/mo | 1st Hit |
| DeepSeek-R1 (Reasoning) | $0.55/M | $0.140/M (75% Off) | $0 (Native) | 64 toks | $863 | $469 | +$394/mo | 1st Hit |
| Google Gemini 2.0 Flash | $0.10/M | $0.025/M (75% Off) | $1.00/M/hr | 4,096 toks | $157 | $86.92 | +$70.08/mo | 2.1% |
Frequently Asked Questions
Mastering prompt caching mechanics, TTFT gains, and API cost reduction.
How does prompt caching reduce LLM API bills? ↓
Why does Time to First Token (TTFT) improve with prompt caching? ↓
What causes a prompt cache miss? ↓
- Dynamic tokens in prefix: Inserting a timestamp, random UUID, or user query at the top of the prompt shifts all subsequent token positions, breaking the hash match.
- Time-to-Live (TTL) expiration: Anthropic maintains standard prompt caches for 5 minutes (refreshed on each hit) or 1 hour on extended TTL. If the TTL window passes without traffic, the cache expires.
- Minimum prefix length: Prompts shorter than the provider minimum (1,024 tokens on Claude Sonnet/OpenAI, 2,048 on Claude Haiku, 4,096 on Gemini Explicit, 64 on DeepSeek) bypass caching.
What is the break-even hit rate on Anthropic Claude? ↓
H = (P_write - P_base) / (P_write - P_read) = (3.75 - 3.00) / (3.75 - 0.30) = 21.7%, any hit rate above 21.7% produces positive ROI. For Anthropic's 1-hour Extended TTL (2.0x write fee at $6.00/M), the break-even hit rate is 52.6%.