Hugging Face and OpenRouter join forces to make open-weight models easy to run

In one sentence

Hugging Face is switching its language model inference routing to OpenRouter, enabling users to run open-weight models across 80+ providers with automatic failover and live optimization.

Key points

  • Hugging Face is switching Inference Providers' language model router to OpenRouter, routing across 80+ providers by live price, speed, and reliability with automatic retries.
  • The router supports OpenAI and Anthropic API formats and maintains prompt cache affinity via session headers.
  • Pricing remains unchanged with no Hugging Face markup, though users can no longer use their own provider API keys for language models.
  • Image, video, and audio generation continue to run directly through Hugging Face Inference Providers without going through OpenRouter.

In depth

An AI-written overview of the original article, not the article itself.

Hugging Face and OpenRouter have partnered to integrate OpenRouter's routing into Hugging Face Inference Providers. Developers can now run open-weight language models on the Hub using their existing code and Hugging Face token, with OpenRouter automatically selecting the best provider and retrying failed requests.

Routing and API Support

According to the article, language model requests now go through OpenRouter, which evaluates over 80 providers in real time based on price, speed, and reliability. Its rebuilt routing cuts capacity errors by 46% and improves time to first token by 16.9%.

The router supports OpenAI's Chat Completions and Responses APIs, Anthropic's Messages API, and cache-aware routing via the X-HF-Session-Id header. Users can append suffixes like fastest, cheapest, or a provider name to the model ID, or disable specific providers in settings.

Pricing and Open-Weight Trends

Pricing stays the same with no Hugging Face markup, and PRO, Team, and Enterprise plans include $2 in monthly credits per user or seat. However, custom provider API keys no longer work for language models. Image, video, and audio generation remain directly on Hugging Face.

The article notes that open-weight models grew from 26.8% of OpenRouter's token volume in October 2025 to 71.7% in September 2026, costing about four times less on average than closed models.

Read originalOpens huggingface.co

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Other coverage of this story

2 reports from 2 sources, in order of publication.

Recent stories from this source