Labomaru AI news, briefly

Partnership huggingface.co

Hugging Face switches inference routing to OpenRouter

Hugging Face now routes language model requests through OpenRouter, which picks providers by price, speed, and reliability. Developers call open-weight models via the same API with their existing token.

Image: huggingface.co
Announced
Published
For
Developers

What was announced

  • Hugging Face and OpenRouter are teaming up to make open-weight models easy to run.[1]
  • Hugging Face is switching its Inference Providers from a custom router to OpenRouter's.[2]
  • Requests to language models now go through OpenRouter, which picks the best provider per call based on live price, speed, and reliability, and retries on another provider if the first fails.[3]
  • According to 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%.[4]
  • Every open-weight model on the Hub that a provider serves can be called with a Hugging Face token through the same API, with the best provider picked for each request, the company says.[5]
  • Developers can still pick a provider with a suffix on the model id (model:provider) or turn providers off in settings, and their code stays the same.[6]

What it means

  • Developers using Hugging Face's existing API and token can adopt the new routing without changing their code, making it a low-friction upgrade.
  • The 46% reduction in capacity errors and 16.9% improvement in time to first token are OpenRouter's own measurements and may vary by workload and provider mix.
  • Providers can still be pinned via the model:provider suffix or disabled in settings, giving teams control over which providers handle their traffic.

From the announcement

  1. [1] Hugging Face and OpenRouter are teaming up to make open-weight models easy to run.
  2. [2] Today, we are switching Inference Providers from our own custom router to OpenRouter's.
  3. [3] Requests made to language models now go through OpenRouter, which picks the best provider for each call based on live price, speed and reliability, and retries on another provider if the first one fails.
  4. [4] 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%.
  5. [5] Together, every open-weight model on the Hub that a provider serves can be called with your Hugging Face token, through the same API, with the best provider picked for each request.
  6. [6] You can still pick a provider with a suffix on the model id (model:provider) or turn providers off in your settings, and your code stays the same.

Source: Hugging Face and OpenRouter join forces to make open-weight models easy to run (huggingface.co)

Original announcement

huggingface.co Hugging Face and OpenRouter join forces to make open-weight models easy to run Read at the source ↗