What shipped

On November 16, 2026, Hugging Face switched Inference Providers from its own custom router to OpenRouter's. Requests to language models now go through OpenRouter, which picks the best provider for each call based on live measurements of price, speed, and reliability, and retries on another provider inside the same call when the first one fails. Your code stays the same. Every open-weight model on the Hub that a provider serves can be called with your Hugging Face token through the same API.

The router speaks OpenAI Chat Completions and Responses and Anthropic's Messages API for every chat model, whatever provider sits behind it. Hugging Face ships setup guides for Claude Code, Codex, OpenCode, Pi, and Hermes Agent.

Control is still yours, three ways. A suffix on the model id picks a policy or pins a provider: zai-org/GLM-5.3 takes the best mix of price, speed, and reliability; :fastest takes highest throughput; :cheapest lowest price; :novita restricts the call to Novita. Settings let you turn any provider off per account, and organizations carry the same toggles onto every request billed to them. Model pages gained two tabs: Providers lists each provider OpenRouter can route to with input and output price, speed, and uptime over the last 24 hours, and Metrics shows the best values among them.

Two operational details are worth knowing. Routing is cache-aware: a conversation stays on the provider that holds its prompt cache, and you can enforce that by sending a stable UUID per conversation in the X-HF-Session-Id header. Pricing does not change — you pay the provider's price on your Hugging Face bill with no markup, PRO plans carry $2 a month in credits, and Team and Enterprise organizations get $2 per seat.

The breaking change is billing and keys. Requests bill to your Hugging Face account or organization, and your own API key for a provider no longer works for language models. Image, video, and audio generation keep working as before, directly through Hugging Face without touching OpenRouter, and custom keys for those modalities keep working.

Why it matters

OpenRouter's scale is the point of the deal: more than 800 trillion tokens a month to over 10 million users, across 600+ models from 80+ providers. OpenRouter rebuilt its routing in October to stop defaulting to the lowest list price and instead score providers live. Its own measurements — vendor-reported, not independently confirmed — claim capacity errors fell 46%, time to first token improved 16.9%, and throughput rose 16.3%. Before this switch, Hugging Face picked one provider per request and returned its error when it failed; now the retry is invisible.

The market context in the post explains why this surface matters. Open-weight models went from 26.8% of OpenRouter tokens in October 2025 to 71.7% at the end of September 2026, after peaking at 77.5% in July. Weekly open-weight volume grew more than 60-fold over that period, against about tenfold for closed models; the most-used model on OpenRouter this week is an open-weight one, DeepSeek V4.1 Flash 1017, at 59.2 trillion tokens. Open-weight calls average about four times cheaper — $0.28 per million input tokens and $1.62 per million output, against $1.27 and $6.36. 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 about a seventh of the cost per task ($3.68 versus $26.54). Those are the trade-offs the router now negotiates per request.

The consolidation angle deserves attention. Access to open-weight models now flows through two choke points — the Hub and OpenRouter's router — and Hugging Face's stated roadmap ("connect your OpenRouter account" and "more tasks routed") widens that dependency. If your requirements include knowing who processes a prompt, note that by default the router sends it to whichever provider currently scores best, unless you pin with model:provider or toggle providers off in settings.

How to evaluate or adopt

Take thirty minutes with an existing workload. Call an open-weight model through the OpenAI SDK with your Hugging Face token; run the same prompts against model, model:fastest, and model:cheapest, and compare latency and cost against your current direct-provider setup. Open the model page's Providers tab and check 24-hour uptime and prices before pinning anything. If you run multi-turn agent loops, send the X-HF-Session-Id header so prompt caches stay hit. For organizations, audit the provider toggles and the billing change before rollout: spend now lands on Hugging Face bills, so any cost accounting that depended on holding provider API keys has to move. Watch the failure mode of silent provider switching — latency varies run to run unless you pin a provider — and expect HF to route more task types through OpenRouter next.

References