Skip to content
AI Learning Ground Start learning

Research ·

Hugging Face and OpenRouter join forces to make open-weight models easy to run

Hugging Face has switched its Inference Providers language model routing to OpenRouter, so every open-weight model on the Hub can be called with a Hugging Face token through one API, with requests routed to the best provider.

Hugging Face and OpenRouter join forces to make open-weight models easy to run
Image: Hugging Face

Hugging Face and OpenRouter are partnering to make open-weight models easy to run. Language model requests made through Hugging Face Inference Providers now go through OpenRouter's router instead of Hugging Face's own, which picks the best provider per request based on live price, speed and reliability, and retries on another provider if one fails. Your code and pricing stay the same; Hugging Face adds no markup.

The router supports OpenAI's Chat Completions and Responses APIs and Anthropic's Messages API, with setup guides for tools like Claude Code and Codex. Routing is cache-aware, keeping a conversation on the provider holding its prompt cache, and you can exclude providers in settings. One breaking change: custom provider API keys no longer work for language models, since requests are billed to your Hugging Face account. Image, video and audio generation still bypass OpenRouter. The new routing reportedly cut capacity errors by 46% and improved time to first token and throughput by roughly 16-17%.

For builders, this means one token gives access to open-weight models served across 80+ providers with automatic failover, plus monthly credits on paid plans. Open-weight usage is growing fast—71.7% of OpenRouter's tokens by late September 2026—and costs about four times less than closed models on average, though the best open-weight models still trail proprietary ones on hard benchmarks.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#open-weights #tooling #research