Pick the workload where a provider's Batch API beats the realtime endpoint
Batch APIs trade ~50% cost discount for a 24-hour SLA, so only latency-tolerant offline workloads qualify; nightly evaluation runs are the canonical fit, latency-bound chat or tool workflows are disqualified outright.
Picture a printing service with two counters. The express counter prints your document in minutes but costs double. The economy counter prints it for half the price but does not promise it until tomorrow. You pick based on whether you need it today or whether you just need it eventually. Anything a user is actively waiting on must go through the express counter. Anything you queue up overnight should go through the economy counter to save money. Provider Batch APIs are that economy counter for LLM calls. The model and the quality are identical; the only difference is when you get your answer back.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: same model and quality + 50 percent discount + 24-hour SLA + latency tolerance is the only discriminator + option A is the trap + B fits because no human waits per row + canonical workload list for Batch.
| Endpoint | Latency | Cost | Best for |
|---|---|---|---|
| Realtime | Sub-second to a few seconds | Full input and output rates | Chat, autocomplete, voice agents, tool calling, any human or tool waiting |
| Batch | Up to 24-hour SLA | Roughly 50 percent off input and output rates | Eval runs, dataset labeling, batch summarization, nightly enrichment, synthetic data |
Real products, models, and research that use this idea.
- OpenAI's /v1/batches endpoint serves GPT-5.5 with a 50 percent discount for nightly evaluation runs and dataset labeling pipelines.
- Anthropic's Message Batches API serves Claude Opus 4.7 and Sonnet 4.6 with similar 50 percent off pricing for offline workloads.
- Google Gemini 3.1 Pro offers batch processing for large-scale enrichment jobs at discounted rates.
- Machine-learning teams routinely move LLM-as-judge eval runs to Batch APIs to cut quarterly compute spend without affecting model quality.
- Synthetic data generation pipelines for fine-tuning Llama 4 Scout often use Batch APIs since latency per generation is irrelevant.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you operationally split a workload into realtime and Batch tiers?
QWhy do providers offer a 50 percent discount on Batch rather than a smaller one?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking the Batch API for a workload that has a human or tool waiting on the response. The cost savings are real but irrelevant when the latency budget is sub-second.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.