mysi Find

Brief in AI engineering

LLM batch API rules

States each model vendor's batch completion window, size limits, result retention and what cannot be batched.

All three vendors aim at 24 hours. Anthropic and OpenAI expire an unfinished batch after 24 hours; Google after 48 hours. One batch holds 100,000 requests or 256 MB (Anthropic), 50,000 requests or 200 MB (OpenAI), or a 2 GB input file (Google).

Facts

  • Anthropic results kept: 29 days after the batch was created [1].
  • OpenAI results kept: output and error files expire 30 days after file creation by default [3].
  • OpenAI results kept: output_expires_after sets 1 hour to 30 days [3].
  • Google results kept: a job expired after 48 hours has no results to retrieve [4].
  • Anthropic cannot batch: stream: true, speed (fast mode) and fallbacks; each returns a validation error [1].
  • Anthropic cannot batch: max_tokens: 0 (cache pre-warming) [1].
  • OpenAI cannot batch: the model omni-moderation-csam-latest [3].
  • Google cannot batch: Gemini Decision 1 [5].
  • Google cannot batch: Genie 4 [5].
  • Anthropic models: all active models support Message Batches [1].
  • Anthropic long output: the output-300k-2026-03-24 beta header raises max_tokens to 300,000 tokens in batches; the normal limit is 128,000 tokens [1].
  • OpenAI endpoints: /v1/responses, /v1/chat/completions, /v1/embeddings, /v1/completions, /v1/moderations, /v1/images/generations, /v1/images/edits [3].
  • Google embeddings: batched through batches.create_embeddings [4].
  • Google caching: works in a batch through cached_content on each request [4].
  • Anthropic too large: a batch over 256 MB can return 413 request_too_large [1].
  • Anthropic queue: batch requests waiting in the processing queue are capped, for example 200,000 at the Start tier [2].
  • Anthropic rate limits: batch limits are shared across all models [2].
  • Anthropic ramp limits: the Message Batches API is not subject to them [2].
  • OpenAI batches per hour: at most 2,000 batches can be created [3].
  • OpenAI output tokens: Batch has no output-token limit [3].
  • OpenAI rate limits: Batch does not count toward standard per-model limits [3].
  • OpenAI queued input tokens: counted per model at submission [3].
  • Google concurrent batch requests: 100 [5].
  • Google file storage: 20 GB [5].
  • Google enqueued tokens: capped per model across all active batch jobs [5].
  • Google inline requests: total size under 20 MB [4].
  • Anthropic cancel: the batch ends with status ended and may hold partial results [1].
  • Anthropic billing: expired, canceled and errored requests are not billed [1].
  • OpenAI cancel: status cancelling lasts up to 10 minutes, then cancelled [3].
  • Google create: creating a batch job is not idempotent; sending the same request twice makes two jobs [4].

Use it for

  • Choosing a vendor or splitting a job by request count, file size and the 24-hour or 48-hour cutoff.
  • Knowing how long results can be downloaded after a batch ends.
  • Checking whether streaming, fast mode, fallbacks, a model or an endpoint can run in a batch.
  • It cannot tell batch prices or discounts; those live in data/llm-models.
  • It cannot predict actual completion time, which depends on load.

Sources

Tested

Tested 4 Dec 2026: claude-haiku-5-5 stated 4 of its 30 facts without this page and 30 with it; claude-fable-5-2 stated 9 of its 30 facts without this page and 30 with it.

Changes

Cite as: mysi, LLM batch API rules, mysi.dev/llm-batch-api-rules, version 1, changed 2026-12-04. Text and data CC BY 4.0.