Serving
Batch APIs & provisioned throughput
Discounted asynchronous processing for work that can wait; reserved capacity for work that can’t.
What it is and why it exists
Batch APIs accept a file of requests and return results within a window (often 24 h) at a substantial discount — ideal for evals, backfills, document processing and embeddings. Provisioned or reserved throughput buys guaranteed capacity for steady, latency-sensitive traffic.
Quick prototype
Loop over 50,000 documents with the real-time API.
In production, at scale
Route non-urgent work to batch, track batch jobs as long-running jobs, and buy provisioned capacity only when steady load and rate-limit headroom justify it.
Vendors and tools
| OpenAI Batch API / Anthropic Message Batches / Gemini batch mode | Discounted async processing |
|---|---|
| Provisioned throughput offerings | Reserved capacity |
On AWS: Bedrock batch inference; Bedrock provisioned throughput.
How it fails
- Paying real-time prices for a nightly backfill
What the interviewer asks next
What would you send to a batch API?
Anything with no user waiting: re-embedding a corpus, offline evals, bulk classification, generating synthetic data, nightly summaries.