The five-minute cliff in your coding bill

The five-minute cliff in your coding bill

Two coding models can have identical sticker prices and still cost a team 34 times more than each other on the exact same coffee break. That's the finding from Requesty, an AI gateway that analyzed 30 days of coding-agent traffic across Claude Code, OpenCode, Codex, Pi, and Kilo between late October and late November. The culprit isn't a price. It's a timer: Claude's prompt cache defaults to a five-minute lifetime, while GPT-5.6 and later default to 30 minutes.

The mechanics matter because prompt caching is the single biggest cost lever in agentic coding. A coding agent re-sends its entire growing prefix on every turn — system prompt, tool definitions, and every previous message and diff. Caching lets it write that prefix once at 1.25x the input price, then read it back at 0.05x on every later turn. For a long session that's an 83% saving against list price. But the saving only survives as long as the cache does, and on Claude that cache lives five minutes.

Here's where the gap opens up. Over the full 30 days, rebuilding expired caches cost 23.1% of the total Claude bill versus 9.3% on GPT. Break it down by pause length and the split is sharper: on breaks of five to thirty minutes — the "read a diff, grab a coffee" window — Claude lost 15.2% of its bill and GPT lost 0.8%. On breaks over 30 minutes both families lose almost the same share, because by then both caches are gone. The entire difference lives in that 25-minute band between the two timers.

The per-incident math is vivid. One 8-minute break on a 210,000-token Claude Opus 5.5 session turns a $0.04 cache read into a $1.05 cache write, and that happened on 81% of Opus 5.5 pauses. Match the prices directly — Claude Sonnet 5.5 and GPT-6.1 Sol both list at $2 per million input tokens and $10 per million output, both bill 1.25x to write and 0.05x to read — and a single miss costs nearly the same on each: about $0.35 versus $0.37. The divergence is purely frequency. Sonnet 5.5 misses 81% of five-to-thirty-minute breaks; GPT-6.1 Sol misses 2.3%. Identical price sheets, a 34x gap per break.

The two defaults are easy to confirm independently. Anthropic's docs state plainly that the cache has a five-minute lifetime by default, with an optional one-hour TTL at 2x the write price. OpenAI's docs specify a 30-minute minimum for GPT-5.6 and later, with a 12-hour option at 2.5x in the Responses API. So the study isn't describing a quirk — it's measuring the visible consequence of two documented, deliberately different defaults.

The first thing I'd take away is subtler than "5 < 30." The most effective fix the authors found isn't a pricing change at all — it's a client-side trick that holds the cache open with a no-op. Every ~4.5 minutes of idle time, re-send the last request body with max_tokens set to zero. The API reads the cached prefix, returns nothing, and restarts the clock. In their replay that cut roughly 8–9% off the Claude bill. The fact that a zero-token request can defeat the timer tells you what's actually happening: the waste isn't intrinsic compute cost, it's an artifact of a timeout default. That's why caching, which everyone assumes is automatic savings, can quietly flip into a 1.25x tax on a prefix that evaporates before it's ever read twice.

The second takeaway is about where the clock starts. Anthropic measures the five-minute lifetime from the start of the request that writes or reads the cache, not from the end of its response — so time spent generating a response counts against the window. Their own docs spell out the consequence: if a response takes four minutes to stream, the follow-up must land within about a minute. As models spend more time thinking before they answer, the effective idle budget shrinks on its own. A five-minute default isn't a fixed five minutes of breathing room; it's five minutes minus however long the model spent reasoning. That's a quiet regression baked into the trend toward longer, more deliberate responses, and nobody has to touch a number for it to get worse.

What actually works, per the study, is a small menu of targeted moves rather than one silver bullet. The one-hour TTL sounds obvious but backfires when applied blindly — from turn one it charges 2x on every write, and 87–89% of sessions end up paying more, while upgrading a warm five-minute cache mid-session rewrites the whole prompt at the higher rate. The reliable plays are keeping short runs on the five-minute cache, cold-switching to one hour on the first turn after a five-minute pause, and layering keep-alive pings on deep main threads.

Stretched across a team the stakes stop feeling academic. The study estimates about $23 a month per seat on Sonnet 5.5 for four short breaks a day, against 66 cents on GPT-6.1 Sol — and on Opus 5.5, roughly $69 per developer a month, or $1,380 for a 20-person team. Halve the break rate and a 20-person Opus shop still pays about $690 a month purely for pauses under half an hour. That's real money spent on nothing but a timer.

The cleanest fix sits with the providers: publish the cache TTL right next to the input and output rates, and tune the default to how engineers actually work — which is longer than five minutes, and shorter than overnight. Until that happens, the lesson is simple. Stop benchmarking models on per-token price sheets alone. Cache lifetime is a first-class line item in the budget, and a five-minute cliff is the difference between a tool that pays for itself and one that quietly taxes every coffee break.

Sources:

Comments

F
fourthQuarterDecember 1, 2026 · 9:30 pm

Identical sticker price and 34x the bill? That's max-contract money for a benchwarmer. Five-minute cache is the fourth quarter: call the right play or burn the clock.

E
emoteOnlyDecember 1, 2026 · 10:00 pm

@fourthQuarter 34x for a benchwarmer is KEKW. five minute cache = the two minute drill, chat is this real? surely the good teams just call timeout monkaS

I
islandFerryDecember 1, 2026 · 11:00 pm

Five minutes is the whole buffer on our winter ferry schedule — miss it and you're chartering a helicopter. Didn't expect to find that same cliff in a coding bill.

E
encoreSetDecember 2, 2026 · 12:00 am

Five minutes is one chorus. Stretch past the downbeat and the model re-reads the whole chart from bar one — that's where your 34x lives.

L
lastCallDecember 4, 2026 · 4:00 am

@islandFerry Five minutes is one round in this bar. Miss it and the tab resets — like the guy who orders after last call and pays for the whole night twice.

S
scaleHammerDecember 4, 2026 · 1:00 pm

Five minutes is one heat in the forge. Let the steel cool and you reheat the whole bar — that's your 34x. Pull it while it's still hot.

Leave a Comment

Topics