Anthropic and OpenAI charge nearly identical per-token rates for prompt caching on their current models. Yet across 30 days of real coding-agent traffic, Claude lost 23.1% of its total bill to rebuilt prompt caches while GPT lost 9.3%, according to an analysis published Monday by AI gateway provider Requesty. The gap, the company says, comes down to a single default setting: how long a cache survives before it expires.
The finding matters for any team running AI coding agents, where developers step away from the keyboard constantly — and where every step away can silently invalidate an expensive cached context. For teams auditing their own spend, this is one of those cost lines that never appears on a pricing page. For more reporting on developer tools and pricing, follow our breaking AI news coverage.
What Requesty Measured
Requesty analyzed 30 days of coding-agent traffic spanning October 24 to November 22, 2026, across five tools: Claude Code, OpenCode, Codex, Pi, and Kilo. The study, written by Daniel Van den Berghe and published Dec 1, breaks down how much of each bill went to rebuilding prompt caches that had expired while a developer was away from an active session.
The topline numbers: 23.1% of the total Claude bill across those tools went to cache rebuilds, versus 9.3% for GPT models over the same tools and window. The gap is not evenly distributed — it is concentrated almost entirely in one specific range of interruption lengths.
On breaks longer than 30 minutes, both model families lose roughly the same share of the bill — 7.8% for Claude and 8.5% for GPT — because both caches are already gone regardless of TTL. But on breaks between 5 and 30 minutes, the picture diverges sharply: Claude loses 15.2% of the bill in that band while GPT loses just 0.8%.
The Cliff at Five Minutes
The mechanics are straightforward. Claude's prompt cache expires after 5 minutes by default; GPT's lasts a minimum of 30 minutes. A developer who pauses for a coffee break longer than 5 minutes returns to find Claude's cache cold, forcing the agent to rewrite the entire conversation prefix at cache-write rates.
Requesty quantifies how painful that is in practice: one 8-minute break during a 210,000-token Claude Opus 5.5 session turns a $0.04 cache read into a $1.05 cache write at Anthropic's list prices. According to the analysis, that happens on 81% of Opus 5.5 pauses in the 5-to-30-minute window — interruptions of that length are simply common in how developers work.
As the report's title puts it, minutes five through ten cost more than overnight breaks. Long breaks are cheap per interruption because they are rare; the 5-to-30-minute band is where coding-agent usage actually lives.
Identical Rates, Different Defaults
The strangest part of the findings is that the underlying price multipliers are the same across both providers. Claude Opus 5.5 and Sonnet 5.5 and GPT-6.1 Sol all charge 0.05x of input price for cache reads and 1.25x for cache writes at default settings. Both providers also refresh the cache timer on every read.
What differs is the default time-to-live and the cost of extending it:
| Setting | Claude (Opus/Sonnet 5.5) | GPT-6.1 Sol |
|---|---|---|
| Cache read | 0.05x input | 0.05x input |
| Cache write (default) | 1.25x input | 1.25x input |
| Default TTL | 5 minutes | 30 minutes (minimum) |
| Longer TTL option | 1 hour at 2.0x write | 12 hours at 2.5x write (Responses API) |
Claude's escape hatch — a 1-hour TTL — costs 2.0x input price per cache write, meaning teams pay a 60% premium on every write to buy an extra 55 minutes of cache life. GPT's 12-hour option via the Responses API costs 2.5x per write, but stretches that premium across a full workday rather than an hour.
What Actually Worked to Fix It
Requesty reports on its own mitigation attempts, and the effective fixes are mostly workflow-level rather than API-level. Keeping agents actively alive — periodic lightweight requests that refresh the cache timer — works but adds its own token cost and engineering overhead. Routing short interruptions differently from long ones, or simply preferring longer-TTL models for interactive coding sessions, moved the numbers in their data.
The company's broader point is that a 23% billing difference driven by one default deserves to be visible. As the report frames it, this is "the one line missing from every pricing table": providers publish per-token cache multipliers but not default cache lifetimes, which in agent-heavy workloads can matter as much as the sticker price itself.
What It Means for Teams Running Agents
For engineering teams evaluating coding agents, the analysis suggests total cost comparisons should model realistic developer behavior — frequent short interruptions — rather than assuming continuous sessions. A tool billed as cheaper per token can end up more expensive in practice if its default cache lifetime mismatches how humans actually work.
Both providers' incentives here are worth watching. Cache TTLs are configuration, not physics: the same infrastructure that serves a 5-minute cache can serve a 30-minute one. If agent-driven traffic keeps growing, default cache lifetime may become a competitive lever the same way per-token pricing has been — and developers now have public numbers to demand it with.
---
Stay Ahead of AIGet the latest AI news, analysis, and breakthroughs — all in one place.
Read more AI news →