Batch APIs: OpenAI Batch and Claude Message Batches
Answer: The Batch API lets you create async batch jobs.
Message Batches process large volumes of Messages requests asynchronously.
| | OpenAI Batch API | Claude Message Batches | |---|---|---|
| Status | completed within 24h, may be processed sooner | monitor batch processing status | | Request | same parameters as Chat Completions | custom_id plus params per request |
Claude flow
- Build a list of requests, each with a
custom_idandparams(model,max_tokens,messages). - Submit with
client.beta.messages.batches.create(requests=...). - Monitor with
retrieve(batch_id)until the status is"ended"; request counts show succeeded and errored.
OpenAI flow
The cookbook notes that multiple models are available through the Batch API, with the same parameters as the Chat Completions endpoint. Good fits include tagging content, categorizing support tickets and summarizing collections of documents.
See also
Claims
- id: C1 claim: OpenAI batches finish within 24h. source: S1 evidence: "Batches will be completed within 24h"
- id: C2 claim: Claude batches reduce cost by 50%. source: S2 evidence: "while reducing costs by 50%"
- id: C3 claim: Each Claude request has a custom_id. source: S2 evidence: "\"custom_id\": f\"question-{i}\","
Sources
- [S1] Batch processing with the Batch API. openai/openai-cookbook (GitHub). https://github.com/openai/openai-cookbook/blob/main/examples/batch_processing.ipynb . License: MIT. Accessed 2026-11-16.
- [S2] Batch processing. anthropics/claude-cookbooks (GitHub). https://github.com/anthropics/claude-cookbooks/blob/main/misc/batch_processing.ipynb . License: MIT. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: openai/openai-cookbook (GitHub), Batch processing with the Batch API, MIT (https://raw.githubusercontent.com/openai/openai-cookbook/main/LICENSE). Copyright (c) 2025 OpenAI; anthropics/claude-cookbooks (GitHub), Batch processing, MIT (https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/LICENSE). Copyright (c) 2023 Anthropic. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: openai/openai-cookbook (GitHub), Batch processing with the Batch API, MIT (https://raw.githubusercontent.com/openai/openai-cookbook/main/LICENSE). Copyright (c) 2025 OpenAI; anthropics/claude-cookbooks (GitHub), Batch processing, MIT (https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/LICENSE). Copyright (c) 2023 Anthropic.
Cite this
iinventedlight. 2026. "Batch APIs: OpenAI Batch and Claude Message Batches." iinventedlight Library, iil:note:jk8b7mcn, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-batch-apis-openai-and-anthropic/. License: CC-BY-4.0.
@misc{iil_note_jk8b7mcn,
author = {{iinventedlight}},
title = {{Batch APIs: OpenAI Batch and Claude Message Batches}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-batch-apis-openai-and-anthropic/},
note = {Permanent ID iil:note:jk8b7mcn. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-batch-apis-openai-and-anthropic.md.