AyCode

Analysis1 min read

Study: Claude's 5-min prompt cache burns 23.1% of coding bills

A 30-day Requesty study shows 5-to-30-minute coffee breaks cost Claude coding agents 15.2% in cache rewrites, versus just 0.8% on GPT's 30-min cache.

A 30-day Requesty study shows 5-to-30-minute coffee breaks cost Claude coding agents 15.2% in cache rewrites, versus just 0.8% on GPT's 30-min cache.

By the AyCode team

Researched and written with AI, edited and approved by Niccolo Bodenstedt.

  • Prompt caching
  • Anthropic
  • OpenAI
  • Pricing
  • Coding agents

Every model pricing table highlights cheap cache-read rates, yet almost none highlight cache lifetimes. On December 1, Requesty published a 30-day traffic study across Claude Code, OpenCode, Codex, Pi, and Kilo (October 24 to November 22, 2026) showing how much money disappears while a developer steps away for coffee.

The 5-minute cliff vs. the 30-minute window

By default, Anthropic's API prompt cache expires after 5 minutes of inactivity (unless you explicitly request the 1-hour TTL at a 2x write multiplier), whereas GPT models hold caches warm for roughly 30 minutes:

  • 23.1% vs. 9.3% total waste: Across 30 days of mixed coding-agent traffic, 23.1% of total Claude bills went to rebuilding expired prompt caches, versus 9.3% on GPT models.
  • The coffee-break trap: On pauses over 30 minutes, both families lose roughly the same share (7.8% on Claude vs. 8.5% on GPT). On 5-to-30-minute pauses, however, Claude loses 15.2% of its total bill to expired cache rewrites while GPT loses just 0.8%.
  • Real example: Requesty notes that an 8-minute pause on a 210,000-token Claude Opus 5.5 context turns what should have been a $0.04 cache read into a $1.05 cache write (at the 1.25x write price).

Our take

Human developers do not code like continuous batch scripts. You stop to read a failing stack trace, check Slack, or grab coffee for ten minutes, and a 5-minute TTL punishes every single one of those natural pauses. If you run Claude on API billing with long contexts, switching high-churn threads to the 1-hour TTL option in Anthropic's prompt caching API or running /compact before stepping away is real money saved.

In AyCode

AyCode's Usage view breaks costs down by token type and shows how much came from the cache per chat and provider, so you do not have to guess whether an agent session is reading warm prefixes or paying full cache-write rates after every pause.

Sources

Where every claim in this post comes from. Posts on X are linked, never copied.

  1. RequestyClaude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses
  2. AnthropicPrompt caching docs

Run every new model side by side.

AyCode puts Claude Code, Codex, Gemini, Grok and the rest into one calm desktop app. Free for Mac, Windows and Linux.