Batch inference
Batch inference is running a model over many inputs together as a scheduled job, rather than answering each request the moment it arrives, usually to cut cost when nobody is waiting for the answer.
Some AI work needs an answer now: a customer is waiting in a chat window. Much does not. Classifying a million support tickets, summarising last quarter's contracts or scoring a model against a test set can finish overnight without anyone noticing. Batch inference is the second kind. Google's machine learning glossary defines it as inferring predictions on many unlabelled examples split into smaller groups, or batches. The opposite is online or real-time inference, which answers each request as it comes.
Because nobody is waiting, providers can schedule batch work flexibly, and the big AI providers price it accordingly. As of December 2026, OpenAI's Batch API charges half the normal price, accepts up to 50,000 requests in one batch and promises results within 24 hours. Anthropic's Message Batches API also charges 50 percent of standard prices, takes up to 100,000 requests or 256 MB per batch, says most batches finish within an hour and expires any request not processed within 24 hours.
A typical job looks like this. A retailer wants product descriptions for 40,000 items. It writes one request per item into a file, uploads the file, and collects a results file later, matching each answer to its item by an ID. Nothing has to be fast, so the job costs half what the same calls would cost one by one. Cloud platforms offer the same pattern for any model: Amazon SageMaker, for example, has a batch transform feature that runs a model over a large stored dataset without keeping a live endpoint running.
The trade-off is time and freshness. Results computed in advance can be stale by the time they are used, and a batch cannot react to something a user types. Many systems mix the two: batch inference for bulk and background work, online inference for anything interactive.
Real-time, or online, inference answers each request immediately, which is needed for chat and other interactive uses. Batch inference collects many requests and processes them as a job, returning results minutes or hours later. Batch is cheaper and easier to schedule; real-time is faster. It depends on the provider. As of December 2026, both OpenAI's Batch API and Anthropic's Message Batches API charge 50 percent of their standard prices in exchange for asynchronous processing within a 24-hour window. Use it when nobody is waiting for the answer: bulk classification, document processing, generating content in advance, building embeddings for search, or running evaluations. If a person or another system needs a reply within seconds, use real-time inference instead. Not quite. Batching is the general technique of processing several inputs together on the hardware, which real-time servers also do to stay efficient. Batch inference is a way of offering and scheduling work as a delayed job. Both rely on the fact that chips are more efficient when handling many inputs at once.Common questions
What is the difference between batch inference and real-time inference?
How much cheaper is batch inference?
When should I use batch inference?
Is batch inference the same as batching?
Search for "batch inference", "batch API" and "offline vs online inference" alongside the name of a provider. Providers' own documentation is the place to check current discounts, limits and turnaround times, which change. Machine learning courses such as Google's explain the general trade-off between precomputing predictions and computing them on demand.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.