Hacker News new | ask | show | jobs
by theanonymousone 28 minutes ago
Where can I find cache "duration" of different providers? I have never seen such information, despite it being a very big deal in cost estimation. Or maybe it's dynamic?
2 comments

Not all providers publish it, and aren't always correct when they do. For some providers (e.g. DeepSeek, Antigravity Gemini) it is indeed dynamic/not guaranteed.

Bet bet is to measure it yourself by observing billing/credit usage or time-to-first-token.

Claude Code is here: https://code.claude.com/docs/en/prompt-caching

If you're using OpenRouter they publish cache hit rates, which can be used as a sort of proxy, e.g.: https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017#pric...

It's not dynamic, in the sense pricing has rules, but, it is dynamic in the sense you won't always hit the cache.

Generally, by Googling "(provider) llm cache cost and duration" - can't recommend any source that collects them all.

Generally OpenAI and Anthropic are very serious about this and document it well.

Google is currently a shit show but getting better if you're on Interactions API.

The not-$1T crowd, i.e. other inference providers, can't and won't really guarantee anything.

OpenRouter shows data on their cache hit rates.

On not-$1T-crowd APIs, they'll want to set an arbitrary hint that they'll use for server affinity. (i.e. Fireworks needs to know this request wants to run on the same server/cluster/whatever as the last request so it can get a cache hit)