Dev News Daily ENDE

Hugging Face moves Inference Providers onto OpenRouter's router

Hugging Face announced on 16 November that its Inference Providers service is switching from its own router to OpenRouter's. Requests to language models now pass through OpenRouter, which chooses a provider for each call based on live price, speed and reliability and retries on another provider if the first one fails. Hugging Face says existing code does not need to change, and that every open-weight model on the Hub that a provider serves can be called with a Hugging Face token.

The router supports OpenAI's Chat Completions and Responses APIs and Anthropic's Messages API for every chat model. A suffix on the model id still selects a policy or a provider - :fastest, :cheapest or a named provider such as :novita. Routing is cache-aware: a conversation stays with the provider that holds its prompt cache, and a stable UUID in the X-HF-Session-Id header makes that explicit. Previously, Inference Providers picked one provider and returned its error if it failed.

The post cites OpenRouter's measurements: the rebuilt routing cut capacity errors by 46% and improved time to first token by 16.9%. On OpenRouter, open-weight models went from 26.8% of tokens served in October 2025 to 71.7% at the end of September 2026, and cost on average $0.28 per million input tokens against $1.27 for closed models. Pricing on the Hugging Face side does not change: users pay the provider's price with no markup.

Hugging Face moves Inference Providers onto OpenRouter's router
Hugging Face moves Inference Providers onto OpenRouter's router — Dev News Daily

Why it matters

The visible change is the failure path: a request that used to fail with one provider's error is now retried elsewhere inside the same call. The suffixes and the session header are how a user keeps control once the router decides by default.

Primary source
Hugging Face Blog
https://huggingface.co/blog/openrouter
Written by Victoria Shinder.