---
title: "OpenRouter Provider Routing: Pick or Exclude Inference Providers"
description: "One open model can have dozens of OpenRouter providers with different quantization and uptime. How to use order, ignore and quantizations, with curl examples."
url: https://cdnping.org/en/blog/openrouter-provider-routing-guide
language: en
published: 2026-10-31
category: "Developer tools"
tags: ["OpenRouter","inference providers","model quantization","API configuration","open-weight models"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# OpenRouter Provider Routing: Pick or Exclude Inference Providers

To pin a provider on OpenRouter, you use the `provider` object in the request body. `order` sets priority, `only` sets an allowlist, `ignore` excludes specific providers, `quantizations` accepts only certain precisions, and `allow_fallbacks` decides whether OpenRouter may switch to another provider when your first choice fails. If you don't send this object, OpenRouter distributes requests across providers using its default strategy, so you may land on a different deployment every time.

Below, a cdnping snapshot shows why pinning is worth it, followed by examples you can copy directly.

## How many providers are behind one model?

For closed models, OpenRouter's "providers" are usually the official API plus a few cloud-hosted versions. Open-weight models are different: any inference platform with spare compute can deploy the same weights and list them.

The cdnping [model monitor](/en/models) reads OpenRouter's public API. Take the snapshot captured on 2026-10-17 (cdnping started collecting that day, so this is a single point in time, not long-term statistics):

- The snapshot covers 16 tracked models with 137 provider endpoints in total.
- A lightweight open DeepSeek model has 36 endpoints, the most in this snapshot. A general-purpose Kimi (Moonshot AI) model has 26, and a Kimi coding model has 13.
- Closed models have far fewer endpoints, usually the official one plus a few cloud hosts. The highest count is 10.

More endpoints means more choice. It also means that if you don't specify, where your request lands is not deterministic.

## What differs when you don't specify a provider?

### Different quantization

Providers may deploy the same weights at different precisions. The quantization labels across the 137 endpoints in the snapshot break down like this:

| Quantization label | Endpoints |
|---|---|
| fp8 | 23 |
| fp4 | 13 |
| mxfp4 | 8 |
| int4 | 6 |
| Unlabeled (unknown) | 87 |

Looking only at the 36-endpoint DeepSeek model: 17 are fp8, 3 are fp4, 1 is mxfp4, and 15 are unlabeled. Of the 13 endpoints for the Kimi coding model, 6 are int4.

Lower precision means less GPU memory and lower cost. Whether output quality suffers depends on the model and the task, so there is no blanket answer. The relationship between quantization and a model "getting dumber" is covered separately in [Inference providers and fp8/fp4 model quantization](/en/blog/llm-quantization-fp8-fp4-providers). The one thing to remember here: unlabeled does not mean full precision. It only means the provider did not declare it on OpenRouter.

### Different uptime

In the same snapshot, OpenRouter's public API reported one-day uptime for each endpoint. Of the 36 endpoints for that DeepSeek model, 8 were below 99%, the lowest at about 88.1%. The other 28 were above 99% over the same window. These numbers come from a single point in time and could look completely different the next day, so use them to show that differences exist, not to draw conclusions about any one provider. For more on uptime by provider, see [How much can uptime differ when you switch OpenRouter providers for the same model](/en/blog/same-model-different-providers-uptime).

### Different prices and supported parameters

Providers can price the same model differently and support different parameters. Some don't support tool calling, and some don't support structured output or certain sampling parameters. Under default routing, OpenRouter may send a request with `tools` to a provider that ignores that parameter, which looks like "the model can't call tools."

## What fields does the provider object have?

The table below follows OpenRouter's official Provider Routing documentation. Fields may change between versions, so check the official docs again before you integrate.

| Field | Type | Purpose |
|---|---|---|
| `order` | array of strings | Try these providers in order |
| `allow_fallbacks` | boolean | Whether to fall back to other providers after all listed ones fail; default `true` |
| `only` | array of strings | Allow only these providers |
| `ignore` | array of strings | Exclude these providers |
| `sort` | string | Sort by `price`, `throughput` or `latency` instead of the default load balancing |
| `quantizations` | array of strings | Accept only these quantization levels, such as `fp8`, `fp16`, `bf16` |
| `require_parameters` | boolean | Route only to providers that support every parameter in the request |
| `data_collection` | string | With `deny`, exclude providers that may store or use your request data |
| `max_price` | object | Set the highest acceptable unit price |

Providers are identified by slug, which you can see in the Providers list on an OpenRouter model page. Some slugs in the snapshot carry suffixes, for example a provider's `xxx/fp8` and `xxx/fp8/flex`. These are different deployment variants from the same company, so pay attention to which level you write in a routing rule.

## How to write it: five examples you can adapt

`<provider-a>` and similar names below are placeholders. Replace them with slugs from the model page, and replace `<model-id>` with the model ID.

### 1. Pin one provider, no fallback

Good for evaluations or debugging, when you need to be sure results come from one provider:

```bash
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<model-id>",
    "messages": [{"role": "user", "content": "ping"}],
    "provider": {
      "order": ["<provider-a>"],
      "allow_fallbacks": false
    }
  }'
```

If this provider is unavailable, the request returns an error instead of quietly switching to another one.

### 2. A preferred provider plus a backup

The more common production setup: try two providers in order, and hand the request to OpenRouter's default routing only if both fail.

```json
"provider": {
  "order": ["<provider-a>", "<provider-b>"],
  "allow_fallbacks": true
}
```

### 3. Exclude specific providers

```json
"provider": {
  "ignore": ["<provider-c>", "<provider-d>"]
}
```

This fits cases where [/models](/en/models) or your own logs show that certain providers have been unstable recently, or that their output isn't what you expect.

### 4. Accept only certain quantization levels

```json
"provider": {
  "quantizations": ["fp8", "bf16", "fp16"],
  "allow_fallbacks": false
}
```

Two cautions. First, most endpoints in the snapshot (87 of 137) carry no precision label, so filtering by precision excludes them all and the candidate pool can get very small. Second, whether a label like `mxfp4` can go directly into the filter array depends on the values the official documentation currently lists. If you're unsure, send a test request first and see whether it errors.

### 5. Sort by price or throughput, and require all parameters to be supported

```json
"provider": {
  "sort": "throughput",
  "require_parameters": true
}
```

For requests with `tools` or `response_format`, always add `require_parameters: true`. OpenRouter also supports shorthand suffixes on the model ID: `:nitro` (sort by throughput) and `:floor` (sort by price), which work the same as setting `sort`.

## How do you confirm the request really went to the provider you chose?

Writing the config doesn't prove it took effect. Check in this order:

1. Look at the `provider` field in the response. OpenRouter's non-streaming responses include the name of the provider that actually served the request.
2. Query the generation record. Call `GET https://openrouter.ai/api/v1/generation?id=<id>` with the `id` from the response. The result includes the provider, token counts and cost.
3. Check the dashboard Activity page. The OpenRouter console lists the provider for each request, which is handy for spot checks.
4. Force a failure. Set `order` to a single provider with `allow_fallbacks: false`, and when that provider is unavailable, check that the request errors as expected instead of returning successfully.

If the provider you see in step 1 doesn't match your config, the most common cause is that `allow_fallbacks` is still the default `true`, so the request was moved elsewhere after the first choice failed. For more ways to verify that you're getting the model you asked for, see [How to verify which model an API is really giving you](/en/blog/verify-model-authenticity-relay).

## What if Cherry Studio or another client doesn't support the provider parameter?

Many desktop clients only let you fill in an endpoint URL, a key and a model name, with nowhere to put extra fields in the request body. Options, from smallest change to largest:

| Option | How | Limitation |
|---|---|---|
| Account-level preferences | Configure allowed or ignored providers in OpenRouter settings | Applies to every request on the account; coarse |
| Model name suffix | Use `<model-id>:floor` or `:nitro` as the model name | Controls sorting only; can't pick a specific provider |
| Custom client parameters | Some clients support "custom request parameters / extra body"; put the `provider` object there | Depends on client version; test that it is actually sent |
| Local forwarding | Run a tiny local proxy that injects `provider` into the body and forwards the request | You maintain it yourself; don't write your key to logs |

If you use custom client parameters, pair it with step 1 of the previous section to confirm it works.

## What signals should you look at when choosing a provider?

A checklist you can follow:

1. On the OpenRouter model page or cdnping [/models](/en/models), list all endpoints for the model and note their quantization labels and recent uptime.
2. First drop endpoints that don't support the parameters you need (tool calling, structured output, context length).
3. For precision-sensitive tasks, prefer endpoints labeled with higher precision. For unlabeled endpoints, run your own fixed test set before deciding.
4. When comparing prices, don't look only at the unit price. Caching, thinking tokens and output length all affect the bill; see [How to compare LLM API prices](/en/blog/llm-api-pricing-how-to-compare).
5. Put two or three providers in `order` and keep backups. For overall degradation and circuit-breaker design, see [LLM API multi-provider failover](/en/blog/llm-multi-provider-failover-circuit-breaker).
6. Recheck periodically. Providers add or remove listings, change prices, or change quantization, and cdnping /models records these changes automatically.

If the whole request fails, rather than one provider misbehaving, start with [OpenRouter API status](/en/status/openrouter) and [Is OpenRouter down?](/en/down/openrouter) to rule out a problem at the entry point itself. On 2026-10-17 (the first day of collection), cdnping probed the openrouter.ai entry point from Cloudflare's edge. As of that day's snapshot, availability was 100%, with a median response time of 54 ms and a P95 of 83 ms. The sample covers only a few hours and reflects entry-point connectivity only, not the state of individual inference providers.

## When you don't need to manage providers yourself

If you mostly write code day to day with modest call volume, default routing is usually enough, and pinning manually can actually leave you with fewer options when your first choice goes down. The cases worth configuring are mainly: evaluations that need reproducible results, quality-sensitive work that needs a locked precision, reliance on tool calling or structured output, and keeping a cap on cost.

If you'd rather not maintain routing rules, you can use an aggregation gateway that schedules by capability tier, such as [AGI Plan](https://agiplan.dev) (AGI Plan is a commercial partner of cdnping). It sends requests to different capability tiers based on task difficulty, at the cost of no longer controlling directly which provider handles a request. To judge how much control you need, compare the ideas in [How to do multi-model routing](/en/blog/multi-model-routing-save-cost). Whichever channel you use, follow the relevant service's terms and local regulations.
