OpenAI Batch API and Anthropic batches: pricing and limits

How the OpenAI Batch API and Anthropic Message Batches work, what they cost, which jobs fit, and how to charge batch cost to each customer.

Brandon Holt
November 28, 2026
9
min read
Summarize
OpenAI Batch API and Anthropic batches: pricing and limits

The OpenAI Batch API and Anthropic's Message Batches API both charge 50% of standard prices if you can wait up to 24 hours for results. You upload a file of requests (up to 50,000 on OpenAI, 100,000 on Anthropic), check back for completion, and match each result to its request by custom_id. Anthropic says most batches finish within an hour.

Prices checked on November 28, 2026, from OpenAI's pricing page and Anthropic's pricing page.

Batching is the easiest discount in AI after caching, because the model and the answers stay the same and only the timing changes. It sits next to caching and model choice in our guide to cutting LLM costs.

How the OpenAI Batch API and Anthropic Message Batches work

Both APIs follow the same loop. You build a list of ordinary API requests, each with a custom_id you choose, and submit them as one job. The provider runs them when it has spare capacity, and you download a results file once the job ends. Results come back in any order, so the custom_id is the only reliable way to join an answer to its request.

On OpenAI you upload a JSONL file through the Files API, then create a batch that points at it with a 24-hour completion window, the only window on offer. On Anthropic you send the requests straight to the Message Batches endpoint, and each request carries the same parameters as a normal Messages call. The details differ more than the loop does:

OpenAI Batch APIAnthropic Message Batches
Discount50% on input and output50% on input and output
TurnaroundWithin 24 hours, often soonerMost batches under 1 hour, 24-hour limit
Size limit per batch50,000 requests or a 200 MB file100,000 requests or 256 MB
Models per batchOne model per input fileMix request types in one batch
EndpointsResponses, Chat Completions, Embeddings, Completions, Moderations, ImagesMessages (tools, vision, extended thinking included)
Rate limitsSeparate pool; counts queued input tokens per modelLimits on HTTP calls and on requests waiting in the queue
Results kept30 days by default (1 hour to 30 days, your choice)29 days from creation
Unfinished at 24 hoursCancelled; you pay for the completed requestsExpired; expired, errored and canceled requests are free

Source: OpenAI's Batch API guide and Anthropic's batch processing docs, checked November 28, 2026.

A few parameters fail inside an Anthropic batch: stream: true (results arrive as one file), Fast mode and server-side fallbacks. Anthropic also warns that high concurrency can push a batch slightly past the spend limit you set on the workspace, so leave headroom there.

What batch API pricing looks like per model

Batch pricing is half of each model's standard rate, for input and output alike. Both providers list the batch rates on their pricing pages, so you can read the numbers directly:

ModelStandard inputStandard outputBatch inputBatch output
GPT-6.2 Astra$8.00$40.00$4.00$20.00
GPT-6.2 Sol$2.00$10.00$1.00$5.00
GPT-6 Luna$0.10$0.50$0.05$0.25
Claude Opus 5.5$4.00$20.00$2.00$10.00
Claude Sonnet 5.5$2.00$10.00$1.00$5.00
Claude Haiku 5.5 (prompts up to 100K tokens)$0.10$0.50$0.05$0.25

Source: OpenAI and Anthropic pricing pages, USD per million tokens, checked November 28, 2026. OpenAI rates are for prompts up to 272K tokens.

OpenAI also sells a middle option. Background mode in the Responses API takes a completion window of 2 hours (30% below Standard) or 8 hours (40% below Standard), in public beta on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna. Those requests share the batch rate limit pool. Pick it when a result can wait an hour or two but a full day is too long, or when each request is a multi-step agent run that a batch file can't express.

Do batch discounts stack with prompt caching?

