TryLLMCost
All 20 Calculators/Caching & Batch Savings
Anthropic 90% Cache Savings

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.

Reference public API rates (2025–2026) — editable inline
85% Cached Input
0% (No cache)50% (RAG)80%–90% (Coding/Multi-turn Agent)
Total Monthly API Calls
100.0K
1.25B total tokens/mo
70% Gross Margin API Ceiling
$14.70 /user/mo
Max $7,350.00/mo total bill
Monthly Recurring Revenue
$24,500.00
500 MAU × $49/mo
Models Below 70% Margin
1 / 25
Use routing or caching to protect P&L

Model Routing Savings Optimizer (80% Fast / 20% Frontier vs 100% Frontier)

Save $1,238.11/mo (75%)
Fast Traffic %80%
100% Frontier
$1,642.68
93.3% margin
Routed Bill
$404.57
$0.81/user
Routed Margin
98.3%
Healthy P&L
All 25 models ranked by monthly API bill (500 MAU · 25 runs × 8 steps · 85% cache)
#ModelProvider / TierMonthly API BillCost / Active UserGross Margin %Margin Health
1Gemini 2.0 Flash-LiteGoogle · Fast / Budget$47.52$0.1099.8%Healthy
2GPT-4.1 nanoOpenAI · Fast / Budget$61.50$0.1299.7%Healthy
3Llama 3.1 8B Instant (Groq)Meta (Groq) · Fast / Budget$66.78$0.1399.7%Healthy
4Gemini 2.5 FlashGoogle · Balanced$95.05$0.1999.6%Healthy
5GPT-4o miniOpenAI · Fast / Budget$130.50$0.2699.5%Healthy
6Mistral Small 3.1Mistral · Fast / Budget$145.53$0.2999.4%Healthy
7Llama 4 Scout 17B (Groq)Meta (Groq) · Fast / Budget$153.19$0.3199.4%Healthy
8Grok 3 MinixAI · Reasoning$156.06$0.3199.4%Healthy
9DeepSeek V3 (Chat)DeepSeek · Balanced$172.89$0.3599.3%Healthy
10GPT-4.1 miniOpenAI · Fast / Budget$246.00$0.4999.0%Healthy
11DeepSeek R1DeepSeek · Reasoning$347.16$0.6998.6%Healthy
12Llama 4 Maverick (Together)Meta (Together) · Balanced$376.74$0.7598.5%Healthy
13Claude 3.5 HaikuAnthropic · Fast / Budget$438.05$0.8898.2%Healthy
14Amazon Nova Pro (Bedrock)Amazon · Balanced$511.68$1.0297.9%Healthy
15OpenAI o4-miniOpenAI · Reasoning$676.50$1.3597.2%Healthy
16Llama 3.3 70B (Groq)Meta (Groq) · Balanced$780.77$1.5696.8%Healthy
17Gemini 2.5 ProGoogle · Reasoning$1,024.06$2.0595.8%Healthy
18GPT-4.1OpenAI · Frontier$1,230.00$2.4695.0%Healthy
19OpenAI o3OpenAI · Reasoning$1,230.00$2.4695.0%Healthy
20Claude Sonnet 4Anthropic · Frontier$1,642.68$3.2993.3%Healthy
21Claude 3.7 SonnetAnthropic · Frontier$1,642.68$3.2993.3%Healthy
22Grok 3xAI · Frontier$2,019.60$4.0491.8%Healthy
23GPT-4oOpenAI · Frontier$2,175.00$4.3591.1%Healthy
24Mistral Large 2Mistral · Frontier$2,910.60$5.8288.1%Healthy
25Claude Opus 4Anthropic · Frontier$8,213.40$16.4366.5%Alert <70%

Key Cost Benchmarks & Pricing Dynamics

Claude Sonnet 4 Cache Rate
$0.30 vs $3.00 / 1M

Every cached million input tokens saves $2.70—turning a $3,600/mo agent bill into under $950/mo.

Minimum Cacheable Prefix
1,024 Tokens (Sonnet)

Sonnet 4 & Opus 4 cache prefixes starting at 1,024 tokens; Haiku 3.5 starts at 2,048 tokens.

Multi-Step Agent Multiplier
65%–82% Net Bill Drop

In 8-step tool-calling loops where conversation history accumulates, turn 2–8 cache hits slash input spend.

Focused Models in This Calculator

Claude Sonnet 4Anthropic
Input/1M
$3.00
Output/1M
$15.00
Cached/1M
$0.30
200K context~72 tok/s

Autonomous coding agents, editorial writing, tool use

Claude Opus 4Anthropic
Input/1M
$15.00
Output/1M
$75.00
Cached/1M
$1.50
200K context~42 tok/s

Hardest multi-file engineering, legal & research synthesis

Claude 3.5 HaikuAnthropic
Input/1M
$0.80
Output/1M
$4.00
Cached/1M
$0.080
200K context~120 tok/s

Low-latency customer support & prompt-cached sub-agents

Claude 3.7 SonnetAnthropic
Input/1M
$3.00
Output/1M
$15.00
Cached/1M
$0.30
200K context~75 tok/s

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.

Transparent SaaS Pricing

Free 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 Signup
$0/ forever

Everything 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
Use Free Calculator Now
Most Popular

Pro

Founders & PMs
$15/ month

Never 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 Guardrails
$39/ month

Connect 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