Batchrouter Docs

Glossary

Definitions of Batchrouter's core terms — batch, quote, lane, SLA, receipts, delivery, retention, and more.

Not open yet

Sign-up is not open yet. The API routes for batches, chat completions and the OpenAI-compatible endpoints are not yet available.

A quick reference for the terms you'll meet across the Batchrouter API and docs. Definitions are one line each; follow the linked guide or the API reference for full field details.

A

API key — Your bearer credential, prefixed br_live_, sent as Authorization: Bearer br_live_…. Keys are shown once at creation; create them in the dashboard or via POST /v1/auth/account/api-keys. See Authentication.

Artifact — The assembled output (or error) file for a completed batch, stored as JSONL. Fetch a signed, time-limited download link with GET /v1/batches/{batchId}/artifact-url, or read items inline via GET /v1/batches/{batchId}/results. See Retrieve results.

B

Batch — A job you submit once with POST /v1/batches; it gets a batch_… id and moves through the status lifecycle (the state field: received → validated → priced → queued → dispatching → running → finalizing → completed, or terminal failed | canceled | expired). One batch can fan out into several internal lanes. See Submit a batch.

Billing receipt — The per-batch settlement record (what you were charged, against which credits). Fetch it with GET /v1/batches/{batchId}/billing-receipt, or embed it in the batch response with ?include_billing_receipt=true. See Credits and billing.

C

Completion window — The deadline Batchrouter routes against: 24 hours for every batch, the Standard tier (see SLA tier). The OpenAI-compatible surface exposes it as the completion_window field.

Credit — Prepaid balance (a micro-USD wallet) that batch creation draws down. Buy credits in the dashboard — there is no public billing-checkout endpoint. See Credits and billing.

customer_item_id — Your own identifier on each input item; Batchrouter echoes it back on the corresponding result so you can join outputs to inputs. See Submit a batch.

D

Delivery target — A registered customer-owned, S3-compatible bucket (AWS S3, Cloudflare R2, GCS S3-interop, MinIO) that Batchrouter pushes result and error artifacts to on finalize. Manage via GET|POST /v1/delivery-targets and test connectivity with POST /v1/delivery-targets/{id}/test. See Delivery.

I

Idempotency key — The Idempotency-Key header you send with POST /v1/batches so a retried request creates the batch once, not twice. See Submit a batch.

Item — One request inside a batch (a chat completions request). The canonical item carries a customer_item_id, operation, model, and input. List them with GET /v1/batches/{batchId}/items.

L

Lane — An internal execution path (one provider offering for one model) that Batchrouter selects to run part or all of your batch. A batch with mixed-model items splits into model-specific lanes; non-selected lanes carry a rejection receipt. See How routing works.

M

Model catalog — The public list of models you can request, with metadata and pricing inputs. Browse with GET /v1/catalog/models and GET /v1/catalog/models/{slug}. Always source real model ids from the catalog rather than hardcoding them.

O

Operation — The task type of an item — chat.completions, the only one Batchrouter offers. It tells Batchrouter how to shape and route the request. See Submit a batch.

P

Provider — A third party that runs the actual inference on a lane. Browse the marketplace with GET /v1/providers and GET /v1/providers/{slug}. Batchrouter owns routing, pricing, and billing; providers own their infrastructure.

Q

Quote (quote_id / qlock_) — A free cost estimate from POST /v1/quotes/model. It returns a quote_id shaped qlock_… — a price-locked snapshot you pass to POST /v1/batches to reserve credits at the quoted price before dispatch. See Quotes.

R

Rejection receipt — The auditable record on each non-selected or ineligible lane explaining why it wasn't routed: a normalized rejection_code (e.g. capacity_full, stale_heartbeat, region_unavailable), the failed eligibility checks, and provider/offer details. This is what makes Batchrouter routing explainable. See How routing works.

Retention — How long result artifacts are kept. Defaults to free grace_only; extended_fixed (metered) keeps them longer, and never_charge guarantees zero storage spend. Manage with GET|PUT /v1/retention-settings. See Delivery.

S

SLA tier — How long Batchrouter has to deliver: Realtime (best effort), Priority (4 hours), Standard (24 hours), Relaxed (48 hours), Flex (72 hours) or Economy (7 days). The sla_tier field on quotes and batches accepts priority, standard (default), relaxed, flex and economy. See SLA tiers.

W

Webhook — An HTTPS callback Batchrouter sends on batch events, signed with X-BatchRouter-Signature (HMAC-SHA256). Set per-batch ({ url, secret }) or an org default via PUT /v1/auth/account/delivery-webhook; inspect delivery with GET /v1/batches/{batchId}/webhooks. See Webhooks.

When a field detail isn't covered here, the interactive API reference and the raw spec are the authoritative source.

Next steps