Token Efficiency Encyclopedia

Cache-aware Routing

Route between models at natural cache boundaries rather than mid-conversation, preserving prompt cache efficiency while still allowing model switching when beneficial.

Why It Matters

Switching models mid-conversation breaks the prompt cache because the new model sees a different token prefix. The cache miss can cost more than the routing change saves. Cache-aware routing avoids this by switching only when the cache would be lost anyway.

Natural Cache Boundaries

Between these points, the selected model stays in place so the cache can keep building.

Trade-offs

See Also

Tools