Claude Opus 5.5 billed $27.74 for a modeled 60-turn coding session.
And a warm prompt cache cut it to $5.68: LLM cost optimization, in production, is mostly cache management.
The biggest lever on your bill is not which model you call, it’s whether that model has already read your context.
One analysis of prompt caching reports the cut at about 80%, more than switching to a model at half the price would save.
The short version, numbers first: cache reads bill at 5% to 10% of normal input pricing on major providers. And OpenRouter states a cache read costs 0.1x to 0.5x of a fresh input token, depending on the provider. Routing simple requests to cheaper models typically cuts cost 40% to 60%. And a cloud-provider analysis claims combining routing with cache awareness delivers 70% to 80% on workloads with mixed task complexity and real context reuse. The catch is that providers cache prompt prefixes per model. So every model switch forfeits the cached conversation and bills it again as uncached input. The order you apply these levers decides whether they stack or cancel each other out.
What a Cache Hit Actually Costs
The pricing is asymmetric, mostly in your favor.
The cheap side is the read: the reused portion of your prompt bills at 5% to 10% of normal input price on the major providers.
And OpenRouter puts a cache read at 0.1x to 0.5x of a fresh input token depending on the provider. There’s a latency bonus as well, since the response starts sooner when there’s less to read.
The exception is the write. OpenRouter’s documentation states that GPT-5.6 and later charge cache writes at 1.25x the price of the original input, even with automatic caching and no opt-in required. In plain terms, you pay a 25% premium the first time the provider stores your prefix, then a fraction of full price every time it gets re-read.
The modeled session shows the trade at scale.
With caching, the 60-turn session cost $5.68. And $3.40 of that, 60%, went to cache writes; without caching, the same session cost $27.74. The writes were the majority of the cached bill and the session still came out about 80% cheaper. That’s the shape of the deal: caching is a bet on the second call.
So check your traffic before you enable anything.
The 60% to 90% input-cost reductions are stated for workloads with stable prefixes, meaning system instructions and retrieval context that get sent unchanged.
If every request is novel, you paid a write premium for content nothing will ever re-read. And the feature costs you money instead of saving it.
Routing Cuts the Other Half of the Bill
Model routing has a clean definition in the 2026 literature: it reduces cost by “assigning simpler requests to cheaper models without sacrificing the quality of the response” (arXiv). The cloud-provider analysis states routing typically reduces cost 40% to 60%.
Because the decision weighs task type, quality requirements, and cost on every request.
Here’s how the levers stack up:
| Lever | What it attacks | Typical reduction |
|—|—|—|
| Prompt caching | Input costs on stable prefixes | 60% to 90% |
| Model routing | Per-request cost | 40% to 60% |
| Cache-aware routing | Both, plus miss-to-hit conversion | 70% to 80% |
A separate line of work, LLMBridge, stacks model selection, context management. And semantic caching, and reports savings of over 30% from its tested strategies. Its caching claim is the blunt one: effective caching can bypass LLM calls altogether. And a call that never reaches the model is the only token cheaper than a discounted token.
A routing proxy can also weigh network latency, GPU availability. And model quality, the same way a CDN weighs latency and load.
My read: routing is the lever everyone reaches for first given that it feels like a config change. But LLM cost optimization is an ordering problem, and routing applied out of order costs money. The hidden cost is the next section.
Every Model Switch Bills Your Context Again
This is the part most cost guides skip, and it inverts the usual advice. Providers cache prompt prefixes per model. So a switch forfeits the cached conversation and bills it again as uncached input, a cost that grows with session length. A developer article on routing for coding agents says it flat: “A new model starts without the conversation’s prompt cache. So a switch can cost more than it saves” (OpenChamber).
The closed-form cache analysis in the routing paper makes the asymmetry precise.
Downward switches, expensive model to cheap model, recover their cache cost within two LLM calls. Upward switches do not break even under the evaluated conditions. Escalation is the expensive direction: start on a cheap model, climb to an expensive one mid-session. And you re-bill the whole conversation as fresh input every time you climb.
OpenRouter’s answer is sticky routing. Subsequent requests for the same model are routed to the same provider, keeping your cache warm. And the behavior only activates when the provider’s cache-read pricing is cheaper than regular prompt pricing. So you never get pinned to a worse deal. The combined effect is what the cloud-provider analysis calls the third lever: when the routing decision accounts for cache state, requests get directed to the endpoint where their context is already cached, converting a miss into a hit.
That’s where the 70% to 80% figure lives. And it’s the only routing setup I’d trust with a long session.
Where the Cache Misses Anyway
Caching has failure modes, and they show up as bills that don’t match the blog posts. One is concurrency: requests are routed by a hash of the prompt’s opening tokens. And OpenAI notes traffic above about 15 requests per minute on the same prefix can overflow to other machines and miss. If you run parallel agents hammering a shared prefix, your hit rate degrades exactly when you scale, which is the worst possible timing.
The other failure mode is prefix churn.
The headline reductions assume stable prefixes. So the engineering happens in the prompt itself: static instructions and reference material at the top, the changing parts at the end, as caching only pays on the portion of the prompt that stays identical. When the variable content sits early, everything after it gets billed as fresh input on every call.
This is prompt design, not dashboard configuration, and it’s where the savings are won or lost.
The Order of Operations
Here’s the sequence I’d run at a small operation paying per token. Audit which requests share an opening. Stabilize those prefixes, static content first, variable content last. Enable caching and accept the write premium as the price of the discount. Then add routing that only moves downward and stays sticky. So a cheap model inherits a warm cache instead of a fresh bill. Watch concurrency on shared prefixes, since the cache paying your bills disappears exactly when traffic spikes.
The contrarian summary: model shopping is the fun version of LLM cost optimization. And cache management is the profitable one. A warm cache on an expensive model beat a cold cache on a model at half the price in the modeled session, roughly 80% saved versus roughly 50%. Switching has a price, switching down recovers it within two calls. And switching up does not break even under the conditions the paper tested. For a solo operator, the gap between $27.74 and $5.68 per session is the gap between a tool you keep running and one you quietly switch off.
Pull your last invoice and sort requests by their opening tokens. If most of your input spend is re-reads of the same context, you don’t have a model problem, you have a cache problem. And it’s the cheaper one to fix.