Yes, on both providers. Anthropic's pricing page says the cache multipliers stack with the Batch API discount, and the batch docs say both discounts apply when you use the two together. On Claude Sonnet 5.5 a cache read costs $0.10 per million tokens at standard rates, so inside a batch it costs $0.05. OpenAI's pricing page lists a batch cached-input rate for each model, also half the standard one ($0.05 on GPT-6.2 Sol).

batch cache read = base input x cache read multiplier x 0.5

Claude Sonnet 5.5: $2.00 x 0.05 x 0.5 = $0.05 per million tokens
Claude Sonnet 5.5, 1-hour cache write: $2.00 x 2 x 0.5 = $2.00 per million tokens

Hits inside a batch are less reliable than in live traffic. Anthropic runs batch requests concurrently and provides cache hits on a best-effort basis, with typical hit rates between 30% and 98% depending on traffic. Anthropic recommends the 1-hour cache lifetime for batches with shared context, since a batch can run longer than the 5-minute default, and identical cache_control blocks in every request. OpenAI's Batch guide says nothing about cache behavior inside batches, so measure the cached tokens in your results before you count on them. For how cache writes and reads work, see Claude prompt caching.

Which workloads fit the Batch API, and which don't

A workload fits when nobody is waiting on the answer and each request stands on its own. These are the common ones:

  • Evals. Running a test set of 5,000 prompts against a new model or prompt version. Both providers name evaluations as a use case.
  • Backfills. Re-tagging, re-summarizing or re-embedding historical records after you change a prompt or a schema. OpenAI accepts embeddings in batches, capped at 50,000 embedding inputs per batch.
  • Nightly summaries. Daily digests, account health notes and weekly reports that a user reads the next morning.
  • Classification and moderation. Labeling support tickets, reviews or uploaded content in bulk, where a few hours of delay changes nothing.

Keep these on the synchronous API:

  • Anything a user waits on. Chat, autocomplete and in-app generation need seconds, and a batch can take up to a day.
  • Chained steps. An agent whose next call depends on the last answer would wait on each turn. OpenAI's background mode covers that shape better.
  • Hard deadlines inside 24 hours. Anthropic warns that heavy demand can slow processing, and more requests can expire. If a report must land by 9 a.m., submit early or run the stragglers live.
  • Small volumes. Halving a $20 monthly bill saves $10, which won't pay for the queueing, polling and retry code.

Example: nightly digests on a $49 plan

Example. A project tool on a flat $49 workspace plan writes each user a nightly digest with Claude Sonnet 5.5. Each digest reads 24,000 tokens of the day's activity and writes 1,500 tokens. At standard rates that costs $0.048 of input and $0.015 of output, or $0.063 per digest. Through Message Batches the same digest costs $0.0315.

Northwind has 6 users and gets 180 digests a month. Birchline has 40 users on the same $49 plan and gets 1,200.

Customer, per monthDigestsStandard costBatch costLeft of $49, StandardLeft of $49, Batch
Northwind (6 users)180$11.34$5.67$37.66$43.33
Birchline (40 users)1,200$75.60$37.80−$26.60$11.20
Birchline on Claude Haiku 5.51,200$3.78$1.89$45.22$47.11

Example data. 24,000 input and 1,500 output tokens per digest, 30 nights a month, Claude prices from Anthropic's pricing page. GPT-6.2 Sol has the same $2 and $10 rates, so the Sonnet rows match it to the cent.

$37.80
Birchline's monthly saving from batching alone, enough to turn a loss into a profit

Batching moves Birchline from $26.60 underwater to $11.20 ahead with no change to the digest. Northwind looks fine either way, which is why a blended average across both customers would hide the problem. The Haiku row shows the bigger lever: if a smaller model writes an acceptable digest, it cuts cost by 95%, and batching halves what's left.

Lancelot sees this per customer by joining each customer's AI cost to what they pay in Stripe, so Birchline shows up as underwater before the month closes. It then acts within limits you set, such as a cheaper model you approved in advance or a hold at the plan's normal daily spend, and each action starts as a suggestion you can undo (Margin intelligence).

