Batch API
OpenAI Batch API / Message Batches API / batch processing for AI
A batch API lets software send a large group of AI model requests to be processed together within a set window, instead of waiting for each answer. OpenAI and Anthropic both charge half the normal price for batched requests, in exchange for results that can take up to 24 hours.
OpenAI's Batch API takes a file of requests and completes each batch within 24 hours, often sooner, at 50% lower cost. It also draws on a separate pool of significantly higher rate limits. For now the completion window can only be set to 24 hours.
Anthropic's Message Batches API works the same way at the same discount. A batch can hold up to 100,000 requests or 256 MB, whichever comes first. Most batches finish in less than an hour, a batch that has not finished within 24 hours expires, and results stay available for 29 days.
The trade is speed for price. Anything a customer is waiting on, such as a reply in a website chat, needs the normal request and response. Work nobody watches happen, such as summarizing yesterday's call transcripts or tagging a backlog of leads, can wait for a batch.
In practice
A clinic's software writes a summary of every recorded call overnight. Sent as ordinary requests, the nightly run costs $40 in model fees. Sent as a batch, the same run costs $20, and the summaries are normally ready well before the office opens. The figures are a worked example.
Why it matters to you
In custom software that uses AI behind the scenes, the model bill is a running cost that lasts as long as the system does. Moving work that can wait into a batch halves that part of the bill at both providers. The design question is which jobs need an answer in seconds and which can wait hours.
What to ask or check
- 01Which AI tasks in this system need an answer while someone waits, and which could run as a batch?
- 02Does the running cost estimate assume batch pricing for the jobs that can wait?
- 03What happens to work in a batch that expires before it finishes?
What people get wrong
That a batch is the same service with a discount. Batched requests trade speed for price: OpenAI completes each batch within 24 hours, and an Anthropic batch that has not finished within 24 hours expires.