So you want to use OpenRouter?

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

OpenRouter's automatic provider routing can silently change model behaviour between requests, so engineers need to pin providers explicitly to get consistent results.

Read this as

OpenRouter is a service that lets developers call one API endpoint and routes each request to whichever company's servers can run the AI model cheapest. Mohamed Moustafa's post explains a hidden catch: different providers run different software and settings, so the 'same' model can behave differently depending on who serves it. Some providers lack vision support, and options like reasoning effort are handled inconsistently. Developers can fix this by specifying which provider to use.

Teams relying on OpenRouter for cost-optimised AI routing face a consistency risk: identical API calls can hit different backend providers running different serving software, producing different model behaviour, missing vision capability, or misprocessed reasoning settings. The mitigation is technical, not product-level: pin providers via OpenRouter's provider.only option and query the /endpoints API. Firms prioritising reproducibility over lowest cost may need to bypass auto-routing entirely.

Moustafa documents that OpenRouter's auto-routing, billed as picking the most cost-effective provider per request, distributes traffic across backends running heterogeneous serving software with different optimizations and settings. Consequences include requests to vision-capable models routed to providers lacking vision support, and inconsistent handling of the reasoning effort parameter. Workaround: restrict routing with the provider.only option and enumerate backends via the /endpoints endpoint for a given model ID.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

OpenRouter Mohamed Moustafa Simon Willison Hacker News

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading