CostCompass An Almanac Beta
Prompt caching

Prompt caching, when it saves money and when it costs more

Reusing a stable prefix across calls can take a large slice off your model bill. Get the details wrong and every call writes to the cache while none reads from it — so you pay the premium and see none of the savings.

By Joubert Berger Published July 9, 2026

An antique almanac engraving: a stone cistern filled once by a single wide inflow pipe, a row of small taps along its base drawing cheap draughts from the stored water while a thin overflow spills to one side.
Fill the cistern once, draw from it many times — caching pays when reads outnumber writes.

Prompt caching is one of the few cost levers that can move a model bill by a large fraction without changing a line of application logic. The idea is simple: the stable part of your request — a long system prompt, a document, a fixed set of instructions — gets stored on the provider's side, so repeated calls that share that prefix don't pay full price to process it again.

The catch is that caching is not free by default. A cache write usually costs more than an ordinary token; a cache read costs much less. You come out ahead only when reads outnumber writes, and that depends entirely on details you control: whether the cached prefix is byte-stable across calls, whether anything unique is prepended to the front, whether the window between calls stays inside the provider's expiry. Get those right and the same workload gets markedly cheaper. Get one wrong and every call writes, nothing reads, and you have quietly signed up for the premium with none of the discount.

That makes caching a place where measurement matters more than usual. The savings are real but invisible unless you read the provider's own cache-hit and cache-write figures and price them — a summary that says "caching enabled" tells you nothing about whether it's working.

The guides below explain when caching pays off and when it doesn't, how to enable it correctly, how to read the usage that proves it's working, and how to diagnose it when the reads never show up.

About the author

Joubert Berger builds CostCompass, a spend-intelligence dashboard that pulls usage from AI and compute providers into one month-to-date total, a forecast, and a per-provider breakdown. This guide reflects how CostCompass reads each provider's own usage API — see the security model for how your keys are handled.

See whether caching is actually paying off

CostCompass reads each provider's own reported cache usage and prices it, so you can tell a healthy cache from one that's writing on every call — without trusting a dashboard's summary.