लोड हो रहा है…
लोड हो रहा है…
लोड हो रहा है…
Automation · the shelf
23 records in Automation. Pick one to read it.
2223
Hugging Face now routes open-weight LLM calls through OpenRouter
Automation
You are reading this one
What changed A1
No audio. The needle follows your reading.
AutomationNo. 22 of 23
Hugging Face Inference Providers now uses OpenRouter's router for language models, with no markup and one breaking change for custom provider keys.
लोड हो रहा है…
On 16 November Hugging Face announced that Inference Providers for language models is now routed by OpenRouter. Hugging Face is replacing its own router with OpenRouter's. The post says your code stays the same. Each request goes to a provider chosen per call from live price, speed and reliability, and it retries on another provider if the first one fails.
The router accepts OpenAI Chat Completions and Responses requests, and Anthropic Messages requests, for every chat model. The post lists setup guides for Claude Code, Codex, OpenCode, Pi and Hermes Agent. The same token also covers Storage Buckets, Jobs and Inference Endpoints.
You can steer routing with the model name. A plain ID such as zai-org/GLM-5.3 uses the default mix of price, speed and reliability. Adding :fastest picks the highest throughput and :cheapest picks the lowest price. Adding a provider name, for example :novita, restricts the call to that provider. Routing is also aware of prompt caches. If you send a stable UUID per conversation in the X-HF-Session-Id header, the conversation stays on the provider that holds its cache.
On cost, the post says pricing is unchanged. You pay the provider's price on your Hugging Face bill and Hugging Face adds no markup. PRO users get 2 dollars in credits each month, and Team and Enterprise organizations get 2 dollars per seat. Image, video and audio generation do not move. They keep running directly through Inference Providers with the same token, and custom keys for image and video providers still work.
The change that can bite is for language models. Custom provider API keys no longer work for requests routed this way. Those requests are billed to your Hugging Face account or organization. If you were bringing your own key to a provider through Hugging Face, plan to change that before your next deploy. You can still pick a provider with the model:provider suffix, and you can disable providers in your settings so the router never sends your requests there. Organization settings apply to every request billed to the organization.
Model pages gain a chat widget and two tabs. The Providers tab lists routable providers with input and output prices, speed and 24-hour uptime. The Metrics tab shows best price, throughput, time to first token, context length and uptime. A usage overview breaks spend down by the provider each request used.
The post also makes a market argument, with numbers from OpenRouter and Artificial Analysis. Open-weight models went from 26.8 percent of tokens on OpenRouter in October 2025 to 71.7 percent at the end of September 2026, after a peak of 77.5 percent in July. Open-weight models average 0.28 dollars per million input tokens and 1.62 dollars per million output tokens, against 1.27 and 6.36 for closed models. On the Artificial Analysis Intelligence Index, the best open-weight model, Kimi K3.1 Pro, scores 46 against 65 for Claude Fable 5.2, at 3.68 dollars per task against 26.54. The post admits that open-weight models still trail the best proprietary ones on the hardest benchmarks.
The routing gains are also OpenRouter's own figures. They report 46 percent fewer capacity errors, 16.9 percent better time to first token and 16.3 percent better throughput. I could not check any of these numbers independently, and the post does not describe how they were measured. Treat them as the vendors' claims until you see the same effect in your own logs.
Teams that call open-weight models through Hugging Face and want automatic failover without writing it themselves will get the most from this. Teams that used their own provider keys through Hugging Face now face the breaking change. People running coding agents against open models should also look, since the setup guides target those tools. A sensible test is to run the same workload for a day with the default route and a day with :cheapest, and compare cost and latency in the new usage overview.
The post calls this a first step. Planned next are connecting OpenRouter accounts to Hugging Face and routing more tasks through OpenRouter. No dates are given.
Check whether you use your own provider key for chat models through Hugging Face, and test :cheapest, :fastest and the session header on a real workload before trusting the headline numbers.
Views are my own.
I write when I’ve learned something. Every piece is dated, so you can see the rhythm for yourself.