Prompt Caching Pricing & Rules: Claude, OpenAI, and Gemini Compared
Official November 2026 caching docs confirm Claude offers 512-token explicit breakpoints at 1.25x/2.0x writes and up to 97.5% read discounts, OpenAI sets 1,024-token breakpoints with 30m (1.25x) and 12h (2.5x) writes, and Gemini 4 moves strictly to implicit-only 4,096-token caching with zero storage fees.

THE STORY IN THREE POINTS
- Prompt caching reuses saved Key-Value (KV) attention tensors for identical request prefixes—not final answers—cutting latency and read input bills by 90%–97.5% whenever static instructions, tools, and files appear before dynamic turns.
- Anthropic (Direct & Amazon Bedrock) enforces a 512-token minimum on Claude 5.x/5.5 models across up to 4 cache_control checkpoints (1.25x write for 5m TTL, 2.0x write for 1h TTL; 95%–97.5% hit savings on Opus/Sonnet 5.5 and Fable 5.2), whereas OpenAI sets a 1,024-token floor on GPT-5.6+/GPT-6 models with 30m (1.25x) and 12h (2.5x) writes and 90%–95% read discounts.
- Google Gemini 4 (Carbon, Argon, Hydrogen) does NOT support explicit context caching objects or the Interactions API—running implicit-only zero-config caching above 4,096 tokens (requiring >=2,050 new tokens per turn to extend agent history) at a 95% discount and $0 storage fees.
What is prompt caching—and which prefix changes break a cache hit
For developers evaluating what is prompt caching across frontier APIs, the mechanism preserves intermediate transformer Key-Value (KV) attention tensors computed over an unchanging prefix of your prompt—typically system prompts, large tool definitions, codebase files, and prior conversation turns—rather than storing generated text responses. When a follow-up request begins with an identical prefix within the cache Time-To-Live (TTL), inference skips recomputing those prefill tensors, lowering both time-to-first-token latency and input billing by 90% to 97.5%.
Exact prefix determinism governs hit ratios across every vendor. As documented in OpenAI’s prompt caching guide and Anthropic’s reference, swapping the model ID, mutating tool schemas or tool array ordering before a breakpoint, toggling parallel_tool_calls, changing text verbosity, or triggering context compaction invalidates downstream KV states from the first changed byte onward (though GPT-6 Responses API lets developers append formatting or reasoning.effort configuration updates cleanly without busting earlier conversation prefixes).
Prompt caching Claude & Amazon Bedrock: 512-token minimum, 5m vs 1h TTL, and write pricing
Prompt caching Anthropic on direct Claude Platform Messages API supports both top-level automatic caching (moving a single cache_control breakpoint automatically along multi-turn conversations) and up to 4 explicit {"type": "ephemeral"} content checkpoints (always-on with a 5-minute TTL inside Claude Managed Agents). Per Anthropic’s official pricing sheet, Claude 5.x/5.5 models require just 512 minimum prefix tokens: writing a 5-minute TTL entry bills 1.25x base input ($10/MTok Fable 5.2, $5 Opus 5.5, $2.50 Sonnet 5.5, $0.125 Haiku 5.5 <=100K), while extending retention to a 1-hour TTL bills 2.0x base input ($16, $8, $4, $0.20). Cache hits and refreshes drop 97.5% (0.025x) on Fable/Mythos 5.1–5.2 ($0.20/MTok), 95% (0.05x) on Opus 5.5 ($0.20) and Sonnet 5.5 ($0.10), and 90% (0.1x) on Haiku 5.5 ($0.01 <=100K)—a dynamic explaining how Claude Code sessions cut net spend so steeply in our Claude Code cost audit.
Prompt caching Bedrock mirrors Anthropic’s underlying model economics while adding AWS routing nuances. As detailed in Amazon Bedrock’s Prompt Caching User Guide, Bedrock supports explicit checkpoints across Converse, ConverseStream, and InvokeModel APIs (not Batch) with the exact same 512-token minimums, 4 checkpoints across system/messages/tools, and 5-minute or 1-hour TTLs for Claude Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 (1,024 tokens on Opus 4.8; 4,096 on 4.7). Critically, Bedrock stores cache entries on the specific inference server handling the write: enabling Cross-Region Inference profiles under peak traffic can route follow-up turns onto cold nodes and cause unexpected cache write spikes.
Prompt caching OpenAI (30m/12h TTL) vs prompt caching Gemini 4 (implicit 4,096 floor)
Prompt caching OpenAI applies automatically by default across supported GPT-5.6 and GPT-6 models once visible developer prompt prefixes hit 1,024 tokens (excluding hidden OpenAI instructions). For GPT-5.6+ and GPT-6 series API calls, cache writes are not an additive surcharge—you simply pay 1.25x base input for the default 30-minute TTL ($12.50/MTok GPT-6 Astra, $2.50 GPT-6.1 Sol, $1.25 GPT-6.1 Terra) or opt into a 12-hour TTL via the Responses API at 2.5x ($25.00 Astra, $5.00 Sol, $2.50 Terra). Cache hits save 95% (0.05x) on GPT-6.1 Sol ($0.10/MTok) and Terra ($0.05) and 90% (0.1x) on GPT-6 Astra ($1.00) and Luna ($0.01), doubling cleanly across >272K long-context tiers—separate from ChatGPT Codex subscribers’ signed-in permanent resume caching and third-party OpenRouter cache-hit analysis.
Prompt caching Gemini introduces a critical 2026 generational rule documented inside Google AI Studio’s Context Caching docs: explicit context caching (where developers manually create named cache objects paying hourly storage fees) applies strictly to older Gemini 2.5 and Gemini 3 models and is NOT supported on Gemini 4 models or the Interactions API. Instead, Gemini 4 Carbon, Argon, and Hydrogen rely exclusively on zero-config Implicit Caching requiring a 4,096-token minimum input and costing zero hourly storage fees (while charging 95% off on cached hits—$0.10/MTok rising to $0.20 Dec 1 on Carbon/Argon, and $0.075/MTok on Hydrogen—contingent on adding >=2,050 new tokens per turn in agent loops to cache full prior context).
Sources: Claude Prompt Caching Documentation (Breakpoints, 5m/1h TTLs & ZDR)|Anthropic Docs ↗ Anthropic Model Pricing & Cache Write/Read Multipliers|Claude Platform Docs ↗ Prompt Caching Guide (KV States, Breakpoints, 1,024 Floor)|OpenAI Developers ↗ OpenAI API Pricing (30m 1.25x & 12h 2.5x Cache Writes)|OpenAI Developers ↗ Gemini API Context Caching (Gemini 4 Implicit 4,096 Rules)|Google AI Studio ↗ Prompt Caching for Faster Model Inference (Implicit, Explicit & Regional Behavior)|Amazon Bedrock Docs ↗
THE BROADER CONTEXT · OPENAI DOSSIER
Explore full product specifications, pricing analysis, and continuous coverage in the OpenAI Desk Hub and dots Dossier. Independent benchmarks available on the AI Intelligence Index and Coding Agents Leaderboard.


