Prompt Caching: The Single Largest Lever

Of every AI cost lever, one dominates the rest, and all the major vendors agree on it: prompt caching. On long prompts and agentic workloads the reported savings are the largest anywhere — because caching attacks the specific way agent costs explode. If you optimize one thing, optimize this.

Ranked by the size of the effect the vendors have measured, prompt caching is the single largest inference cost lever. This post covers what it is, the figures the major providers report (directional, on their own benchmarks — verify on your workload), why it dominates agentic applications specifically, and the practices that make it work. It’s the first and most important lever in the playbook.

What prompt caching is and what vendors report

When you send a prompt, the model processes (“reads”) all of its input tokens. Prompt caching stores the processed state of a prompt prefix so that a later request reusing that exact prefix skips re-processing it — you pay a small fraction for the cached portion instead of the full input cost again. The reported effects are the largest on the page, and they’re consistent across providers:

The consistent shape across all three: a small write premium, then reads at roughly a tenth. That asymmetry is the whole game — caching is worth it whenever a prefix is reused enough times that the cheap reads outweigh the one write.

Why it dominates agentic workloads

The reason caching is the lever — not just a lever — is clearest in Anthropic’s explanation of agentic cost, and it’s worth understanding precisely because it reframes how you think about agent bills.

In an agent loop, every turn resends the entire growing conversation — the system prompt, the tool definitions, and all prior turns — because the model needs the full context to produce the next step. So the first turn’s content gets sent again on turn two, and again on turn three, and so on:

A 40-turn agent task:
  turn 1's content is sent on turn 1, 2, 3, ... 40  → sent 40 times
  turn 2's content is sent on turn 2, 3, ... 40     → sent 39 times
  ...
  → total input grows with roughly the SQUARE of the turn count

This is the key insight: agent cost grows with roughly the square of the turn count, because early context is resent on every subsequent turn. A 40-turn task sends its first turn’s content 40 times. That quadratic resending is why long agent runs get so expensive — and it’s exactly what caching attacks. Caching doesn’t stop the resending (the model still needs the context each turn); it makes each resend cost a tenth. So the quadratic cost explosion is cut by ~10× on the resent portion, which is most of it. That’s why the measured agent-loop savings (2.5–3.7×, 83% on a triage agent) are so large: caching neutralizes the dominant cost driver of agentic workloads. If your workload is agentic, caching isn’t optional — it’s the difference between viable and ruinous.

The practices that make it work

Caching only helps if you hit the cache, and hitting it requires deliberate practices. All the providers require an exact prefix match, which drives the rules:

The recurring discipline: caching is a prefix optimization, so design prompts and agent loops to keep a large, stable prefix, avoid mid-run changes that invalidate it, and measure your actual cache hit rate (the 81–90% figure is achievable, but only if you structure for it). A caching setup you don’t measure may be quietly missing.

Stacking and the caveats

Two practical notes that matter for architecture:

The lever in one line

Prompt caching is the single largest AI cost lever because it directly attacks the quadratic cost explosion of agentic workloads — turning the expensive resending of growing context into cheap cache reads — with vendor-reported savings up to ~90% on long prompts and multi-fold on agent loops. Realize it by keeping a large stable prefix (static content first), using longer TTLs when loops wait, avoiding mid-run changes that invalidate the cache, and measuring your hit rate. If you do one thing from this playbook, cache your prompts. The next post covers the second-largest free lever — batching — and the token hygiene that compounds with caching.

Key takeaways

Further reading

Sources & References

Prompt caching mechanics and figures