Hugging Face announced a partnership with OpenRouter: Inference Providers now routes language model requests through OpenRouter instead of its own router, picking a provider per request by live price, speed and reliability and retrying on the next provider if one fails, with no change to your code or HF token. Pricing is unchanged with no Hugging Face markup. Model pages gain Providers and Metrics tabs. Breaking change: you can no longer use your own provider API keys for language models.

Key Takeaways

  • ✓Language model requests now go through OpenRouter routing across 80+ providers, chosen by live price, speed and reliability, with automatic retry on the next provider inside the same call; image, video and audio generation stay on the existing path
  • ✓The router supports OpenAI Chat Completions, the Responses API and Anthropic Messages API, with setup guides for Claude Code, Codex, OpenCode, Pi and Hermes Agent
  • ✓Model id suffixes pick a policy: :fastest, :cheapest, or a specific provider such as :novita; an X-HF-Session-Id header keeps a conversation on the provider holding its prompt cache
  • ✓Pricing is unchanged with no Hugging Face markup; PRO users get $2 of monthly credits and Team/Enterprise organizations get $2 per seat
  • ✓Breaking change: bring-your-own provider API keys no longer work for language models (custom keys for image and video providers still do); linking an OpenRouter account to Hugging Face is the next step
Hugging Face Partners With OpenRouter: Inference Providers Now Route Language Model Requests Through OpenRouter With the Same HF Token and Automatic Provider Failover
🖼️Official Media
Click to view high-res
🧭

Turn your technical choice into a development budget

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

🔬

In-Depth Technical Analysis

Background

Nearly every open-weight model debuts on the Hugging Face Hub, but actually calling one means choosing among dozens of inference providers on price, speed and uptime, and a provider outage used to surface as an error. Hugging Face announced on X and its blog that it is partnering with OpenRouter and switching Inference Providers to OpenRouter's router.

How it works

Language model requests no longer go through Hugging Face's own router. OpenRouter picks a provider for each request based on live price, speed and reliability, retries a failed attempt on the next provider inside the same call, and keeps a conversation on the provider holding its prompt cache (made explicit with an X-HF-Session-Id header). Model id suffixes select :fastest, :cheapest or a specific provider such as :novita. Image, video and audio generation keep working through Inference Providers directly.

Numbers that matter

The blog cites OpenRouter's own measurements: the rebuilt routing cut capacity errors by 46% and improved time to first token by 16.9% and throughput by 16.3%. These are OpenRouter-reported figures, not third-party benchmarks. Model pages now show Providers and Metrics tabs with per-provider price, speed and 24-hour uptime.

What it means for developers

Your code and HF token stay the same, and the router speaks OpenAI Chat Completions, the Responses API and Anthropic Messages API, with guides for Claude Code, Codex, OpenCode, Pi and Hermes Agent. Pricing is unchanged with no Hugging Face markup. The breaking change: bring-your-own provider keys no longer work for language models, so teams relying on them should migrate; you can still disable unwanted providers in settings.

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextPerplexity Open-Sources pplx-decider v1.3 Decision Models: New Locate Span Extraction, 91.6% Mean Accuracy Across 63 Classification Tasks for the 26B Model, Apache 2.0, Free on OpenRouter Until November 19
Read Now→