Hugging Face moves Inference Providers onto OpenRouter's router

Language-model calls made with a Hugging Face token now go through OpenRouter, which picks the provider with the best mix of price, speed and reliability and retries on another one if a call fails. Pricing stays at the provider's rate with no Hugging Face markup, but custom provider API keys no longer work for these models.

Open models2 min readBy
Hugging Face moves Inference Providers onto OpenRouter's router
Image: Hugging Face

Hugging Face and OpenRouter have announced a partnership to make open-weight models easier to run. As a first step, Hugging Face is replacing the custom router behind its Inference Providers with OpenRouter's. Every open-weight model on the Hub that a provider serves can now be called with a Hugging Face token through the same API, and the companies say existing code stays the same.

What changes for your requests

Requests to language models now go through OpenRouter, which routes traffic across more than 80 providers based on live measurements. Instead of only looking at the lowest list price, it sends each request to the provider with the best mix of price, speed and reliability. When a provider slows down or starts failing, traffic moves away from it, and a failed try is retried on the next best provider inside the same call. Previously, Inference Providers picked one provider and returned its error if it failed. In OpenRouter's measurements, the new routing cut capacity errors by 46% and improved time to first token by 16.9% and throughput by 16.3%.

You can still steer routing with a suffix on the model id: `:fastest` for the highest throughput, `:cheapest` for the lowest price, or a provider name to pin one provider. Routing is cache-aware, so a conversation stays on the provider that holds its prompt cache; sending a stable UUID per conversation in the `X-HF-Session-Id` header makes that explicit.

The router supports OpenAI's Chat Completions and Responses APIs and Anthropic's Messages API for every chat model, and Hugging Face publishes setup guides for coding agents including Claude Code, Codex and OpenCode.

Pricing, visibility and one breaking change

Pricing doesn't change: you pay the provider's price on your Hugging Face bill, with no markup. PRO users get $2 of credits a month, and Team and Enterprise organizations get $2 per seat. Model pages gain Providers and Metrics tabs showing each provider's price, speed and uptime over the last 24 hours, usage is broken down by provider, and users and organizations can turn off any provider they don't want.

The breaking change: because language-model requests are now billed to your Hugging Face account, you can no longer use your own API key for a provider with these models. Image, video and audio generation keep working as before, outside OpenRouter, and custom keys for image and video providers still work.

Why it matters for builders

If you already call open models through Hugging Face, you get automatic failover and smarter provider selection without touching your code, but you should check whether you relied on bring-your-own provider keys. The numbers in the announcement explain the push: on OpenRouter, open-weight models went from 26.8% of tokens served in October 2025 to 71.7% at the end of September 2026, and cost about four times less on average than closed models. Next on the roadmap, the companies say, are connecting OpenRouter accounts to Hugging Face and routing more tasks through OpenRouter.

Source: Hugging Face. This article is PickAI’s own summary and analysis based on the original reporting, prepared with AI assistance under our editorial policy.

Enjoyed this story? Get PickAI Weekly

Get the week’s best new AI tools and news — one email a week, free. No spam, unsubscribe anytime.

Related tools on PickAI

↗

Hugging Face

huggingface.co

Hub for open models, datasets and ML demos.

↗

OpenRouter

openrouter.ai

One API for hundreds of LLMs from many providers.

↗

Claude Code

anthropic.com

Anthropic's agentic coding tool that works in your terminal and IDE.

Related AI news

All news →
Mistral

Mistral releases open weights for Large 4, 'Le Chonk'

Mistral published the weights of Mistral Large 4, a 1-trillion-parameter multimodal model it calls the best open-weight model for coding. It leads open models on Terminal-Bench 4.0 and FrontierCode 2.0, and the API costs $0.70/$2.10 per million tokens.

Nanbeige LLM Lab

Nanbeige4.3-33B: Apache-2.0 open model built for agent work

Nanbeige LLM Lab released Nanbeige4.3-33B with open weights under Apache 2.0. It supports a 512K-token context and, in the lab's own tests, leads most agentic coding and office benchmarks against Qwen3.8-27B, Muse-Glimmer-30B and Gemma4-31B.

Moonshot AI

Moonshot launches Kimi K3.1 Pro, a 3T-class open-weight model

Kimi K3.1 Pro brings a 1M-token context, vision and big gains in coding, 3D creation and finance, plus a 2-3x faster Highspeed variant. It is live in Kimi apps and the Kimi API, with full weights due by November 4.

Get the weekly AI tools drop

New tools and releases for builders, once a week. No spam, unsubscribe anytime.