# Batch processing

> Batch processing is running a large set of AI requests together as a background job rather than one at a time in real time, which suits work that can wait and is often cheaper through providers' batch services.

Also called: batch API, batch jobs, bulk processing, offline processing, asynchronous processing. Category: Models and training. Source: https://aibuildindex.com/glossary/batch-processing

## In the index

- Document data extraction: median $1,400, middle half $250 to $5,000, 423 priced briefs (https://aibuildindex.com/cost/document-data-extraction)
- Data engineering: median $4,900, middle half $1,000 to $17,040, 220 priced briefs (https://aibuildindex.com/skills/data-engineering)

Not every AI task needs an instant answer. Classifying a backlog of support tickets, summarising last month's call transcripts or extracting fields from thousands of archived documents can run overnight. Batch processing handles this kind of work in bulk, in the background. Several major model providers offer dedicated batch services that accept a file of requests, process them within a stated window and charge less than real-time calls. For buyers, it is a straightforward way to cut the running cost of large, non-urgent jobs.

## How it works

There are two common forms:

- **Provider batch APIs.** The application uploads a file containing many requests. The provider processes them when it has capacity, within a time window it states, and returns a results file. Pricing is typically discounted compared with standard requests.
- **Your own batch jobs.** The application runs through a queue of items itself, sending requests at a controlled pace, often triggered by a [scheduled job](https://aibuildindex.com/glossary/scheduled-job) and staying within [rate limits](https://aibuildindex.com/glossary/rate-limit).

A sound batch design includes:

- A record of which items have been processed, so a failed run can resume without repeating work.
- Retries for individual failures, rather than restarting everything.
- Checks on the results before they are written to other systems.
- A way to report items that could not be handled.

An e-commerce business rewriting thousands of product descriptions, for example, could submit them as a batch, review a sample of the results and then publish, instead of calling the model live for each product.

## What it means for cost

Batch processing lowers running costs for bulk work and avoids the engineering needed to handle large volumes in real time. The trade-off is delay: results arrive later, sometimes hours later, so it only fits work where nobody is waiting on the answer.

It can also shape the build. One-off migrations, such as processing a historical archive, are often a separate, bounded piece of work from the ongoing system. When briefing, say which parts of the workload are urgent and which can wait. Ask a builder whether batch pricing has been used in the running-cost estimate and how failed items are tracked.

## Common questions

### How long does a provider batch job take?

Providers state a maximum turnaround window, and many jobs finish well within it. Exact timing is not guaranteed, so batch processing should not be used for anything with a hard deadline shorter than that window.

### Can batch processing be used for a chatbot?

Not for live replies, which need immediate answers. It can support a chatbot indirectly, for example by analysing past conversations overnight or preparing summaries of documents ahead of time.

### Is the output quality different in batch mode?

No. The same model produces the same kind of output; only the scheduling and pricing differ.

## Related terms

- [Inference](https://aibuildindex.com/glossary/inference): Inference is the stage where a trained AI model is used to produce outputs, such as answers, classifications or images, from new inputs, as opposed to training, where the model learns from data.
- [Rate limit](https://aibuildindex.com/glossary/rate-limit): A rate limit is a cap set by a service on how many requests, or how much data, an application can send in a given period, which AI and software providers use to share capacity and protect their systems.
- [Token pricing](https://aibuildindex.com/glossary/token-pricing): Token pricing is the usage-based billing model most AI model providers use, charging per number of tokens sent to and generated by the model, usually with separate rates for input and output and different rates for each model.
- [Scheduled job (cron)](https://aibuildindex.com/glossary/scheduled-job): A scheduled job is a task that a system runs automatically at set times or intervals, such as every hour or each weekday at six, often defined with a cron expression; it is the simplest way to start an automation without a person.
- [Data pipeline](https://aibuildindex.com/glossary/data-pipeline): A data pipeline is an automated series of steps that moves data from one or more sources to a destination, transforming, checking and enriching it along the way, on a schedule or as new data arrives.
