Skip to content
All findings

OpenRouter silent routing side effects: cheapest-sort lands on quantized endpoints, prompt-cache stickiness resets, limits differ per provider, and fallback models bill silently

Published 30 Nov 2026

Seen in our production agents: same model slug, different behaviour run to run. Routing picks a provider per request, so price sort can pick lower-precision endpoints, cache stickiness drops after any provider error, 60 min idle or when you set provider.order, context and max_tokens differ by endpoint, and models[] fallbacks switch and bill at the fallback's price. Checklist of the provider fields that pin each one.

What we saw (production)

With one model slug in code, our agents hit all of these at different times: 1. Cheapest routing gave noticeably worse output on some calls. 2. Prompt-cache hit rate collapsed for no visible reason, and the bill rose. 3. Same model, different limits: a long prompt or large max_tokens worked on one call and failed on the next. 4. Fallback models quietly answered instead of the requested model.

None of these show up as errors. They're all consequences of per-request routing, described across four docs pages.

How wide the spread is: one slug, 37 endpoints (snapshot 2026-11-30 19:16 UTC)

python3 endpoints_snapshot.py deepseek/deepseek-v4.1-flash (public GET /api/v1/models/<slug>/endpoints, no key needed; full table in output-endpoints-snapshot.txt):

log
endpoints=37quantization counts: {'fp8': 19, 'mxfp4': 2, 'fp4': 2, 'unknown': 14}context range: 262144 - 1048576max_out range: 32768 - 943718input price: $0.051 - $0.450 per M (8.8x)   supported_parameters per endpoint: 11 - 21
  • 3 of the 4 cheapest endpoints are 4-bit (wafer/us mxfp4, open-inference/fp4; baidu/fp8 is cheapest). Price sort walks straight into them.
  • featherless/fp8: 262k context and 32,768 max output, vs 1M and 943k on most others. The same request is fine on one endpoint and impossible on the next.
  • 14 endpoints report quantization `unknown` (incl. google-vertex, together, fireworks). A quantizations allow-list without "unknown" silently drops all of them.

1. Price sort → lower-precision endpoints

sort: "price" or the :floor suffix bypasses default routing and tries the cheapest endpoints first. :floor also makes "flex service tier" endpoints eligible. Endpoints differ in quantization (FP16/BF16 vs FP8/FP4/INT8). See also /p/openrouter-deepseek-v4-1-flash-fp4-reasoning. Pin: provider.quantizations: ["bf16", "fp16", "fp8"] (allow-list what you accept; add "unknown" only if you're OK not knowing). Don't use :floor for agent loops that call tools.

2. Prompt cache stickiness is fragile

From https://openrouter.ai/docs/guides/best-practices/prompt-caching, sticky routing (the same provider after a cached request):

  • "only activates when the provider's cache read pricing is cheaper than regular prompt pricing"
  • "expire[s] after 60 minutes of inactivity"
  • "If the sticky provider returns an error, the cache is not updated, allowing the next request to be re-routed". One provider error resets you to a cold cache somewhere else.
  • "is not used when you specify a manual provider order via provider.order". Your order wins, so with fallbacks on, a single failover still moves you off the warm cache.

Pin: for cache-heavy agents, use only: [one provider] + allow_fallbacks: false, and watch cached-token counts per call. Alert on drops instead of finding out from the invoice.

3. Limits differ per endpoint

Context length, max output and supported parameters vary by provider for the same model. Routing docs: if you set max_tokens, "OpenRouter will only route to providers that support a response of that length", and tools are routed "best effort" to providers that support them. Pin: provider.require_parameters: true so only endpoints supporting every parameter you send are eligible. Always send max_tokens explicitly, and check the model's endpoint list for each provider's context limits.

4. `models: [...]` fallbacks switch silently and bill at the fallback's price

From https://openrouter.ai/docs/guides/routing/model-fallbacks: "any error can trigger the use of a fallback model". Requests are "priced using the model that was ultimately used, which will be returned in the model attribute". A :free model followed by a paid one bills at the paid price. With several models, endpoints are grouped by model unless sort.partition: "none". Pin: compare response.model with what you requested on every call. Log and alert on mismatches. Only list fallbacks you'd accept for both quality and data policy.

Minimal "no surprises" request

json
{  "model": "deepseek/deepseek-v4.1-flash",  "max_tokens": 2000,  "provider": {    "only": ["deepinfra", "nebius"],    "allow_fallbacks": false,    "require_parameters": true,    "quantizations": ["bf16", "fp8"],    "data_collection": "deny"  }}

Trade-off: fewer eligible endpoints means more 503s and 429s. Handle them yourself instead of letting the router silently change what you get.