How to attribute batch cost to customers

A batch bills as one job, so per-customer cost only exists if you carry the customer through the job yourself. Four steps cover it:

  1. Put the customer and feature in the custom_id. Anthropic allows 1 to 64 letters, digits, hyphens and underscores, so an ID like cus_8f2k-digest-20261127 fits. Use your internal customer ID and keep emails out of it.
  2. Read usage from every result line. Each succeeded result carries the same usage object as a live response, with input, output and cache tokens.
  3. Price the tokens at batch rates. Multiply by the batch price for that model, cache reads included. Pricing batch tokens at standard rates doubles the customer's apparent cost.
  4. Charge only what the provider charges. Anthropic bills nothing for errored, canceled or expired requests. OpenAI bills the completed requests in an expired batch and writes the rest to the error file with the code batch_expired.

Record each cost on the day its results arrive, then add it to the customer's live usage for the month. To check your totals against the provider, OpenAI's Completions Usage API accepts a batch filter, so you can pull batch tokens apart from live ones (OpenAI's usage API example). For the full per-call method on OpenAI, see OpenAI API cost.

Questions about the OpenAI and Anthropic batch APIs

How much does the OpenAI Batch API save?

The OpenAI Batch API costs 50% less than synchronous calls on both input and output tokens. GPT-6.2 Sol drops from $2 to $1 per million input tokens and from $10 to $5 per million output tokens. The trade is a completion window of up to 24 hours.

How long does a batch take to finish?

Up to 24 hours on both providers, and usually much less. Anthropic says most Message Batches finish within an hour, and OpenAI says batches often finish sooner than the 24-hour window. Heavy demand can slow either one, so leave slack before any deadline.

What are the Anthropic Message Batches limits?

A Message Batch holds up to 100,000 requests or 256 MB, whichever comes first. Results stay available for 29 days after you create the batch, and requests still unprocessed at 24 hours expire. OpenAI's limit is 50,000 requests or a 200 MB file per batch.

Can I use prompt caching with the Batch API?

Yes. Anthropic stacks the cache multipliers on top of the 50% batch discount, so a Sonnet 5.5 cache read costs $0.05 per million tokens in a batch. Hits are best-effort, typically 30% to 98%. OpenAI lists half-price batch cached-input rates for each model.

What happens if a batch doesn't finish in 24 hours?

The unfinished requests stop. Anthropic marks them expired and doesn't bill them. OpenAI cancels them, charges for the requests that completed, and lists the rest in the error file with the code batch_expired so you can resubmit them by custom_id.

Does the Batch API count against my rate limits?

OpenAI runs batch jobs outside your standard per-model limits, in a separate pool that counts queued input tokens. Anthropic limits both the HTTP requests you make to the Batches API and the number of batch requests waiting to be processed.

Which models support batch processing?

All active Claude models support Message Batches, according to Anthropic's docs. On OpenAI most models support the Batch API, and each input file can target only one model. Check OpenAI's model reference for any model you plan to batch.

Batching, caching and model routing work on different parts of the same bill, and the savings multiply when you combine them. Our guide to cutting LLM costs covers each one for products that resell AI.

Keep reading

All dispatches →
Are AI companies profitable? What the reported margins show
AI unit economics
/
9
min read

Are AI companies profitable? What the reported margins show

Input vs output tokens: what each costs and why output is 5x
Running AI in production
/
9
min read

Input vs output tokens: what each costs and why output is 5x

Semantic caching: how it works, what it saves, where it fails
Running AI in production
/
9
min read

Semantic caching: how it works, what it saves, where it fails

OpenAI Batch API and Anthropic batches: pricing and limits
Running AI in production
/
9
min read

OpenAI Batch API and Anthropic batches: pricing and limits

Get the numbers when they change.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
New dispatches and model price changes. Unsubscribe anytime.