Skip to content
All news
AnnouncementAI-written

Hugging Face Inference Providers route LLMs via OpenRouter

Hugging Face routes language model inference through OpenRouter, which retries failed calls and cuts capacity errors by 46% while improving time to first token by 16.9%.

Hugging Face replaced its internal routing logic for language model inference with OpenRouter. This integration shifts how requests are distributed across external providers and changes the billing mechanism for developers using these services.

OpenRouter directs traffic to over 80 providers by evaluating live metrics for price, speed, and reliability. The system automatically retries failed calls on the next available provider within the same request cycle. This rebuilt routing infrastructure reduced capacity errors by 46% and improved time to first token by 16.9%. At the end of September 2026, open-weight models generated 71.7% of all tokens served on the platform.

Open-weight models average $0.28 per million input tokens and $1.62 per million output tokens. Closed models average $1.27 per million input tokens and $6.36 per million output tokens. DeepSeek V4.1 Flash 1017 is the most utilized model, processing 59.2 trillion tokens in the current week. Hugging Face does not add a markup to the provider's listed price on user bills.

PRO users receive $2 in monthly credits, while Team and Enterprise organizations get $2 per seat. Developers can control routing behavior using suffixes such as :fastest, :cheapest, or a specific provider name. Sending a stable UUID in the X-HF-Session-Id header keeps conversations on the provider holding the prompt cache. New Providers and Metrics tabs on model pages display input and output prices, speed, and uptime for each provider. Image, video, and audio generation continues to operate directly through Hugging Face Inference Providers without involving OpenRouter.

Requests to language models now route through OpenRouter and bill to the Hugging Face account or organization. Developers can no longer use their own API keys for these specific models.