Why it matters
Prompt caching cuts costs. Understanding shapes provider use.
Advertisement
The architecture
Cache eligible prefix.
TTL: 5 min typical.
Cost: cache reads much cheaper.
Advertisement
How it works end to end
Anthropic: explicit cache_control markers.
OpenAI: automatic prefix caching.
Gemini: context caching.
Cost: cache read ~10-50% of miss.