Hugging Face moves inference routing to OpenRouter
Hugging Face has replaced its own Inference Providers router with OpenRouter's for language models, so each request now goes to the provider with the best live price, speed and reliability, with automatic failover.
Hugging Face announced that requests to language models through its Inference Providers service now run on OpenRouter's router instead of its own. Users keep their Hugging Face token and their existing code. Any open-weight model on the Hub that a provider serves can be called through the same API.
The change matters most when a provider fails. Before, Inference Providers sent each request to one provider and returned that provider's error if it failed. Now a failed call is retried on the next-best provider within the same request. According to OpenRouter's measurements, its rebuilt routing cut capacity errors by 46% and improved time to first token by 16.9% and throughput by 16.3%. Routing is also cache-aware: a conversation stays with the provider holding its prompt cache, and developers can pin this with an X-HF-Session-Id header.
Developers can still steer routing by adding a suffix to the model ID, such as :fastest, :cheapest or a named provider. The router supports OpenAI's Chat Completions and Responses APIs and Anthropic's Messages API for every chat model.
Hugging Face says pricing stays the same: users pay the provider's rate with no markup. One trade-off is that users can no longer bring their own provider API keys for language models. Image, video and audio generation still bypass OpenRouter.
OpenRouter says it serves more than 800 trillion tokens a month to over 10 million users. On its platform, open-weight models went from 26.8% of tokens served in October 2025 to 71.7% at the end of September 2026. On average, they cost about a quarter as much as closed models.
The companies call this a first step. Next, they plan to let users link their OpenRouter accounts and to route more tasks through OpenRouter.