SLA-aware lanes & routing
Control how Batchrouter places your batch — the SLA tiers, provider preferences, multi-lane routing, and rejection receipts explained.
Not open yet
Batchrouter doesn't just forward your batch to one provider — it evaluates every eligible provider/model lane, prices them, and picks placement based on the controls you set. This page explains the SLA tiers, the provider preferences you set, how multi-lane routing works, and how to read the rejection receipts that explain why a lane wasn't used.
What a lane is
A lane is one candidate execution path — a specific provider running a specific model that could fulfill some or all of your items. When you request a quote, Batchrouter expands your items into every eligible lane, prices each one, and returns them as quote_lanes. The selected lane(s) carry selected: true; the rest come back with a rejection receipt explaining why they were skipped.
Because different items in one batch can declare different models, a single customer batch can be split across multiple internal lanes — each handling the items it's best suited for. You still get one batch.id, one status to poll, and one merged result set; the per-lane execution is Batchrouter's concern. The completed batch's billing receipt lists the provider_lanes that actually ran and the rejected_lanes that didn't.
Multi-lane routing optimizes for cost, SLA, and live capacity simultaneously. If one provider is at capacity for part of your batch, eligible items can still flow to another lane instead of failing the whole batch.
SLA tiers (sla_tier)
An SLA tier sets how long Batchrouter has to deliver your work. Each slower tier costs less. All six are available.
| Tier | Window | Status | How you use it |
|---|---|---|---|
| Realtime | Best effort, no window | Available | A direct request to POST /v1/chat/completions, at the lane's direct price. |
| Priority | 4 hours | Available | "sla_tier": "priority" on a quote or batch. |
| Standard | 24 hours | Available | The default for a batch: POST /v1/batches, the OpenAI Batch mirror, and "batch": true on chat completions. The service fee is refunded on a miss. |
| Relaxed | 48 hours | Available | "sla_tier": "relaxed". |
| Flex | 72 hours | Available | "sla_tier": "flex". |
| Economy | 7 days | Available | "sla_tier": "economy". |
A batch asks for a tier with sla_tier: priority, standard, relaxed, flex or economy. The default is standard, so you can leave the field out. The tier sets the batch's deadline_at (4 hours, 24 hours, 48 hours, 72 hours or 7 days from creation), and the quote prices the work at the tier: each provider sets its own price per tier, and a slower tier is never dearer than a faster one.
Only lanes that take the tier are considered. If none does, the quote fails with 422 sla_tier_unavailable; try another tier or model. Your batch is delivered inside the window you chose; Batchrouter splits that window into stages and moves the work to another lane when one runs late, so a missed stage doesn't mean a missed deadline. GET /v1/catalog/sla-tiers lists the tiers an environment accepts.
{ "sla_tier": "standard" }Your promise and the provider's window are different times
The window in the table is what Batchrouter promises you: the whole time from creation to deadline_at. Providers are held to a shorter window for each stage, so there is time left to move the work if one is late. The provider windows are listed in the provider documentation; you never need them to use a tier.
Example, a Standard batch: you see 24 hours. Stage 1 goes to a provider with a 10-hour window. If it is late, stage 2 goes to another provider with 10 hours, and the closing stage gets the remaining 4 hours. The batch still finishes inside your 24.
The deadline is surfaced as deadline_at on the batch you poll. The SLA also affects which lanes are eligible: a lane that can't finish the work before the deadline is not selected for that batch.
Provider preferences (provider_preferences)
provider_preferences sets provider controls on a quote or batch, or on one item through route_override (an item's fields win over the batch's). Every field is optional.
| Field | Type | Effect |
|---|---|---|
only | provider slugs (up to 8) | Removes every provider not in the list. |
ignore | provider slugs (up to 8) | Removes every provider in the list. |
order | provider slugs (up to 8) | Tries these providers first, in this order. |
allow_fallbacks | boolean | Default true. With false work does not fall back: a provider that fails its quote fails the whole quote, no fallback or rescue stage is planned, and the two preferred_* fields below become hard limits. |
data_collection | allow or deny | deny removes every provider that does not declare data_collection: deny. |
zdr | boolean | true removes every provider that does not declare zero data retention (supports_zdr). |
sort | price, latency or throughput | Breaks ties between lanes that score the same: lower price, shorter expected completion, or higher declared throughput first. |
preferred_max_latency_seconds | number | Prefers lanes whose expected completion is within this many seconds. If none is, the others stay eligible unless allow_fallbacks is false. |
preferred_min_throughput_tokens_per_second | number | Prefers lanes whose provider declares at least this throughput, with the same fallback rule. |
max_total_cost | decimal string | Removes lanes that cost more. If every lane costs more, the quote fails with 409 quote_price_cap_exceeded. |
allow_fallback_only_rescue | boolean | Set by Batchrouter on its own rescue re-quotes. Leave it unset. |
fallback | { regions, providers } | Ranks who comes after the first choice. See Fallback order. |
The filters stack with allowed_regions: a lane must pass all of them. Chat completions accepts only only, order and allow_fallbacks.
A request that sets tools, a response format or a JSON schema goes only to lanes that declare support for it. There is no customer field for this: the router does it for you.
Fallback order (provider_preferences.fallback)
If the first choice fails, work normally falls back to the next-best eligible lane. To choose who comes next, rank fallbacks by region, by provider, or both:
{ "provider_preferences": { "fallback": { "regions": ["SA", "AE"], "providers": ["acme"] } } }It only ranks: your allowed_regions and only still decide what may take the work, and the first choice is picked as before. Entries that place nobody are skipped and listed in the quote's routing_notices. See Choose who comes next.
Rejection receipts
Every non-selected lane in a quote (and every rejected lane in a completed batch's receipt) carries a normalized rejection receipt: a stable rejection_code, a customer-safe rejection_reason, and a rejection_receipt object with the failed eligibility checks. This makes routing auditable — you can always see why a cheaper or different lane wasn't used.
Common rejection codes:
| Code | Meaning |
|---|---|
capacity_full | The lane had no live routable capacity for your SLA/volume. |
stale_heartbeat | The provider's capacity heartbeat was stale, so it wasn't treated as live supply. |
context_window_exceeded | An item exceeds the model's context window on that lane. |
region_unavailable | The lane's provider doesn't match your allowed_regions. A provider that declares the countries it runs in must have every one of them covered by your list. A provider that declares no region (one marked only global) takes work with no region restriction and nothing else. See Region matching. |
Inspect rejected lanes straight from the quote response:
curl -s https://api.batchrouter.com/v1/quotes/model \
-H "Authorization: Bearer $BATCHROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"models": ["gpt-5.4-mini"],
"items": [
{"customer_item_id":"item-1","operation": "chat.completions","model":"gpt-5.4-mini","input":{"messages":[{"role":"user","content":"Summarize: Batchrouter routes batch-AI workloads across providers."}]}}
]
}' | jq '.quote_lanes[] | {provider, model, selected, rejection_code, rejection_reason}'gpt-5.4-mini is a model id from the live catalog. List the models and the providers/regions/tools each one actually supports via GET /v1/catalog/models before pinning a model or region.
Next steps
Quotes & pricing
Get a free quote, read the lane spread, and lock a price before you submit.
Models & catalog
List models with per-provider pricing, capacity, regions, retention, and supported tools.
Submit a batch
Create a batch with your chosen SLA tier and provider preferences.
API reference
Full schema for quote lanes, rejection receipts, and batch parameters.