Berk Bayri

Batch inference

Running many model requests together as one asynchronous job instead of one at a time in real time. Results arrive within minutes to 24 hours rather than seconds, and providers such as Anthropic charge half the normal price for it.

Most AI work a company runs does not need an answer in two seconds. Classifying last month's support tickets, tagging a product catalog, scoring a backlog of contracts or running an evaluation set overnight can all wait. Batch inference is the option for that work: send thousands of requests as one job, let the provider work through them asynchronously, and collect the results later.

The price difference is large enough to change a business case. Anthropic, for example, charges batch requests at 50 percent of standard API prices. A batch can hold up to 100,000 requests or 256 MB, most finish within an hour, and any request not finished within 24 hours expires without being billed. Results stay available for 29 days. The batch discount can also stack with prompt caching when many requests share the same long instructions. Other providers offer batch modes too; check their current terms before building a cost model on them.

Batch processing

Anthropic · 2026-11-28

The question to ask of every workload

The default in most teams is to call the real-time API for everything, because that is how the prototype was built. A better habit is to sort workloads by how long the result can wait. Anything a person is not waiting on, such as reports, enrichment, back-office classification and test runs, is a candidate for batch. That sorting alone can cut the inference bill substantially without touching the model or the prompt.

Where it does not fit

Batch is the wrong choice when a customer or an employee is waiting, when one result decides the next request, as in most agent loops, or when the 24-hour window would miss a deadline. Batch jobs also fail differently: a malformed request may only surface when results come back, so the pipeline needs to check each result rather than assume the job succeeded because it finished. Counting cost per accepted outcome, not per request, keeps those failures visible.