Hugging Face switches language-model routing to OpenRouter
Brief by TrendCue AI · Dates refer to the original sources.
Hugging Face is replacing its Inference Providers router with OpenRouter’s for language-model requests. The integration keeps existing code intact but ends support for custom provider API keys for those models.
Routing and controls
Hugging Face says provider-served open-weight models on the Hub can be called with a Hugging Face token through the same API. OpenRouter selects providers using live price, speed and reliability measurements and retries elsewhere after a failure. Users can still select a provider or routing policy, or disable providers in settings.
Measured trade-offs
OpenRouter says its routing experiment alternated the old and new algorithms over a week across a representative sample of open-source models. It reported 16.9% lower median time to first token, 16.3% higher median throughput and 46% fewer requests hitting a capacity limit, alongside a 6.0% increase in cost per request. These are OpenRouter’s experimental results, not a guarantee for individual Hugging Face workloads.
Billing and other media
Language-model requests are billed to the Hugging Face account or organization, and custom provider keys can no longer be used for them. Hugging Face says provider pricing remains unchanged without an added markup. Image, video and audio generation continue through Hugging Face directly; custom keys for image and video providers still work.
Original sources
Original websites and X posts open in a new tab.