75%–90% Input Token Reduction · Prefix Reuse

LLM Prompt Caching Savings & ROI Calculator

Model how 0% to 95% prompt-cache hit rates slash monthly API bills across Anthropic (90% read discount), OpenAI (75%), Google Gemini (75%), and DeepSeek (~74%).

Anthropic 200k ctx

Claude Sonnet 4.5

$2,162.03/mo

$24.02 per 1k req · Saves $47,996.53/yr vs uncached

Ref rate: $3.00 in · $0.3 cached · $15.00 out

OpenAI 1M ctx

GPT-4.1

$1,719.65/mo

$19.11 per 1k req · Saves $29,155.51/yr vs uncached

Ref rate: $2.00 in · $0.5 cached · $8.00 out

Google 1M ctx

Gemini 2.5 Pro

$1,344.78/mo

$14.94 per 1k req · Saves $18,222.19/yr vs uncached

Ref rate: $1.25 in · $0.3125 cached · $10.00 out

Pricing Transparency: Reference list pricing (verify current provider rate card); user-editable custom rates! Edit any model's Input, Cached, or Output $/1M directly in the table or configure your own Custom Endpoint below.

1. Workload, Prompt Cache & Batch Controls

30-Day Billing Model
0% = Uncached · 75–90% = Warm prefix cache

Optional MCP Tool-Schema Overhead

100-Server Live Benchmark
Custom / Negotiated Enterprise Rate Row
Lowest Monthly Spend
$85.98
Gemini 2.5 Flash-Lite ($0.96 / 1k req)
Median Model Spend
$720.68
90,000 req/mo across 13 models
Cache + 70% MCP Savings
$18,222.19/yr
Gemini 2.5 Pro: Cache/Batch $14,486.04 + 70% MCP slim $3,736.15
Active MCP Tool-Schema Overhead Cost
$444.78/mo
889,560,000 schema tokens/mo (Gemini 2.5 Pro)
$15 / ¥79 Pro 70–90% Schema Cut

Cut Agent Context Bloat & Unlock Higher Prompt Cache Hits

MCPDiet profiles your live MCP servers, trims verbose tool descriptions (MCP-LNT-006), and switches lean IDE/agent profiles without breaking tool calls.

2. Live Sorted 2026 LLM API Cost Comparison (Cheapest First)

Reference list pricing (verify current provider rate card); user-editable custom rates! Adjust any $/1M cell below to compare contracted discounts.

# Model & Context Input $/1M Cached $/1M Output $/1M Per 1k Req Monthly Annual Cache + MCP Savings
1 Gemini 2.5 Flash-Lite
Google · 1M
$0.96 $85.98 $1,457.78/yr
2 DeepSeek V3
DeepSeek · 128k
$2.63 $236.45 $3,912.31/yr
3 Gemini 2.5 Flash
Google · 1M
$3.65 $328.15 $4,373.33/yr
4 GPT-4.1-mini
OpenAI · 1M
$3.82 $343.93 $5,831.10/yr
5 DeepSeek R1
DeepSeek · 128k
$5.28 $475.58 $7,994.08/yr
6 Qwen 3
Alibaba Cloud · 128k
$6.69 $601.88 $10,204.43/yr
7 Claude Haiku 4.5
Anthropic · 200k
$8.01 $720.68 $15,998.84/yr
8 o4-mini
OpenAI · 200k
$10.51 $945.81 $16,035.53/yr
9 Gemini 2.5 Pro
Google · 1M
$14.94 $1,344.78 $18,222.19/yr
10 GPT-4.1
OpenAI · 1M
$19.11 $1,719.65 $29,155.51/yr
11 Claude Sonnet 4.5
Anthropic · 200k
$24.02 $2,162.03 $47,996.53/yr
12 Mistral Large
Mistral AI · 128k
$39.37 $3,543.12 $14,944.61/yr
13 Claude Opus 4.1
Anthropic · 200k
$120.11 $10,810.15 $239,982.65/yr
★ Custom Endpoint / Negotiated
User Rate · Custom
$1.5 $0.35 $6.00 $13.97 $1,257.54 $22,103.48/yr

Key Cost Engineering Takeaways

  • Prompt caching delivers maximum ROI when static system instructions, few-shot examples, and MCP tool schemas sit at the front of the prompt (prefix stability).
  • If an MCP client reorders tools or mutates dynamic timestamps inside tool descriptions on every turn, cache hit rates collapse to 0% and bills jump 4x–10x.
  • Combining an 80% prompt-cache hit rate with MCPDiet schema slimming on a P90 MCP payload (9,884 tokens) eliminates double-digit monthly waste per seat.

More 2026 LLM Pricing & Context Calculators

High-Throughput Model Comparison · Sub-Dollar / 1M Tiers

Gemini 2.5 Flash vs. GPT-4.1-mini API Cost Calculator

Compare Google Gemini 2.5 Flash ($0.30/$2.50) and OpenAI GPT-4.1-mini ($0.40/$1.60) alongside Gemini 2.5 Flash-Lite and DeepSeek V3 for high-volume extraction, routing, and support pipelines.

Value vs. Frontier Routing · Cost Arbitrage

DeepSeek V3 & R1 vs. Claude Sonnet 4.5 API Cost Comparison

Quantify monthly and annual savings when routing structured sub-tasks or bulk workloads from Claude Sonnet 4.5 ($3.00/$15.00) to DeepSeek V3 ($0.27/$1.10) or DeepSeek R1 ($0.55/$2.19).

Asynchronous 24h SLA · Half-Price Token Billing

50% LLM Batch API Savings Calculator

Calculate monthly and annual savings from shifting non-interactive evals, embeddings prep, enrichment, and document extraction onto 50%-discounted Batch APIs.

Seeded with Live 100-Server Telemetry · Median 2,003 / P90 9,884 tok

MCP Agent Tool-Schema Token Budget & Monthly Cost Planner

Quantify how Model Context Protocol tool schemas inflate every agent turn using RungLab's live 100-server benchmark (median 2,003 tokens, P90 9,884 tokens, max 16,424 tokens) and preview 70% MCPDiet savings.

Retrieval-Augmented Generation · 8k–32k Contexts

RAG Pipeline LLM API Cost & Chunk-Budget Calculator

Estimate monthly spend for Retrieval-Augmented Generation pipelines where retrieved document chunks drive 8,000+ input tokens per query while answers stay concise.

← Back to full 13-Model LLM Pricing Comparator

Frequently Asked Questions

What breaks LLM prompt caching in agent loops?

Any non-deterministic token inside the prefix — such as injecting current ISO timestamps, shuffled MCP tool arrays, or user IDs before static system instructions — invalidates the prefix hash.

Does prompt caching reduce output token cost?

No. Prompt caching discounts repeated input prefix tokens only; generated output tokens still bill at full output rates (unless also using a Batch API).

What cache hit rate should production chatbots assume?

Well-structured multi-turn coding and support agents routinely achieve 70%–90% cache hit rates within active 5-minute TTL windows.