Hugging Face and OpenRouter partner to simplify access to open-weight models
Hugging Face and OpenRouter partner to simplify access to open weight models Hugging Face and OpenRouter are partnering to make open weight models easier to run. Major open weig...
By Software Development Team
Hugging Face and OpenRouter partner to simplify access to open-weight models
Hugging Face and OpenRouter are partnering to make open-weight models easier to run. Major open-weight releases are published on the Hugging Face Hub, while OpenRouter serves those models at scale and routes requests across more than 80 providers using live measurements. For supported models, users can make calls with a Hugging Face token through a common API, with the provider selected for each request.
Hugging Face Inference Providers now uses OpenRouter's routing system instead of its previous custom router for language models. OpenRouter selects a provider according to current price, speed, and reliability, and retries the request with another provider if the first attempt fails. Existing code remains unchanged.
Use existing tools and APIs
The router supports OpenAI's Chat Completions and Responses APIs, as well as Anthropic's Messages API, for every chat model regardless of its underlying provider. Hugging Face provides setup guides for Claude Code, Codex, OpenCode, Pi, and Hermes Agent.
The same Hugging Face token can also be used for Storage Buckets, Jobs compute, and dedicated inference through Inference Endpoints. PRO, Team, and Enterprise plans include monthly compute and inference credits.
Growing use of open-weight models
On OpenRouter, open-weight models accounted for 26.8% of served tokens in October 2025 and 71.7% at the end of September 2026, after reaching 77.5% in July. During the same period, weekly usage of open-weight models increased more than 60-fold, compared with nearly tenfold growth for closed models. In the cited rankings, DeepSeek V4.1 Flash 1017 was the most-used model, with 59.2 trillion tokens.
Open-weight models cost about four times less on average. Input tokens cost $0.28 per million and output tokens cost $1.62 per million, compared with $1.27 and $6.36 for closed models.
The strongest open-weight models continue to trail leading proprietary models on the most difficult benchmarks. On the Artificial Analysis Intelligence Index, Kimi K3.1 Pro, the highest-scoring open-weight model, received a score of 46, compared with 65 for Claude Fable 5.2. The cost per task was approximately one-seventh as high, at $3.68 versus $26.54.
OpenRouter routing
OpenRouter serves more than 800 trillion tokens each month to over 10 million users, covering more than 600 models from more than 80 providers. Its routing decisions are based on live measurements collected from that traffic.
The routing system was recently rebuilt to consider more than list price. Each request is directed to the provider offering the best combination of price, speed, and reliability. If a provider slows down or begins failing, traffic is moved away until performance recovers. A failed attempt is retried with the next-best provider during the same call.
According to OpenRouter's measurements, the new routing system reduced capacity errors by 46%, improved time to first token by 16.9%, and increased throughput by 16.3%.
Previously, Inference Providers selected one provider and returned its error if the request failed. Requests are now retried with another provider. Users can still select a routing policy or a specific provider by adding a suffix to the model ID:
zai-org/GLM-5.3 # default: best mix of price, speed and reliability
zai-org/GLM-5.3:fastest # highest throughput
zai-org/GLM-5.3:cheapest # lowest price
zai-org/GLM-5.3:novita # only Novita
Routing also accounts for prompt caches. A conversation remains with the provider that holds its cached prompt. Applications can make this explicit by sending a stable UUID for each conversation in the X-HF-Session-Id header.
Pricing
Pricing remains unchanged. Users pay the provider's price through their Hugging Face bill, with no additional markup from Hugging Face. PRO users receive $2 in monthly credits, while Team and Enterprise organizations receive $2 per seat.
Image, video, and audio generation
Image, video, and audio generation continue to run directly through Hugging Face Inference Providers rather than OpenRouter. The same token and API remain available, along with access to tens of thousands of LoRAs.
Visibility into provider selection
Model pages include a chat widget and two tabs that expose provider information. The Providers tab lists the providers available to OpenRouter for the model, along with input and output prices, speed, and uptime over the previous 24 hours. The Metrics tab shows the best available price, throughput, time to first token, context length, and uptime.
The usage overview separates spending by the provider that handled each request. In the settings, users can disable individual providers, preventing the router from sending requests to them. Organizations have equivalent settings that apply to every request billed to the organization.
Breaking change: custom provider keys
Language-model requests now pass through OpenRouter and are billed to the user's Hugging Face account or organization. As a result, users can no longer provide their own API key for a provider serving these models.
Provider selection remains available through a model ID suffix such as model:provider, and providers can also be disabled in settings. Custom keys for image and video providers continue to work.
Next steps
The partnership's announced next steps are:
- Connecting OpenRouter accounts to Hugging Face
- Routing additional tasks through OpenRouter