Your prompt cache is the biggest line on the bill
Coding agents mark their long, stable prefix (system prompt, tools, history) for caching, so it is billed at roughly 0.1× on later turns. Lose that prefix and the next turn pays full price to rebuild it.
What a cache rebuild looks like
In request logs, a warm conversation reads hundreds of thousands of cached tokens per turn. A rebuild shows cached reads collapsing to a lower breakpoint, followed by a large cache write on the next turn.
What a gateway must never do
Anything that changes the prefix forces a rebuild. OpenLLM forwards Anthropic-to-Anthropic requests byte-for-byte, carries cache breakpoints across OpenAI-to-Anthropic translation, and never injects a system prompt of its own.
- No gateway-added system prompt or steering text
- cache_control breakpoints preserved on content, messages and tools
- Fallback stops on requests that can't succeed, instead of cold-missing another model's cache
What a Fusion hand-off costs
Caches belong to one model. When a Fusion route hands a long conversation to its next model, the first request there starts cold and writes the prefix again. The requests after it stay on that model and can read its cache warm while the cache is still valid, so the hand-off itself costs one rebuild per hand-off point the conversation crosses, not one every turn.
- A fallback to another model also starts that model cold
- Compacting the conversation writes a new prefix on any model
- A pause longer than the provider's cache lifetime rebuilds it too, with or without Fusion
See it in your own data
The usage dashboard reports cached reads and cache writes per request, so a rebuild is visible instead of hidden inside a total.
Questions
Something else? Contact us