LLM Batch Processing Costs: Beyond the 50% Discount

LLM Batch Processing Costs: Beyond the 50% Discount

Why does a job that costs $1,000 in real time suddenly cost $500 when you’re willing to wait a day? That’s the promise behind every major provider’s batch tier, and it’s the reason batch processing has become the default route for bulk classification, data labeling, and offline evaluation. But the sticker discount is only part of the story. The real cost of LLM batch processing depends on token volume, failure rates, engineering overhead, and how cleverly you combine batch with other pricing levers. This article walks through where the savings come from, where they quietly leak away, and how to build a cost model that survives contact with production. (Choosing between batch and real-time inference)

What the batch discount actually is

Every large provider now offers an asynchronous tier priced at roughly half the standard rate. OpenAI’s Batch API, launched in 2024, discounts both input and output tokens by 50% compared with synchronous pricing, with results typically returned within 24 hours. Anthropic’s Message Batches API, introduced later the same year, advertises the same 50% cut on both token directions, with most batches finishing in under an hour and a hard ceiling of 24 hours. Google’s Gemini batch mode, available through Vertex AI and AI Studio, follows the same pattern: half price for asynchronous requests, with a target turnaround of up to a day.

That consistency is not a coincidence. It reflects a shared operating reality: batch work can be scheduled onto spare capacity, away from the latency-sensitive infrastructure that serves chat and interactive traffic. Providers rarely publish the underlying cost model, so treat the “spare capacity” explanation as a reasonable inference rather than documented fact. What matters for your budget is simpler: the discount applies to tokens, so the savings scale directly with volume.

Provider tier Input discount Output discount Typical turnaround
Standard synchronous None None Seconds
OpenAI Batch API ~50% ~50% Up to 24 hours
Anthropic Message Batches ~50% ~50% Usually under an hour, max 24 hours
Gemini batch mode ~50% ~50% Up to 24 hours

Two caveats before you build a spreadsheet around this table. First, pricing changes often, so every figure needs an “as of” date attached. Second, provider documentation is the only reliable source for current rates. If you want the mechanics of how these requests are submitted and retrieved, the official batch processing documentation for your provider explains the request format, completion windows, and result retrieval in detail.

Why token volume drives everything

Why token volume drives everything

LLM billing is per token, with input and output priced separately. That single design choice explains most of the economics of batch work. A bulk classification job that sends 40 million input tokens and receives 2 million output tokens is dominated by input cost, so an input-side discount matters far more than an output-side one. A summarization job with long outputs flips the ratio. Before optimizing anything, split your projected spend into input and output columns and see which one you’re actually paying for.

This is also why batch savings compound with volume in a way that surprises teams. Doubling the dataset doubles the absolute savings, not just the percentage. A 50% discount on a $200 monthly job is a rounding error; the same discount on a $20,000 job pays for a hire. The teams that get real value from batch are the ones with genuinely large offline workloads, not the ones running a few hundred requests a week.

There’s a second lever that stacks with batch on many providers: prompt caching, which discounts repeated input prefixes. Anthropic has offered it since 2024, and OpenAI followed the same year. When your batch job reuses a long system prompt or a shared document across thousands of requests, caching can cut the input cost further. Stacking rules differ by provider and by model, so verify the combination on the current docs page rather than assuming the discounts multiply cleanly.

The hidden costs nobody puts on the pricing page

The 50% figure describes tokens. Your invoice describes tokens plus everything around them, and the “everything around” is where batch budgets go to die.

Orchestration engineering. Batch jobs need submission, polling, retry logic, and result storage. Someone has to write and maintain that. On a small team, a week of engineering time can exceed the entire annual token savings for a modest workload. The break-even point is real and worth calculating before you celebrate the discount.

Failure handling. Batches fail in partial and annoying ways: individual requests error out, outputs get truncated, or a job completes with a subset of results. Re-running failed requests costs tokens again, and if you re-run the whole batch out of caution, you can erase the discount entirely. Design for partial success from day one.

Result storage and processing. Batch outputs arrive as files, often large ones. Storing, parsing, validating, and loading them into your warehouse is real infrastructure with real line items attached.

Delayed feedback loops. A 24-hour turnaround means a broken prompt costs you a day before you notice. Teams that iterate quickly on prompt design often burn more in wasted batch runs than they save, at least in the early weeks.

None of these costs are imaginary or unusual. They’re just invisible on a pricing page, which is why cost reviews that only look at the invoice miss them. A cost model that engineers actually trust has to include the human and infrastructure side, not just tokens. The same discipline applies to transfer and infrastructure spend more broadly, as this guide to tracking cloud data transfer costs shows: the line item is never the whole story.

Batch versus real time: a decision framework

The core trade-off is latency for money. Batch suits offline work; interactive applications need synchronous calls. That sounds obvious, but plenty of teams pay for real-time inference on jobs nobody is waiting for.

Workload Latency need Batch appropriate?
Bulk document classification Hours Yes
Offline evaluation and benchmarking Hours to days Yes
Data labeling and enrichment Hours Yes
Nightly report generation Hours Yes
Chat or agent responses Seconds No
Live moderation Sub-second No

