← All notes

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

  1. Build a list of requests, each with a custom_id and params (model, max_tokens, messages).
  2. Submit with client.beta.messages.batches.create(requests=...).
  3. 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

Sources

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

Permanent ID: iil:note:jk8b7mcn

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.},
}

Markdown

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.