Providers
List the AI providers that route Batchrouter traffic, inspect a provider's operations and regions, and pin routing to public or edge lanes.
Batchrouter is a routing marketplace: when you submit a batch, the router picks the cheapest eligible provider lane that meets your requirements. Providers are the upstream services behind those lanes — hyperscale APIs like OpenAI and Anthropic, aggregators, and managed edge networks that onboard through the public Provider API. The provider directory is public and read-only, so you can see who can run your work before you create a batch.
This guide covers the two provider endpoints and how providers relate to lanes.
Want to sell inference capacity on Batchrouter instead? See Become a provider.
List providers
GET /v1/providers returns the public provider directory — each entry's slug, display_name,
description, status, is_enabled flag, and the supported_operations it can run.
curl https://api.batchrouter.com/v1/providers \
-H "Authorization: Bearer $BATCHROUTER_API_KEY"The response is a providers array. Fields below are illustrative — slugs and names you see are real,
but treat values as a snapshot:
{
"providers": [
{
"slug": "openai",
"display_name": "OpenAI",
"description": "Native OpenAI Batch API for chat completions.",
"status": "active",
"is_enabled": true
},
{
"slug": "anthropic",
"display_name": "Anthropic",
"description": "Anthropic Messages batch API.",
"status": "active",
"is_enabled": true
}
]
}is_enabled tells you whether a provider is currently routable. A disabled provider stays in the
directory for reference but contributes no lanes to routing.
status is active for a listed provider. It is unavailable only for a built-in provider
(one that Batchrouter runs on its own account) when that account is refusing work, which is
detected after several daily health checks in a row. It returns to active after the next check
that succeeds. While a provider is unavailable, its telemetry.success_rate is null, because
refused checks say nothing about the provider's own service. The same status is on
GET /v1/providers/{slug}.
To see which models each provider serves (and their prices), use the model catalog rather than reading model details out of the directory.
Measured health
The directory shows what Batchrouter measured, not a number the provider declared. When measured
health is published, a provider carries reliability: null and an observed_health object:
| Field | Meaning |
|---|---|
window_days | The rolling window, in days (7). |
sample_size | Executions in the window that reached a final state (completed, failed, canceled or expired). |
minimum_sample_size | The runs needed before a rate is shown (5). |
data_status | ok, not_enough_data (fewer runs than the minimum), or unavailable (Batchrouter's own account at the provider is refusing work). |
success_rate | The share of finished executions that completed, from 0 to 1. null unless data_status is ok. |
average_duration_seconds | The average time from start to finish. |
last_observed_at, as_of | When the provider last ran, and when the figures were computed. |
telemetry keeps the 30-day execution counts; its success_rate is null under the same
minimum. The figures count every execution Batchrouter ran on the provider, including its own daily
health checks, so read sample_size next to the rate. A routing decision does not use these
figures; routing keeps its own recent-outcome record and takes a provider out of rotation while its
health checks fail.
Get one provider
GET /v1/providers/{slug} returns a single provider keyed by its slug (for example openai). The
response wraps the same provider shape under a provider key and includes the provider's
supported_operations and models. A provider profile may also carry richer marketplace metadata —
the provider's processing countries and regions (processing_countries and
supported_regions: published metadata, not an enforced residency guarantee), capacity
signals, and the provider's declared data-retention policy (published, but the router does not
compare the declared retention window against your batch). The full, authoritative field list is in the
API reference; fetch a live provider to see exactly what it
exposes.
curl https://api.batchrouter.com/v1/providers/openai \
-H "Authorization: Bearer $BATCHROUTER_API_KEY"An unknown slug returns 404.
Providers, lanes, and routing
A lane is a concrete way to run a piece of work: a specific provider serving a specific model, with
the provider's region tags. One provider typically offers several lanes. When you quote or create a batch, the
router applies your hard requirements (model, allowed regions,
deadline), discards lanes that can't satisfy them, then ranks what's left — by price for direct routes —
and selects the cheapest eligible lane (splitting across lanes when one can't finish in time). The
region check compares your allowed_regions with what the provider declares (see
Processing countries and regions), and a provider that declares
no region (one marked only global) takes no region-restricted work. Regions are provider
declarations, not an audited residency guarantee.
To limit which providers are considered, set provider_preferences.only (run only on these providers)
or provider_preferences.ignore (never use these providers) on your quote or batch. See
Provider preferences.
Every quote and every batch returns a routing receipt naming the selected lane(s) and why other eligible lanes were not chosen — so routing choices are auditable. See How routing works for the full ranking and rejection model.
Processing countries and regions
A registered provider declares the country or countries it runs inference in as processing_countries
(codes such as DE or US). Batchrouter derives the provider's supported_regions from
them: the countries themselves, plus EU when every country is an EU member. Every lane of that
provider carries those tags. Built-in providers don't declare countries, so their
processing_countries is empty.
The region check compares your allowed_regions with what the provider declares:
- Work with no region restriction (
allowed_regionsleft out, or containingglobal) can go to any provider. - Region-restricted work goes to a provider with declared countries only when your list covers
every country it runs in, by name or through a group such as
EU. - A provider without declared countries matches when its regions name a region your list names. A
provider that lists only
globaltakes work with no region restriction and nothing else. Regions are provider declarations, not an enforced residency guarantee.
You can name any country in allowed_regions, even one where no provider runs inference yet. Work
restricted to a region nobody declares can't be placed, and Batchrouter says so: see
A region nobody runs in yet.
See Region matching for examples.
When a provider starts taking work
A registered provider sets itself up in the provider portal. When it completes the setup checklist and presses Go live, routing to it starts automatically. There is no manual approval step. A provider must declare at least one processing country before it can go live. Batchrouter operators can switch a provider's routing off and on.