Hugging Face has partnered with OpenRouter, which now routes inference requests across multiple providers based on cost, latency and uptime, with automatic rerouting when a provider fails.
Hugging Face and OpenRouter announced a partnership that uses OpenRouter’s infrastructure to route language-model inference requests across third-party providers. The integration launched immediately and initially supports 160 models from 38 AI research organizations.
Requests can be directed according to cost, response speed and recent uptime. If a provider reaches capacity or becomes unresponsive, OpenRouter can automatically retry the request through an alternative provider, addressing a failure mode in Hugging Face’s previous single-provider routing system.
Hugging Face users can compare provider pricing, speed and availability from model pages, while developers can exclude specific providers. Team administrators can apply the same restrictions to requests billed to their organizations.
The integration is currently limited to language models. Requests must be billed through Hugging Face rather than using developers’ own third-party API credentials, although Hugging Face says it will pass through provider costs without an additional markup. OpenRouter users can also export inference logs to Hugging Face Storage Buckets for analysis and dataset creation.