Your agent’s 50,000-token context costs $0.044 per million tokens when it hits DeepSeek’s cache. Miss it, and the same tokens bill at $1.32 — 30 times more. [1] The gap is not set by model choice. It is set by where one dynamic field sits in your prompt.

At a glance

Prompt caching lets a provider reuse work it already did on the unchanged start of your prompt. This piece walks FinOps teams through the three provider price contracts behind the discount, and the one layout rule that decides whether you ever collect it.

The big picture: caching became a line on the invoice

Prompt caching started as an opt-in feature and turned into a billing contract. Anthropic shipped explicit cache markers first, in mid-2024. OpenAI followed by making caching automatic, with no code change on your side. Today every major provider bills cache hits and cache misses as separate prices on the same invoice. [2]

The mechanism is the same everywhere. The model saves its internal state for the unchanged start of your prompt — the prefix — and reuses that saved state on the next call instead of recomputing it. A cache hit means the start of your prompt matched what was saved. A miss means it did not, and you pay full freight.

That is why the victim is never the model; it is the template. Any team whose prompt mixes static instructions with mutable content is exposed. A timestamp, a search result, or a per-request ID placed before the long static block splits the prefix, so the match fails and the discount vanishes on every call. I have seen this described as a caching bug, but it is not: the cache is behaving exactly as priced, and the prompt is paying for it.

The only prompts the cache rewards are the ones whose start never changes. Which raises the real question for a FinOps lead — not whether to cache, but which provider’s contract your traffic can satisfy.

By the numbers

  • 50x: the spread between DeepSeek’s peak cache-hit and cache-miss input rates for deepseek-flash, $0.006 versus $0.30 per million tokens. [1]
  • 10% of base input: what Anthropic charges for a cache read, against 2x base to write a one-hour cache entry. [2]
  • 5 to 10 minutes: how long an idle OpenAI cache entry survives before the provider clears it. [3]

What I’d watch: the contract you can actually satisfy

Three contracts, all from the providers’ own price pages as of 2026-12-03, and each demands a different kind of stability from your traffic.

Provider Cache read price Cache write cost Entry lifetime What it demands of you
Anthropic 10% of base input price [2] 25% above base for a five-minute entry; 2x base for one hour [2] 5 minutes or 1 hour, your choice Mark the cache point yourself; pay a premium each write
OpenAI Up to 95% off cached input [3] None — caching is automatic 5 to 10 minutes idle, longer on some models Keep calls close together; the cache clears fastest
DeepSeek $0.006 per million on a hit, peak, deepseek-flash [1] Billed as a miss at $0.30 per million [1] Provider-managed Never let the prefix drift; the miss price is the costliest mistake in the stack

Read down the last column before the price column. The biggest headline discount sits with the cheapest baseline, but a contract you cannot satisfy collects nothing. My reading, held loosely: pick the provider whose entry lifetime matches your call spacing, then optimize layout inside that contract.

The layout rule that carries almost all the value is one sentence: static first, dynamic last. System instructions, tool definitions, reference documents, worked examples — anything that never changes — goes at the start. Retrieved chunks, timestamps, user text, the growing chat tail — anything that does change — goes after the last static block. Think of the static prefix as shelf space you pay for once and reuse all day, and the dynamic tail as the item you pick up fresh each visit.

Two traps break this in practice. The first is an auto-filled field — a timestamp or request ID — buried inside the static section, which silently splits the prefix on every call; audit the template that is actually sent, not the code that builds it. The second is editing anything above your cache point, which wipes everything below it, so rotate instructions at the start of a cache window and pay one write premium per change instead of one per day.

Then verify the discount is landing. Each provider returns usage fields showing how many input tokens came from cache. Put a rule in the FinOps sheet: if fewer than 70% of input tokens are cached on a workload with stable context, the layout is broken. Fix the template before touching model choice or batch scheduling. No other lever pays 30x. And if your long context is already tripping a rate cliff, the layout fix is the same move: your 200K prompt’s hidden rate cliff explained it from the price side.

The catch

The discount is real, but it is a stability contract wearing a price tag. Every provider prices the cache on the assumption that your prompt’s start does not change, and every one of them bills you the moment it does — Anthropic through a write premium, OpenAI through a fast clear, DeepSeek through a miss at $0.30 per million tokens. [1]

That cuts both ways for an enterprise stack. The agent that earns the discount is the agent whose prompt is boring: the same instructions, the same tools, the same order, every call. Teams that reorganize their system prompt weekly, or let a framework inject request IDs near the top, have not found a pricing problem. They have built a cache that can never hit.

So the thing to watch is not the price pages — those move on quarters-long cycles. What I am watching is the template: the exact bytes sent on the first call versus the tenth. If those two prompts still share their start, the 30x gap stays a number on someone else’s invoice. If they do not, no model choice will close it.

Related reading

Sources