Claude’s Message Batches API cuts the per-token price in half and lets you submit up to 100,000 requests at once, in exchange for giving up an immediate response: results land within an hour in most cases, but the API only guarantees them within 24 hours, and nothing about it is built for a request that a user is actively waiting on. That trade makes it a good fit for evaluations, bulk classification, and large content-generation runs, and a poor fit for anything in a live request path.
What the Message Batches API is actually for
The Message Batches API is Anthropic’s asynchronous alternative to the regular Messages endpoint. Instead of sending one request and waiting on one response, you submit a batch of requests together and poll for the whole set to finish. Anthropic’s own documentation points at four situations where this pattern fits: processing large volumes of data, cases where an immediate response isn’t required, optimizing for cost rather than speed, and running large-scale evaluations or analyses. Running a prompt-regression suite against a few thousand test cases, re-classifying a backlog of support tickets, or generating first-draft product descriptions for an entire catalog all fall squarely into that description — none of them have a person refreshing a page waiting on the output.
It’s worth being precise about what the API does and doesn’t change. It doesn’t make the model smarter, give it a larger context window, or change how prompt caching behaves within a single request. It changes the economics and the delivery mechanism for work you were already going to send the model — which is also why it pairs well with an eval pipeline: the same benchmark or custom eval run that would be expensive and slow to fire off as thousands of sequential synchronous calls becomes both cheaper and easier to fire-and-forget as a single batch submission.
The discount, by model
Anthropic’s documentation states the batch discount plainly: processing through the Message Batches API costs 50 percent less than the standard synchronous price, for the same model and the same tokens. The batch rates themselves, per million tokens (MTok), as currently published:
| Model | Batch input | Batch output |
|---|---|---|
| Claude Opus 4.5 | $2.50 / MTok | $12.50 / MTok |
| Claude Opus 4.1 | $7.50 / MTok | $37.50 / MTok |
| Claude Opus 4 | $7.50 / MTok | $37.50 / MTok |
| Claude Sonnet 5 | $1.00 / MTok | $5.00 / MTok |
| Claude Sonnet 4.6 | $1.50 / MTok | $7.50 / MTok |
| Claude Sonnet 4.5 | $1.50 / MTok | $7.50 / MTok |
| Claude Sonnet 4 | $1.50 / MTok | $7.50 / MTok |
| Claude Haiku 4.5 | $0.50 / MTok | $2.50 / MTok |
Since these are already the discounted batch rates, the synchronous price for the same model is roughly double each figure above. Always check the current pricing page before budgeting a large run — Anthropic has changed per-model pricing before, most recently with the Sonnet 5 release, and a batch job large enough to matter is also large enough for a stale number to matter.
A worked cost example
The discount is easiest to see applied to a concrete, hypothetical workload rather than left as an abstract percentage. Say a team needs to re-classify 500,000 archived support tickets by severity, with a prompt averaging around 300 input tokens per ticket and a short 50-token output label, using Claude Haiku 4.5. That’s 150 million input tokens and 25 million output tokens in total.
- At the batch rate above ($0.50 / $2.50 per MTok): 150 × $0.50 + 25 × $2.50 = $75 + $62.50 = $137.50.
- At roughly double that for the standard synchronous rate: 150 × $1.00 + 25 × $5.00 = $150 + $125 = $275.
Same model, same tokens, same output — the only variable is which endpoint processed the request. At this volume the math is straightforward, but it’s worth running for your own token counts rather than assuming a flat “half price” covers every case: a workload with unusually long outputs relative to input, for instance, saves more in absolute terms on the output side, since output tokens are priced several times higher than input tokens for every model in the table.
The limits that matter once you’re actually running a batch
- A single Message Batch tops out at 100,000 requests or 256 MB, whichever limit is hit first — large catalogs or test suites may need to be split across several batches.
- Most batches finish inside an hour, but the API’s only hard guarantee is 24 hours; a batch that hasn’t completed by then expires, and you build retry logic around the 24-hour case, not the typical one.
- Results stay downloadable for 29 days after the batch is created. After that window, the batch record itself is still visible, but you can no longer pull its results.
- Batches are scoped to a Workspace in the Claude Console, and rate limits apply both to the Batches API’s own HTTP requests and to how many queued requests within a batch can be processed at once — a batch doesn’t bypass your account’s rate limits, it just spreads them out asynchronously instead of forcing you to throttle synchronous calls yourself.
A minimal batch request
Each request inside a batch needs a custom_id you choose (1-64 characters, letters, numbers, hyphens and underscores only) so you can match a result back to the request that produced it, plus a params object shaped exactly like a normal Messages API call:
POST /v1/messages/batches
{
"requests": [
{
"custom_id": "ticket-10432",
"params": {
"model": "claude-sonnet-5",
"max_tokens": 512,
"messages": [
{"role": "user", "content": "Classify this support ticket by severity..."}
]
}
},
{
"custom_id": "ticket-10433",
"params": {
"model": "claude-sonnet-5",
"max_tokens": 512,
"messages": [
{"role": "user", "content": "Classify this support ticket by severity..."}
]
}
}
]
}
That’s two requests batched together, each with its own custom_id and its own full set of Messages API parameters. If the downstream pipeline consuming the results expects a fixed shape rather than free-form prose, it’s worth pairing a batch job with one of the structured output modes rather than parsing loosely-formatted text out of 500,000 individual responses after the fact — a malformed field is far cheaper to catch per-request than to discover once an entire batch has already finished. The API validates each request’s params asynchronously — malformed parameters on request #41,000 don’t fail the whole submission up front, they surface as an error against that one custom_id once processing finishes, which is also why it’s worth sending a handful of the same requests through the regular synchronous Messages endpoint first, the way you’d test a prompt-caching breakpoint before committing it to a production job.
Polling status and reading the results
A freshly created batch comes back with a processing_status of in_progress and a request_counts object that updates as results come in:
{
"id": "msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d",
"type": "message_batch",
"processing_status": "in_progress",
"request_counts": {
"processing": 2,
"succeeded": 0,
"errored": 0,
"canceled": 0,
"expired": 0
},
"ended_at": null,
"created_at": "2026-11-18T18:37:24.100Z"
}
Poll the batch’s status endpoint (with a sane backoff — there’s no reason to check every second) until processing_status flips to ended, then fetch the results file, which is a line-delimited JSON file matching each custom_id to its result. Treat errored and expired counts as expected, not exceptional: at a few hundred thousand requests, some fraction failing validation or timing out is normal, and your downstream pipeline should handle a missing or errored custom_id the same way it handles a 404 response from any other API, not as a reason to fail the whole run.
How it compares to OpenAI’s Batch API
OpenAI’s Batch API lands in a similar place: a 50 percent cost reduction against the synchronous price, and a completion window measured in hours rather than seconds. The two differ in how they handle load — OpenAI documents a token limit on the processing queue that’s tracked separately from your account’s per-minute rate limits, so a very large batch mainly competes with your other queued batch jobs rather than with your live traffic. Anthropic’s equivalent constraint is the 100,000-request/256 MB per-batch cap plus the Workspace-level rate limits described above. Neither vendor’s batch endpoint is a drop-in replacement for the other’s SDK, so a multi-provider pipeline, the kind compared in a broader rate limit and pricing comparison across major AI APIs, still needs a thin adapter layer per provider even once both are running asynchronously.
When batch processing is the wrong tool
Skip it for anything a user is waiting on in real time — a chat interface, a support widget, an API your own customers call synchronously. Skip it, too, for multi-step agentic work where each tool call depends on the result of the last one: batch requests are independent and don’t support a conversation that branches based on an intermediate response, so an agent loop that calls a tool, inspects the result, and decides what to ask next doesn’t map onto a batch submission. And treat the 24-hour ceiling as a real constraint, not a formality — if a workflow has any step that assumes same-day results, build in a fallback path for the (expected, documented) case where a batch runs the full 24 hours before expiring, rather than finding out about that edge case the first time it happens in production.



