Hacker News·First covered 2 Dec 2026HN front page
Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses
Requesty measured 30 days of coding-agent traffic and found rebuilding expired prompt caches took 23.1% of Claude bills against 9.3% on GPT, driven by Claude's 5-minute default cache lifetime.
Stats
(As of 3 Dec 2026)- Points
- 458
- Comments
- 165
- Submitted by
- danvdb
- Posted
- 1d
- Breaks of 5 to 30 minutes cost Claude users 15.2% of the bill and GPT users 0.8%, since GPT's cache survives about 30 minutes.
- Sonnet 5.5 and GPT-6.1 Sol share list prices, yet a short break costs about $0.28 on Sonnet versus under a cent on GPT, a 34x gap.
- Enabling Claude's 1-hour cache from the first turn costs more for most sessions, and switching mid-session rewrites the whole prompt.
- Their best fix: after 4.5 idle minutes, resend the last request with max_tokens at 0, capped by session depth, for about 8 to 9% net savings.
The discussion
- AgreedCommenters find a 5-minute API default odd, since builds and test runs often outlast it while subscription plans get an hour. comment
- ThemeSeveral note Claude Code subscriptions default to a 1-hour cache for the main agent and 5 minutes for subagents, so the cost mainly hits API users. comment
- ThemeOne recalls an old OS trick, printing to the console to keep interactive priority, as a precedent for keep-alive pings. comment
- CounterpointOthers doubt keep-alive pings will last, expecting providers to close the loophole once it spreads. comment
- ThemeAsked why vendors do not hand clients the KV cache to store, a reply says it can run to hundreds of gigabytes. comment