Hugging Face moves Inference Providers to OpenRouter routing; custom provider keys end for language models

On November 16, 2026 (UTC), Hugging Face announced a partnership with OpenRouter: language-model requests to its Inference Providers now go through OpenRouter’s router, which picks a provider per request based on live price, speed and reliability and retries on another provider if one fails, with no code changes. Pricing is unchanged, but users can no longer bring their own provider API keys for these models.

Hugging FaceProduct Updates
Official Source(opens in a new tab)· AI assisted

Hugging Face announced a partnership with OpenRouter on X at 18:18 UTC on November 16, 2026, alongside a post on its official blog.

What changes

  • Hugging Face Inference Providers is switching from its own custom router to OpenRouter's. Language-model requests now go through OpenRouter, which picks the best provider for each call based on live price, speed and reliability, and retries on another provider within the same call if the first fails. Existing code stays the same.
  • The router supports OpenAI's Chat Completions and Responses APIs and Anthropic's Messages API. Users can add a suffix to the model id to choose a policy or provider, such as :fastest, :cheapest or a specific provider, and can turn off providers in settings.
  • Routing is cache-aware: a conversation stays on the provider holding its prompt cache, which can be made explicit with an X-HF-Session-Id header.
  • Model pages add Providers and Metrics tabs showing price, speed and uptime over the last 24 hours.

Pricing and limits

  • Pricing does not change: users pay the provider's price on their Hugging Face bill with no markup. PRO users get $2 of credits per month; Team and Enterprise organizations get $2 per seat.
  • Breaking change: because language-model requests now go through OpenRouter and are billed to the Hugging Face account, users can no longer use their own provider API keys for these models. Custom keys for image and video providers keep working, and image, video and audio generation still run directly through Inference Providers without OpenRouter.

In OpenRouter's measurements, its new routing cut capacity errors by 46% and improved time to first token by 16.9% and throughput by 16.3%. Hugging Face says next steps include connecting OpenRouter accounts to Hugging Face and routing more tasks through OpenRouter.