Why does Claude's 5-minute prompt cache TTL cost more than GPT's?
The two providers charge the same to write a cache but keep it for different lengths of time. Claude's default cache lives 5 minutes, and OpenAI's default for GPT-5.6 and later lives at least 30, so a pause between those two marks costs a full rewrite on Claude and a cheap read on GPT.
Anthropic's documentation says the cache has a 5-minute lifetime by default and is refreshed at no extra cost each time it is used [2]. OpenAI's guide says cache writes on GPT-5.6 and later cost 1.25× the uncached input rate for the default 30-minute lifetime, with a 12-hour option at 2.5× in the Responses API [3]. Reads are cheap on both sides: Anthropic prices cache hits on Claude Opus 5.5 and Claude Sonnet 5.5 at 0.05x the base input price [2], and OpenAI lists 0.05× for GPT-6.1 Sol [3].
Requesty sums it up in a data study published on 1 December 2026: both labs bill 1.25x to write on their current models, the two models it compares head to head (Claude Sonnet 5.5 and GPT-6.1 Sol) both read at 0.05x, and the split in coding bills comes from the default TTL [1]. The price sheets match, but the clocks do not.
How does a coding agent use the prompt cache?
Each turn of a coding agent resends the whole conversation: the system prompt, tool definitions, every earlier message and every tool output. Caching turns that growing prefix from full-price input into a discounted read. In Requesty's description, you pay 1.25x once to write new tokens into the cache, then 0.05x to read the cached prefix on each later turn [1].
While the agent loops on its own, requests arrive seconds apart, and each read resets the timer [2]. The trouble starts when the agent stops and waits for a person. Read a diff for 8 minutes and the Claude cache has expired, so the next turn pays the write rate on the entire prefix [1].
Anthropic documents a detail that shortens the window further. The lifetime is measured from the start of the request that writes or reads the cache, not from the end of the response, so if a response takes 4 minutes to stream, the follow-up must start within about 1 minute of it finishing [2].
What did the Requesty study measure?
Requesty analyzed 30 days of production coding-agent traffic, from 24 October to 22 November 2026, across Claude Code, OpenCode, Codex, Pi and Kilo, using token and billing counters only [1]. Every percentage in this section is Requesty's figure from the traffic it measured. It is one vendor's data, not an industry average.
| Measure | Claude | GPT |
|---|---|---|
| Share of the bill spent rebuilding caches after pauses | 23.1% | 9.3% |
| Loss on breaks of 5 to 10 minutes | 8.0% | 0.4% |
| Loss on breaks of 5 to 30 minutes | 15.2% | 0.8% |
| Loss on breaks over 30 minutes | 7.8% | 8.5% |
The table above uses Requesty's published numbers [1]. Past 30 minutes, both caches are gone and the two families lose about the same share, so the whole gap sits in breaks of 5 to 30 minutes. On Claude, the 5 to 10 minute slice alone (8.0%) costs more than every break over an hour combined (5.3%), according to the study [1].
Requesty also checked that the gap is not a tooling effect. Within OpenCode alone, pause rebuilds took 30.6% of the Claude bill against 11.3% on GPT, and the difference came from 5 to 30 minute pauses: 20.2% on Claude, 0.9% on GPT [1].
How do you calculate the cost of one pause?
A miss replaces a cache read with a cache write on the full prefix. The extra cost is the prefix size, times the input price, times the gap between the two multipliers:
extra cost = prefix tokens (millions) x input price per million tokens x (write multiplier - read multiplier)
For Claude Sonnet 5.5 on the 5-minute cache, the gap is 1.25 - 0.05 = 1.20. Requesty lists Sonnet 5.5 and GPT-6.1 Sol at $2 per million input tokens, with prefixes of roughly 140,000 tokens at a pause miss [1]. That works out to 0.14 million tokens x $2 per million x 1.20, or about $0.34 per miss, close to the $0.35 Requesty measured [1].
One miss does nearly the same dollar damage on both models: $0.35 on Sonnet 5.5 and $0.37 on GPT-6.1 Sol. Frequency is what differs. Sonnet 5.5 missed 81.2% of 5 to 30 minute breaks in Requesty's data and GPT-6.1 Sol missed 2.3%, which puts the expected cost per break at $0.28 against $0.008 [1].
Larger prompts on a pricier model raise the stakes. On Claude Opus 5.5, with a median prompt of 207,000 tokens, Requesty puts the expected cost of each 5 to 30 minute break at $0.86 [1]. Its own scenario of four such breaks a day over a 20-workday month comes to about $69 per developer, or about $1,380 a month for a team of 20 [1].
To estimate your own figure, take cache_creation_input_tokens on the first turn after a pause, multiply it by your model's input price and by the multiplier gap, and count how many of those turns you log in a week. Anthropic's read rates give a gap of 1.20 on Claude Opus 5.5 and Sonnet 5.5 (0.05x reads), 1.225 on the Fable and Mythos models (0.025x) and 1.15 on the other Claude models (0.1x) [2].
Does switching to Claude's 1-hour cache fix it?
Only in narrow cases. Anthropic offers a 1-hour TTL at 2x the base input token price [2]. Its docs recommend the 1-hour cache for prompts used less often than every 5 minutes but more often than every hour, and say a prompt sent more often than every 5 minutes should stay on the 5-minute cache, because it keeps refreshing at no charge [2].
Requesty found two catches when it tried the 1-hour option [1]:
- Turning it on from turn 1 charges 2.0x on every write, and 87% to 89% of sessions ended up paying more.
- Switching a warm 5-minute conversation to 1 hour mid-session read 0 tokens on the Anthropic API and Vertex, and rewrote the whole prompt at 2.0x.
Requesty measured a net saving for one setup and recommends a second. A cold switch to 1 hour, on the first turn after a 5-minute miss, saved about 5% to 7% net. The other option puts static tools and the system prompt on 1 hour and messages on 5 minutes from the first turn, with the 1-hour markers placed before the 5-minute ones, or the API returns HTTP 400 [1].
Do keep-alive pings work?
In Requesty's tests they beat every 1-hour option. After 4.5 minutes idle, the agent's client re-sends the exact last request body with max_tokens: 0 and with stream: true removed, to the same provider, region and credentials [1]. Live runs on the Anthropic API, Bedrock and Vertex returned 0 output tokens and full prefix reads, and Requesty notes that count_tokens does not refresh the cache [1].
A ping costs one read and saves one write, but only if the developer comes back before the next expiry. The break-even return rate is read / (write - read): 0.05 / 1.20 is about 4.2%, and on models that read at 0.10x it is 8.7% [1]. Because the chance of a developer returning rises with turn depth, Requesty's schedule sends no pings early in a thread and 2 to 6 on deeper ones, which cut about 8% to 9% off the Claude coding bill in its replay [1].
Pings have limits. Anthropic's docs say a max_tokens: 0 request is rejected if it sets stream: true, extended thinking, structured outputs or a forced tool_choice, and inside Message Batches [2]. Requesty adds that the client has to store the last request body for up to about 30 minutes [1]. Pings sent after a developer has stopped for the day are wasted: in the replay, 43% to 52% of long sessions spent more on pings than they saved [1].
Which fix should you pick?
Match the fix to how your sessions run:
- Short runs and subagents that finish inside 5 minutes: leave them on the default 5-minute cache. Requesty found that 76% of Claude coding conversations finish inside 5 minutes [1].
- Long main threads with human review breaks: add turn-depth keep-alive pings past turn 5 [1].
- Requests where
max_tokens: 0is not allowed: switch cold to the 1-hour cache on the first turn after a miss, and do not upgrade a warm 5-minute cache mid-session on the Anthropic API or Vertex [1]. - Model evaluations for a team: test across real multi-hour workdays with breaks, because equal price sheets can produce very different monthly bills [1].
Start with your own logs. Count the continuing turns that arrive more than 300 seconds after the previous one, where cache_read_input_tokens drops near zero and cache_creation_input_tokens jumps to the full prompt size; Requesty calls that number your pause bill [1].



