Strategic Shift in Hugging Face Inference Infrastructure
Hugging Face has completely replaced the core routing layer of its Inference Providers from a self-built router to OpenRouter. This change is not merely an addition of suppliers but an architectural decision to serve all open weight models registered in the Hugging Face Hub through OpenRouter's pool of over 80 providers. Developers will benefit from automatic routing to the optimal provider by measuring real-time price, speed, and availability for each request while maintaining their existing Hugging Face tokens and API code.
"Requests pass through OpenRouter, selecting the optimal provider based on real-time price, speed, and reliability, and if the first attempt fails, it automatically retries with the next provider."
Image, video, and audio generation models will continue to be handled directly by Hugging Face Inference Providers, while the routing via OpenRouter is limited to language models (chat/completion).
Explosive Growth and Cost Advantage of Open Weight Models
According to OpenRouter traffic, the share of open weight models skyrocketed from 26.8% in October 2025 to 71.7% in September 2026, peaking at 77.5% in July 2026. During the same period, the weekly volume of open weight tokens increased by 60 times, while closed models only grew by about 10 times. As of this week, the most used model is DeepSeek V4.1 Flash 1017 (59.2 trillion tokens).
| Category | Input $/1M tokens | Output $/1M tokens | Estimated Cost per Task |
|---|---|---|---|
| Open Weight (Average) | $0.28 | $1.62 | $3.68 (Kimi K3.1 Pro) |
| Closed (Average) | $1.27 | $6.36 | $26.54 (Claude Fable 5.2) |
The cost gap reaches about 4 times, with the highest performing open weight model (Kimi K3.1 Pro, Artificial Analysis Intelligence Index 46 points) handling similar workloads at one-seventh the cost of the top closed model (Claude Fable 5.2, 65 points). This trade-off is deemed reasonable for many practical workloads.
Reliability Metrics Achieved Through Advanced Routing
OpenRouter has redesigned the existing 'lowest list price' based routing to a real-time price, speed, and reliability composite score method. In case of provider performance degradation, traffic is automatically transferred, and immediate retries are made to the next-ranked provider within a single call in case of failure. As a result:
- Capacity errors reduced by 46%
- First Token Arrival Time (TTFT) shortened by 16.9%
- Throughput improved by 16.3%
Cache-aware routing has also been introduced, fixing requests to providers that have the prompt cache for the same conversation. By passing a stable UUID in the `X-HF-Session-Id` header, explicit control is possible. Charges are reflected in the Hugging Face invoice at the provider's cost, with no Hugging Face markup. The PRO plan costs $2 per month, while Team/Enterprise provides $2 credits per month per seat.
Impact on Developer Workflow and Future Roadmap
Breaking Change: The use of personal provider API keys will be discontinued when calling language models. Instead, providers can be specified with the model ID suffix (`model:provider`), or unwanted providers can be disabled in the settings. Custom keys for image and video providers will continue to function as before.
The model page widget has added a Providers tab (real-time price, speed, uptime for each provider over 24 hours) and a Metrics tab (optimal price, throughput, TTFT, context, uptime summary), and the usage dashboard allows checking of spending details by provider. Organizational unit settings will apply similarly.
Future plans include linking OpenRouter accounts with Hugging Face accounts and expanding OpenRouter routing to tasks beyond language models (embedding, re-ranking, etc.). Developers can immediately test using the 'Try a model' button on `huggingface.co/blog/openrouter` or through the Inference Providers documentation.