Core concepts
Batchrouter's core nouns — batches, items, quotes, lanes, SLA tiers, receipts, providers, catalog, delivery and credits — and how they fit together.
Not open yet
Batchrouter routes batch-AI workloads across many providers. To use it well, it helps to know the handful of nouns that show up everywhere in the API: a batch is the unit of work, made of items; a quote prices it before you commit; routing picks a lane on a provider; and receipts explain what happened. This page defines each term and shows how they relate. Each entry links to the deeper guide.
For the full request and response field list, see the interactive API reference or the raw OpenAPI spec.
The lifecycle at a glance
A job moves through these objects in order:
- Quote — price a representative sample, free. Returns a
quote_id(qlock_…). - Batch — submit the quote plus your items. Returns a batch id (
batch_…), statepriced. - Routing — Batchrouter scores eligible lanes and dispatches to the winner(s).
- Results — completed output, plus a billing receipt and per-lane rejection receipts.
- Delivery — results are polled, pushed to a webhook, or written to your bucket.
The terms below are the pieces of that flow.
Batch
A batch is one durable job: a set of model requests you submit once and track with a single id
(batch_…). You create it with POST /v1/batches, then poll GET /v1/batches/{batchId} until it
reaches a terminal state. The state field progresses received → validated → priced → queued → dispatching → running → finalizing → completed; the other terminal states are failed, canceled,
and expired.
A batch carries the routing knobs (such as its SLA tier), holds the credit reservation, and is the anchor for results, receipts, and delivery.
Submit a batch
Create, poll, and retrieve a batch end to end.
Item
An item is a single model request inside a batch. Each item has:
customer_item_id— your own id for the row, echoed back so you can match outputs to inputs.operation— the task type:chat.completions, the only operation.model— the model id to run, such asgpt-5.4-mini(see the model catalog).input— the prompt payload (e.g.messagesforchat.completions).
A canonical item looks like:
{
"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." }
]
}
}gpt-5.4-mini is a model id from the live catalog. Models and prices change, so list what is available now with GET /v1/catalog/models.
Submit a batch
See how items are shaped and batched.
Quote
A quote is a free, up-front price estimate. You send a representative sample of items to
POST /v1/quotes/model (a "direct route" — you choose the model). The response contains:
quote_id— a locked quote handle matching^qlock_…. Pass it asquote_idtoPOST /v1/batchesto accept the estimate and reserve credits.pricing_estimate— the estimated customer price for the work.
Quotes are versioned snapshots: they capture the provider offer prices at quote time and expire quickly if not submitted. Creating a quote never costs credits — you are charged only when you create a batch, and settled against actual token usage.
Quotes and pricing
Get a price before you commit credits.
Lane
A lane is one routable path to run your work: a specific provider plus a specific model offering, with its own price, capacity, region, and SLA window. Batchrouter evaluates every eligible lane, applies hard gates (capability, capacity, price ceiling, region, health), scores the survivors, and dispatches to the best one — or splits across several lanes when that meets capacity or deadline. The lanes considered (and why each was or wasn't picked) are recorded as rejection receipts.
Routing explained
How lanes are gated, scored, and selected.
SLA tier
Batchrouter has six SLA tiers: Realtime (best effort), Priority (4 hours), Standard (24 hours),
Relaxed (48 hours), Flex (72 hours) and Economy (7 days). All six are available. A batch asks for one
with sla_tier (standard by default); Realtime is a direct request. The window constrains which lanes are eligible — a lane whose provider window can't satisfy it is gated out
before scoring.
Routing explained
How the SLA interacts with lane selection.
Rejection receipt
A rejection receipt is the auditable record explaining why a lane was not selected. Each carries
a normalized rejection_code — for example capacity_full, stale_heartbeat,
context_window_exceeded, or region_unavailable — plus a customer-safe
rejection_reason. These make routing explainable: you can see exactly which lanes were considered and
the gate each one failed.
Receipts
Reading routing and rejection receipts.
Billing receipt
A billing receipt is the settled cost record for a completed batch, available at
GET /v1/batches/{batchId}/billing-receipt. It breaks down the quoted versus final price, the model
used, the lane summary, input/output usage, and the disclosed batchrouter_fee (the
platform's control-plane margin). It's the source of truth for what you were charged.
Receipts
What a billing receipt contains.
Provider
A provider is a batch-capable backend Batchrouter routes to — a public cloud (OpenAI, Anthropic,
OpenRouter, and others) or an edge/BatchProviderApi node. Providers publish versioned offerings
(models, prices, capacity, region, SLA window). You don't contract with providers directly; you buy a
quote from Batchrouter, which owns routing, pricing, and settlement. Browse the public directory at
GET /v1/providers.
Provider marketplace
How the provider marketplace works.
Model catalog
The model catalog is the public list of models you can route to, served by
GET /v1/catalog/models (and a single entry at GET /v1/catalog/models/{slug}). Always read the
catalog for live, available model ids rather than hardcoding names — availability and pricing change
as providers update their offerings.
Browse the catalog
Models, providers, and fee schedule.
Delivery target
A delivery target is where results land. By default you poll
GET /v1/batches/{batchId}/results or fetch a signed …/artifact-url. You can also have Batchrouter
push results: to a webhook (per-batch {url, secret} or an org default via
PUT /v1/auth/account/delivery-webhook; signed with X-BatchRouter-Signature, HMAC-SHA256), or to
your own S3-compatible bucket registered via POST /v1/delivery-targets. How long results are
retained is governed by GET|PUT /v1/retention-settings.
Delivery and webhooks
Poll, webhook, or push to your bucket.
Credits
Credits are your prepaid balance — Batchrouter charges against them. Creating a quote is free;
creating a batch reserves credits, and completion settles the final amount (releasing any unused
reservation, refunding failed work per policy). Credits are purchased in the dashboard at
app.batchrouter.com/billing — there is no public
billing-checkout endpoint. You can configure spending limits, alerts, and auto top-up under
/v1/billing/*, and review charges with GET /v1/usage.
Credits and billing
Buying credits, limits, and auto top-up.
How they relate
In one sentence: you quote a sample of items, accept the quote_id to create a batch,
Batchrouter routes it onto a provider lane under the 24-hour SLA, then settles credits and emits billing + rejection receipts while the
result reaches your delivery target.