Guides

Hugging Face Inference Providers: Check Routing and Billing After the OpenRouter Switch

Audit a Hugging Face chat integration after the OpenRouter routing change, including provider pinning, fallback, and which account pays.

Key takeaway

Verify the billed Hugging Face account and eligible providers independently of the requested model ID.

On this page
  1. Decide what the model ID should control
  2. Verify the route and charge with a small request

Since the November 16 switch, OpenRouter chooses upstream providers for Hugging Face Inference Providers chat requests, while Hugging Face handles authentication and billing. Existing chat integrations can keep their API client. If they previously supplied an upstream provider key through Hugging Face, the billing path has changed. Hugging Face announcement

Decide what the model ID should control

Request form Routing behavior documented by Hugging Face
Bare Hub model ID Chooses among eligible providers using price, speed, and reliability.
Model ID with :fastest Prioritizes throughput.
Model ID with :cheapest Prioritizes price.
Model ID with a specific supported provider suffix Uses that provider only and returns an error if the route cannot serve the request.

The suffix for each upstream provider appears on the specific Hub model page. With a pinned provider, Hugging Face documents that failover to another provider is disabled. If several providers are acceptable, use the account or organization settings to disable routes outside the approved set. Requests charged to an organization follow its settings. Routing reference

Verify the route and charge with a small request

  1. Record the Hub model ID, Hugging Face token owner, the organization billed if applicable, and the intended provider policy.
  2. Send a short, non-sensitive prompt through the deployment’s current client. Then check the Hugging Face usage overview for the upstream provider and charge. Match by request time and use an otherwise quiet test window if attribution is unclear.
  3. If the workflow must stay on one provider, use the supported suffix for that model and verify the usage record. Design the application to display a clear failure if that provider becomes unavailable.
  4. Look for old dashboard notes or cost alerts that assume a bill from the upstream provider. Point those checks at the Hugging Face account or organization that now pays.

The announcement scopes the key change to language model requests. It separately says custom image and video provider keys continue to work. Hugging Face Inference Endpoints are a separate dedicated product. If an application mixes hosted chat and media generation, audit each path separately.

Verification on November 17. The routing and billing behavior was checked against both companies’ documentation. No authenticated request or organization billing change was made.

Sources & references

Written by Modelrovia Editorial. Our standards distinguish official claims from observed results.

How we research and test →

Tools in this article