← Back to Blog
Prompt Cache TTL: How Idle Pauses Quietly Inflate Your LLM Bill
Claude's prompt cache expires after 5 minutes. GPT's after 30. That one number can cost you a quarter of your LLM bill.
Requesty measured it this week. A warm cache read costs 0.05x the input price, a write costs 1.25x. So when a session idles past the TTL, the next request rewrites the entire conversation prefix at 25x the price of a read.
One example: an 8-minute break in a 210,000-token Opus 5.5 session turned a $0.04 read into a $1.05 write. Across replays, pauses over 5 minutes ate 23.1% of the Claude bill and 9.3% of the GPT bill.
What I would check first:
- Log cache read tokens on every request. If they drop after a pause, that is your leak.
- Keep the prefix byte-stable: same tool order, same system prompt, timestamps after the last cache breakpoint.
- For chat products, a keep-alive ping after about 4.5 minutes idle saved 8-9% net. It is rejected with thinking or structured outputs on, so test before relying on it.
- Do not turn on the 1-hour TTL from turn one. Writes cost 2x and 87-89% of sessions paid more. Enable it only after the first pause.
- Watch long agent turns. On Anthropic the clock starts at request start, so a slow step can expire its own cache.
My view: TTLs are a provider design choice and will keep moving. The durable habit is measuring hit rate by pause length, not memorizing today's number.