Claude Prompt Caching Cost & Savings Calculator
Quantify exact dollar savings from Anthropic's 90% prompt-cache read discount across multi-turn coding agents, RAG pipelines, and long-document Q&A.
Model Routing Savings Optimizer (80% Fast / 20% Frontier vs 100% Frontier)
| # | Model | Provider / Tier | Monthly API Bill | Cost / Active User | Gross Margin % | Margin Health |
|---|---|---|---|---|---|---|
| 1 | Gemini 2.0 Flash-Lite | Google · Fast / Budget | $47.52 | $0.10 | 99.8% | Healthy |
| 2 | GPT-4.1 nano | OpenAI · Fast / Budget | $61.50 | $0.12 | 99.7% | Healthy |
| 3 | Llama 3.1 8B Instant (Groq) | Meta (Groq) · Fast / Budget | $66.78 | $0.13 | 99.7% | Healthy |
| 4 | Gemini 2.5 Flash | Google · Balanced | $95.05 | $0.19 | 99.6% | Healthy |
| 5 | GPT-4o mini | OpenAI · Fast / Budget | $130.50 | $0.26 | 99.5% | Healthy |
| 6 | Mistral Small 3.1 | Mistral · Fast / Budget | $145.53 | $0.29 | 99.4% | Healthy |
| 7 | Llama 4 Scout 17B (Groq) | Meta (Groq) · Fast / Budget | $153.19 | $0.31 | 99.4% | Healthy |
| 8 | Grok 3 Mini | xAI · Reasoning | $156.06 | $0.31 | 99.4% | Healthy |
| 9 | DeepSeek V3 (Chat) | DeepSeek · Balanced | $172.89 | $0.35 | 99.3% | Healthy |
| 10 | GPT-4.1 mini | OpenAI · Fast / Budget | $246.00 | $0.49 | 99.0% | Healthy |
| 11 | DeepSeek R1 | DeepSeek · Reasoning | $347.16 | $0.69 | 98.6% | Healthy |
| 12 | Llama 4 Maverick (Together) | Meta (Together) · Balanced | $376.74 | $0.75 | 98.5% | Healthy |
| 13 | Claude 3.5 Haiku | Anthropic · Fast / Budget | $438.05 | $0.88 | 98.2% | Healthy |
| 14 | Amazon Nova Pro (Bedrock) | Amazon · Balanced | $511.68 | $1.02 | 97.9% | Healthy |
| 15 | OpenAI o4-mini | OpenAI · Reasoning | $676.50 | $1.35 | 97.2% | Healthy |
| 16 | Llama 3.3 70B (Groq) | Meta (Groq) · Balanced | $780.77 | $1.56 | 96.8% | Healthy |
| 17 | Gemini 2.5 Pro | Google · Reasoning | $1,024.06 | $2.05 | 95.8% | Healthy |
| 18 | GPT-4.1 | OpenAI · Frontier | $1,230.00 | $2.46 | 95.0% | Healthy |
| 19 | OpenAI o3 | OpenAI · Reasoning | $1,230.00 | $2.46 | 95.0% | Healthy |
| 20 | Claude Sonnet 4 | Anthropic · Frontier | $1,642.68 | $3.29 | 93.3% | Healthy |
| 21 | Claude 3.7 Sonnet | Anthropic · Frontier | $1,642.68 | $3.29 | 93.3% | Healthy |
| 22 | Grok 3 | xAI · Frontier | $2,019.60 | $4.04 | 91.8% | Healthy |
| 23 | GPT-4o | OpenAI · Frontier | $2,175.00 | $4.35 | 91.1% | Healthy |
| 24 | Mistral Large 2 | Mistral · Frontier | $2,910.60 | $5.82 | 88.1% | Healthy |
| 25 | Claude Opus 4 | Anthropic · Frontier | $8,213.40 | $16.43 | 66.5% | Alert <70% |
Key Cost Benchmarks & Pricing Dynamics
Every cached million input tokens saves $2.70—turning a $3,600/mo agent bill into under $950/mo.
Sonnet 4 & Opus 4 cache prefixes starting at 1,024 tokens; Haiku 3.5 starts at 2,048 tokens.
In 8-step tool-calling loops where conversation history accumulates, turn 2–8 cache hits slash input spend.
Focused Models in This Calculator
Autonomous coding agents, editorial writing, tool use
Hardest multi-file engineering, legal & research synthesis
Low-latency customer support & prompt-cached sub-agents
Hybrid extended thinking & enterprise workflows
Production FinOps Optimization Playbook
Structure Prompts from Most Static to Most Dynamic
Order your payload strictly as: (1) Tool JSON schemas, (2) System prompt, (3) Shared knowledge base/repo files, (4) Conversation history, (5) Latest user message—putting cache breakpoints after #2 and #4.
Avoid Injecting Per-Second Timestamps at the Top
Putting `Current time: 14:32:07` in the system prompt invalidates the entire prefix cache on every single API call. Pass timestamps in the final user turn instead.
Use 1-Hour Cache TTL for Low-Frequency Workspaces
Standard 5-minute TTL refreshes on every hit; if users pause 10–30 minutes between prompts, Anthropic's extended TTL prevents frequent cache misses.
Frequently Asked Questions
How much does Anthropic prompt caching save?
Cache reads are billed at 10% of the base input rate (90% off): $0.30/1M on Claude Sonnet 4, $1.50/1M on Opus 4, and $0.08/1M on Haiku 3.5.
Why didn't my total Claude bill drop by 90% when caching is enabled?
Prompt caching only discounts input tokens, not output tokens. Because Claude output tokens cost 5x input tokens, total bill reductions typically range from 40% to 80% depending on your input:output ratio.
What is the Anthropic cache write surcharge?
Writing a new 5-minute cache entry costs 1.25x the standard input rate on turn 1. From turn 2 onward, 0.10x reads quickly recover the small turn-1 write premium.
Does prompt caching also reduce Claude latency?
Yes—cached prefixes skip full prefill computation, often reducing Time-to-First-Token (TTFT) by 50%–85% on long contexts.
Related LLM Cost Calculators
Claude API Cost Calculator (Sonnet 4, Opus 4 & Haiku 3.5)
Open calculator OpenAI Automatic CachingOpenAI Prompt Caching Savings Calculator (50%–75% Off Input)
Open calculator Developer Tooling EconomicsCoding Agent Token Burn Calculator (Cursor / Claude Code / Devin Style)
Open calculator Agent Loop EconomicsAI Agent Multi-Step Token Burn & Unit-Economics Estimator
Open calculatorFree Forever Calculator. Upgrade When Spend Scales.
Model 25 LLMs with zero login today. Upgrade to Pro or Team for automated API price-drop alerts, saved CFO scenarios, and live usage overrun guards.
Free
No SignupEverything you need for architecture sizing, prompt tokenization, and SaaS margin checks.
- Unlimited comparisons across 25+ models
- Live client-side prompt token counter (EN/Code/CJK)
- Prompt caching (0–90%) & Batch API 50% toggles
- AI Agent & SaaS Gross Margin Simulator
- 80/20 Model Routing Optimizer + inline rate edits
- Unlimited CSV financial exports
Pro
Founders & PMsNever get blindsided by provider price changes or margin erosion across investor reviews.
- Everything in Free, plus cloud-saved scenarios
- Compare multiple multi-agent architecture versions
- Weekly API price-drop & new-model email alerts
- 1-click branded CFO / Board Deck PDF export
- Custom enterprise discount profiles (AWS/Vertex/OpenAI)
- Historical token price tracker & depreciation notices
Team
Live GuardrailsConnect real production token telemetry and catch runaway agent loops before the bill lands.
- Everything in Pro for up to 10 team seats
- Zero-latency live usage telemetry proxy endpoint
- Real-time Slack & webhook budget overrun alerts
- Per-customer / per-tenant gross margin leaderboard
- Automatic anomaly detection on infinite agent loops
- Scheduled weekly FinOps digest to #ai-infra