← all articles

Batch APIs and the discount for waiting: how async LLM pricing actually works

The trade you’re actually making

Every major LLM provider now sells you the same deal: send us your requests as a batch instead of one at a time, wait up to 24 hours instead of getting an answer in two seconds, and we’ll cut the price roughly in half. OpenAI’s Batch API does this. Anthropic’s Message Batches API does this. Google’s Gemini Batch API does this. The number moves a little between providers and over time, but “about half off” has been the stable shape of the offer since these programs launched, and it’s worth understanding why that specific trade exists instead of just treating it as a coupon code.

The short version: you’re not buying cheaper tokens. You’re selling back your claim on immediate compute. Inference providers run enormous GPU fleets sized for peak demand, the traffic spike when everyone in US business hours is hitting the API at once. Outside that peak, a lot of that capacity sits idle. Batch jobs get slotted into the gaps. You give up the guarantee of an instant response, and in exchange the provider gives you a discount for letting them schedule your work whenever it’s convenient for them, not you.

How the mechanics actually work

The pattern is close to identical across providers, which tells you it’s converging on the same underlying constraint rather than three companies independently deciding to copy each other’s UX.

You build a file, usually JSONL, where each line is a normal API request with a custom_id attached so you can match responses back to inputs later. You upload that file and kick off a batch job. The provider queues it and works through the requests using spare capacity. You poll a status endpoint, or in some cases get a webhook, until the job reports as completed, failed, or partially completed. Then you download an output file and stitch the responses back to your original records using those custom IDs.

That file-based, poll-for-completion shape is the tell. It’s a fundamentally different request pattern: no streaming, no conversational back and forth, no function-calling loop where the model’s output changes what you ask next. You have to know your full request in advance, submit it, and walk away. If your workload needs the model’s answer to decide the next question, batch can’t help you, because there’s no “next question” until the first one comes back, and that could be hours from now.

What actually qualifies

The jobs that fit batch pricing well share one property: nobody is staring at a screen waiting for the answer.

That covers more of a typical LLM bill than you’d expect if you’re only thinking about chat products. Nightly summarization of a day’s support tickets. Backfilling embeddings for a document corpus you’re about to index into a RAG pipeline. Running an eval suite against a new prompt version across a few thousand test cases. Classifying or tagging a big pile of logs. Translating a catalog. Generating first-draft content for a queue that a human reviews the next morning. Any offline data pipeline where an LLM call is one step in a batch ETL job you were already running asynchronously.

What doesn’t qualify is anything user-facing in real time: your chat assistant, your customer support bot, your coding assistant’s inline completions, anything where a person is sitting there waiting on the response. Batch pricing doesn’t apply to that traffic and there’s no clever architecture trick that makes it apply, because the whole discount is contingent on the provider being free to delay your job by hours.

The turnaround window is a ceiling, not a promise

The window providers advertise, commonly 24 hours, is the outer bound they commit to, not a target they’re optimizing for. Jobs frequently finish well inside that window when the fleet has spare capacity, and they can also run right up against the edge during heavy demand periods. If you build a pipeline that assumes batch jobs come back in, say, 20 minutes because that’s what you observed in testing, you will eventually get burned on a day when the provider’s peak traffic pushes your job toward the full 24 hours. Design the pipeline around the SLA you were actually given, not the latency you happened to see last Tuesday.

This is also why batch is a poor fit for anything with a hard deadline measured in minutes. If a report absolutely has to be on someone’s desk at 9am and the batch job doesn’t start until 8:45, you’ve built yourself a pager alert. Batch buys you a cost discount, not a delivery guarantee tighter than what the provider states.

Handling partial failures

A batch is a set of independent requests, and providers don’t guarantee all of them succeed together. Individual lines in your job can fail for the same reasons a normal API call fails: malformed input, content policy rejections, a request that exceeds a token limit. The output file will typically mark those lines as errored while the rest of the batch completes normally. Your code needs to expect that a batch job can come back “completed” while still containing a subset of failures, and you need a path for retrying just those failed lines rather than assuming success or resubmitting the whole batch. This is the same discipline you’d want for any bulk import job, it’s just easy to forget when you’re used to synchronous API calls where a single request either succeeds or throws.

The part that doesn’t get discussed enough: rate limits are separate

Batch endpoints generally sit on their own quota, distinct from your standard per-minute rate limit on the synchronous API. That’s good news if you’re worried a huge batch job will eat into the rate limit your production chat traffic depends on, it usually won’t. But it also means you can’t assume your existing rate-limit handling code, the backoff and retry logic you wrote for the interactive API, transfers cleanly to batch. Check what queue and concurrent-job limits apply to batch specifically before you assume a job of a given size will even get accepted.

Where the discount doesn’t help you

If your monthly bill is dominated by a live product, batch pricing does nothing for you directly. What it’s good for is the stuff running alongside that product: the evals you run before shipping a prompt change, the periodic reprocessing of your knowledge base, the offline analysis you run on usage logs. Teams that treat those as “just call the regular API” are paying full synchronous price for work that has zero real-time requirement. Auditing your own usage for which calls are actually offline, and routing only those through batch, is the whole exercise. It’s a category you have to keep sorting new workloads into as your pipeline grows.

If you’re building anything that touches an LLM API on a schedule rather than on a click, it’s worth checking whether your provider’s batch endpoint covers it before your next bill arrives.

Want more breakdowns like this on what AI tools actually cost and how they actually work? Check out more from AI Tool Gazette here.

for builders
Running agents or scrapers at scale?

AI pipelines that crawl, research, or automate the web hit rate limits and geo-blocks fast. Singapore Mobile Proxy runs real 4G/5G mobile IPs that carriers still trust.

see plans →
read on
More from the Gazette

Tool reviews, model and pricing news, and build guides for people shipping real things with AI.

browse all articles →