Explain why batch embedding APIs cost ~50% less, and when that discount actually matters
OpenAI's batch embedding API and similar offerings from other vendors discount embedding cost by ~50% in exchange for a relaxed (e.g. 24-hour) latency SLA. Explain the underlying economic reason and identify the workloads where the discount matters vs where it's irrelevant.
Batch embedding APIs discount ~50% because relaxed-latency jobs let providers fill idle GPU capacity, and the savings only matter for backfill-style workloads where 24-hour turnaround is acceptable.
Imagine a pizza shop with two prices. If you want a pizza in twenty minutes during the Friday night rush, you pay full price because the kitchen has to drop everything for you. If you say I just need five hundred pizzas sometime tomorrow, do them whenever, the shop slots your order into the slow Tuesday afternoon shift and charges you half. The big cooking ovens behind the counter work the same way for any bulk service. The overnight lane tells the kitchen do these orders whenever you would otherwise be standing around, and they pass the savings back to you. You only benefit if your work can actually wait. Converting an entire backlog of old documents into searchable fingerprints fits perfectly. A search box that needs an answer in two hundred milliseconds does not.
Detailed answer & concept explanation~7 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.
8 minutes: idle-capacity economics, dual-path architecture, when the discount stops helping at petabyte scale, and migration patterns.
| Dimension | Synchronous API | Batch API |
|---|---|---|
| Latency SLA | milliseconds to seconds | up to 24 hours |
| Price | list price | ~50% of list |
| Best for | live query, realtime ingest | corpus backfill, migration, eval |
| Failure handling | retry inline | job-level retry, async callback |
| Concurrency cap | rate limits per minute | job-size cap, concurrent jobs cap |
Real products, models, and research that use this idea.
- OpenAI Batch API offers 50% off on text-embedding-3-small and text-embedding-3-large with a 24-hour SLA, the canonical reference for this pricing model.
- Voyage AI offers a similar batch discount on voyage-3 and voyage-code-3 for bulk re-indexing workloads.
- Cohere embed-v4 supports batch ingestion through their async endpoint for RAG corpus backfills.
- Anthropic Message Batches API uses the same idle capacity smoothing economics for non-embedding LLM calls, showing the pattern is fleet-wide.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you design the cache key for an embedding pipeline that uses both batch and sync APIs?
QWhat is the breakeven point where renting GPUs and running BGE-M3 in-house beats the batch API discount?
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.
Assuming the discount applies to every embedding call and discovering at scale that latency-sensitive query traffic is blocking on a 24-hour SLA.
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.