The middle ground is where it gets interesting. Some workloads can tolerate minutes but not a day. For those, the choice between batch and real-time inference is really a question of how much the delay costs compared with the discount, and the answer changes as volumes grow. A useful rule of thumb: if a human is waiting on the output, pay full price; if a pipeline is waiting, batch it.

Combining batch with model selection

The batch discount is multiplicative with model choice, and model choice usually moves the number more. A smaller model at batch rates can cost a fraction of a larger model at full rates. The temptation is to batch everything on the cheapest model and call it optimization. The better approach is to route by task difficulty: send easy requests to a small model in batch, reserve the expensive model for the hard tail, and measure quality on a held-out set before committing.

This is where batch economics and evaluation discipline meet. Running a large offline evaluation in batch is cheap enough that teams can afford to test routing strategies properly rather than guessing. If you’re weighing synchronous versus asynchronous evaluation runs, this comparison of batch and real-time inference for evaluation workloads is a useful starting point.

Practical tips that actually work in production

After the theory, the field notes. These are the patterns that consistently separate teams with controlled batch costs from teams with surprise invoices.

  • Estimate before you submit. Count tokens on a sample, multiply by your full dataset size, and compare the projection against the actual invoice after the first run. Calibrate the estimate, then trust it.

  • Cap batch size. Very large batches are harder to retry and slower to debug. Medium-sized batches with idempotent request IDs are easier to manage and cheaper to recover from.

  • Log every request and response with its ID. When a batch partially fails, you need to know exactly what to resubmit without paying twice.

  • Separate the prompt from the payload. Long shared instructions belong in a cached prefix, not repeated in every request.

  • Run a small pilot batch first. Fifty requests will reveal format problems that a 50,000-request run will charge you to discover.

  • Tag jobs by project. Without tagging, batch spend becomes an undifferentiated blob that nobody can attribute or defend in a review.

That last point matters more than it sounds. Cost visibility is a social problem as much as a technical one. Reviews that present engineers with a wall of invoice lines get ignored; reviews that show which job drove which cost get acted on. The principles behind making cloud cost reviews useful to engineers apply directly here: attribute spend to owners, show trends, and tie each number to a decision someone can make.

Where the numbers go wrong

Three modeling mistakes show up again and again.

The first is treating the discount as a flat 50% saving on the whole bill. It’s 50% on tokens only, and only on the portion of your workload you actually move to batch. If batch handles 60% of your tokens, your blended saving is closer to 30%.

The second is ignoring retries. A 5% request failure rate that triggers a full re-run turns a 50% discount into a 42% one. Add a second re-run and the math gets ugly fast.

The third is forgetting that prices fall. LLM pricing has dropped repeatedly since 2023, which means a cost model built on last year’s rates overstates today’s spend and understates future savings. Date every assumption. A model without dates is a guess wearing a suit.

Conclusion

The 50% batch discount is real, widely available, and genuinely worth having. But it’s a discount on tokens, not on the total cost of getting work done. The teams that win at LLM batch processing costs are the ones that count tokens carefully, budget for orchestration and retries honestly, combine batch with caching and smart model routing, and keep their assumptions dated. Start with a small pilot, measure the full cost including engineering time, and scale only when the numbers hold. The discount is the easy part; the discipline around it is what actually shows up on the invoice.

Frequently asked questions

How much cheaper is batch processing than real-time inference?

Across the major providers, batch tiers price input and output tokens at roughly half the standard synchronous rate. That 50% figure has held since batch APIs launched in 2024, but rates change, so confirm the current number on your provider’s documentation before you build a budget around it.

Why do providers offer a discount for batch requests?

The usual explanation is that batch work can be scheduled onto spare capacity and kept away from latency-sensitive infrastructure. Providers rarely publish their internal cost model, so treat this as a reasonable inference rather than a documented fact. The practical effect is the same: you trade waiting time for a lower token price.

Can I combine batch pricing with prompt caching?

Often yes, but the stacking rules differ by provider and by model. Prompt caching discounts repeated input prefixes, and batch discounts the token rate, so the two can compound on workloads with long shared instructions. Check the current documentation for your specific provider and model before assuming the discounts multiply.

What workloads should not use batch processing?

Anything where a human is waiting on the output: chat interfaces, live agents, real-time moderation, and interactive tools. The 24-hour completion window makes batch unsuitable for latency-sensitive work. If a person is watching a spinner, pay full price.

What hidden costs should I budget for beyond tokens?

Orchestration engineering, retry logic, result storage and parsing, and the cost of delayed feedback when a prompt turns out to be wrong. These rarely appear on pricing pages, and on smaller workloads they can exceed the token savings entirely. Estimate them before committing to a batch migration.

How do I estimate batch costs before running a job?

Tokenize a representative sample, measure input and output tokens per request, multiply by your dataset size, then apply the batch rate. Run a small pilot batch and compare the projection against the actual invoice. Calibrate once, and your estimates will be close enough to plan around.

Latest articles

Scroll to Top