Prompt Caching 2026: Cut LLM Costs by Up to 90% on Repeat Requests (Anthropic + OpenAI)
Every customer support request sends the same 2,000-token system prompt to the API. You are paying full price for the same content every single time.
## Prompt Caching: Stop Paying Twice for the Same Tokens
Prompt caching is a provider feature that stores recently used input tokens and charges much less when they are reused. Anthropic introduced it in 2024, OpenAI followed with automatic caching, and by 2026 it is the single easiest cost optimization available to any LLM app - in many cases cutting input costs by up to 90% on stable prefixes.
## How It Works
When your request includes a prefix that was already processed recently (system prompt, few-shot examples, tool definitions, document context), the provider reuses the cached computation. Anthropic's model: cached input tokens cost roughly 90% less than fresh input tokens, and cache writes cost a fraction of fresh reads. OpenAI applies automatic caching to repeated input prefixes at about a 50% discount on cached input tokens. Both are automatic in the sense that you do not need to change your prompt - but you do need to keep the cached prefix stable.
## The Rules That Make Caching Work
1. **Keep your system prompt and instructions first** - cacheable prefixes must come before any changing content. If user-specific context varies, put it after the static prefix.
2. **Do not reorder** - even a one-token change in the prefix invalidates the cache for the whole prefix.
3. **Mind the TTL** - Anthropic caches for 5 minutes (default) up to 1 hour; OpenAI's cache window is shorter. Bursty apps may not benefit; steady traffic does.
4. **Share static context across requests** - a support bot serving 10,000 requests with the same 2,000-token instructions is the perfect case.
## Realistic Savings
A chat app with a 3,000-token static system prompt, 10k requests/day: without caching, that prefix costs roughly $3-9/day in input tokens depending on model. With caching at a 90% discount, it drops to under a dollar. Across a month, that is $60-250 saved - for adding zero code and just keeping prompts stable.
## FAQ
**Is prompt caching automatic?** OpenAI caches automatically; Anthropic requires opting in with a cache_control parameter but the discount is larger.
**Does caching affect output quality?** No - the cache stores computation, not a canned answer.
**Which providers support it?** OpenAI, Anthropic, Google Gemini, and others, each with slightly different pricing and TTLs.
**Can I cache my whole context window?** Only the prefix is cacheable; cache invalidation is all-or-nothing for the prefix.
Related Articles
2026-07-31
Three Cobblers Beat Zhuge Liang: Hermes MoA Perfectly Embodies This Old Saying
2026-07-29
Win11 KB5095093: Point-in-Time Restore, Pause Updates by Date, Screen Tint, and More
2026-07-24
Win11 26H2 Preview Officially Launches: Build 26300 Now Rolling Out
