Hugging Face and OpenRouter join forces to make open-weight models easy to run
Anyone calling open-weight models through Hugging Face now gets automatic multi-provider routing, failover and retries, with no code changes and no markup on prices.
Hugging Face, a website that hosts freely downloadable AI models, and OpenRouter, a service that routes requests to many companies that run them, now work together. When you ask Hugging Face to run a chat model, OpenRouter automatically picks the cheapest, fastest or most reliable company to handle it, and tries another if that one fails. Nothing changes in your code or pricing. The main losers are smaller hosting providers who must now compete on measured speed and reliability.
Hugging Face has switched its inference routing for language models to OpenRouter, which picks providers per request based on live measurements of price, speed and reliability, retrying failures automatically. Open-weight models now carry 71.7% of tokens on OpenRouter and cost roughly a quarter of closed-model prices ($0.28 vs $1.27 per million input tokens). Top open models still trail proprietary ones on hard benchmarks, Kimi K3.1 Pro scores 46 versus 65 for Claude Fable 5.2. Cost-conscious buyers gain; proprietary vendors face more price pressure.
Inference Providers now routes language-model requests through OpenRouter's rebuilt router instead of Hugging Face's own. Routing scores providers on live price, speed and reliability; a failed request retries on the next-best provider within the same call, cutting capacity errors 46% and improving time-to-first-token by 16.9%. Routing is cache-aware, keep conversations sticky via the X-HF-Session-Id header. Supports OpenAI Chat Completions, Responses and Anthropic Messages APIs; provider selection via model:provider suffix or settings opt-outs. Image, video and audio generation bypass OpenRouter entirely.