Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses | Requesty

requesty.ai13 min read

An analysis of 30 days of coding-agent traffic on Requesty reveals that Claude models lose 23.1% of their total bill rebuilding expired prompt caches compared to 9.3% for GPT models. The disparity stems primarily from Claude's 5-minute default time-to-live versus GPT's 30-minute floor, with 5 to 30 minute pauses causing frequent costly rewrites on large conversation prefixes. The authors found that adaptive keep-alive pings using max_tokens set to zero can mitigate this waste on Claude endpoints by extending cache lifetimes during developer idleness. Open article →

More on this topic