What does a batch API cost on each provider?
Half the standard price at OpenAI, Anthropic and Google, and 20% off at xAI; DeepSeek's pricing page lists no batch API, but its off-peak hours cost half. What each provider's batch guide and price page said on December 1, 2026:
| Provider | Discount | Turnaround | Per-batch limit | Results kept | Models |
|---|---|---|---|---|---|
| OpenAI Batch API | 50% | Within 24 hours; 24h is the only window | 50,000 requests, 200 MB file | 30 days by default (1 hour to 30 days) | Most models |
| Anthropic Message Batches API | 50% | Most within 1 hour; expires at 24 hours | 100,000 requests or 256 MB | 29 days | All active Claude models |
| Gemini Batch API | 50% | Target 24 hours; expires after 48 hours pending or running | Inline under 20 MB; files up to 2 GB | Not stated | A range of models; see Google's Models page |
| xAI Batch API | 20% | Most within 24 hours, best effort | Not stated | Until the batch's expires_at | grok-4.7, 4.6, 4.5, 4.3 and the grok-4.20 models |
| DeepSeek | No batch API | None | None | None | Off-peak hours cost half instead |
xAI's discount covers input, output, cached and reasoning tokens; Gemini bills batch cache hits at its standard caching rates. Read December 1, 2026.
What do the main models cost through a batch API?
Half their standard prices at OpenAI, Anthropic and Google, and 80% of them at xAI. On 1,000 calls of 10,000 tokens in and 1,000 out, batch takes GPT-6.2 Sol from $30 to $15:
| Model | Standard in / out | Batch in / out | 1,000 calls, standard | 1,000 calls, batch |
|---|---|---|---|---|
| OpenAI | ||||
| GPT-6.2 Astra | $8.00 / $40.00 | $4.00 / $20.00 | $120.00 | $60.00 |
| GPT-6.2 Sol | $2.00 / $10.00 | $1.00 / $5.00 | $30.00 | $15.00 |
| Anthropic | ||||
| Claude Fable 5.2 | $8.00 / $40.00 | $4.00 / $20.00 | $120.00 | $60.00 |
| Claude Opus 5.5 | $4.00 / $20.00 | $2.00 / $10.00 | $60.00 | $30.00 |
| Claude Sonnet 5.5 | $2.00 / $10.00 | $1.00 / $5.00 | $30.00 | $15.00 |
| Claude Haiku 5.5 (prompts up to 100K) | $0.10 / $0.50 | $0.05 / $0.25 | $1.50 | $0.75 |
| Gemini 4 Carbon | $4.00 / $20.00 | $2.00 / $10.00 | $60.00 | $30.00 |
| Gemini 4 Neon | $3.00 / $15.00 | $1.50 / $7.50 | $45.00 | $22.50 |
| Gemini 4 Hydrogen | $1.50 / $7.50 | $0.75 / $3.75 | $22.50 | $11.25 |
| Gemini 3.5 Flash-Lite | $0.30 / $2.50 | $0.15 / $1.25 | $5.50 | $2.75 |
| xAI | ||||
| grok-4.7 | $2.00 / $6.00 | $1.60 / $4.80 | $26.00 | $20.80 |
| grok-4.3 | $1.25 / $2.50 | $1.00 / $2.00 | $15.00 | $12.00 |
Per million tokens, US dollars. xAI's batch prices are its standard prices less the 20% its pricing page states; the others are each maker's listed batch prices. 1,000 calls of 10,000 tokens in and 1,000 out is 10M tokens in and 1M out.
Discounts can stack with caching: Anthropic says its prompt-caching and batch discounts stack, and OpenAI lists batch cached input at half too, $0.05 per million on GPT-6.2 Sol. Gemini bills batch cache hits at its standard caching rates.
How does the OpenAI Batch API work?
You upload a .jsonl file of requests, start a batch with the 24-hour completion window, and download an output file when it finishes, at 50% of standard prices. Each line names its endpoint and carries a unique custom_id, as in OpenAI's own example:
{"custom_id": "request-1", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-6-luna", "input": "Reply with the word blue.", "reasoning": {"effort": "none"}, "max_output_tokens": 64}}
- Endpoints: Responses, Chat Completions, Embeddings, Completions, Moderations, and image generation and edits.
- Limits: 50,000 requests and 200 MB per batch, and up to 2,000 batches an hour. Queued input tokens share a per-model Batch/Background limit, and batches don't count toward the standard per-model limits.
- Expiry: a batch that runs out of time cancels its unfinished requests, and you pay for the requests that completed.
- Results: output and error files expire after 30 days unless you choose 1 hour to 30 days; cancelling a batch takes up to 10 minutes.
Need results sooner? OpenAI's background mode prices eligible requests 30% below Standard with a 2-hour window and 40% below with an 8-hour window, on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna.
How does Anthropic's Message Batches API work for Claude?
You send up to 100,000 Messages requests or 256 MB in one batch, most batches finish within an hour, and all usage costs 50% of standard prices on every active Claude model.
- What fits: vision, tool use including server tools, system messages, multi-turn conversations and extended thinking.
- What doesn't:
stream: true, Fast mode'sspeed, server-sidefallbacksandmax_tokens: 0return a validation error. - Expiry: results arrive when every request has ended or after 24 hours, and requests that expire aren't billed.
- Results: downloadable for 29 days after the batch is created.
- Caching: cache hits in a batch are best effort; Anthropic says users typically see 30% to 98%, and suggests the 1-hour cache duration for shared context.
How does the Gemini Batch API work?
You submit inline requests under 20 MB or a JSONL file of up to 2 GB, Google aims to finish within 24 hours, and usage costs 50% of the interactive price.
- Job states: pending, running, succeeded, failed, cancelled or expired. A job pending or running for more than 48 hours expires with no results.
- Caching: context caching works in batch requests, and a cache hit pays the standard caching rate.
- Models: a range of Gemini models, with the same modalities as the interactive API; Google's Models page lists which take batch.
How does xAI's Batch API work?
You create a batch, add requests to it, and read results as each request finishes. grok-4.7, grok-4.6, grok-4.5, grok-4.3 and the grok-4.20 models cost 20% less; models not on xAI's list get no discount.
- Rate limits: batch requests don't count toward them.
- What's discounted: input, output, cached and reasoning tokens on text and language models. Image and video generation run in batches at standard rates.
- Timing: most requests finish within 24 hours, best effort and not guaranteed; results stop being available at the batch's
expires_at.
When is a batch API the wrong choice?
When someone is waiting for the answer, because a batch can take up to a day. Skip it, or use something else, when:
- A person or an agent waits on the reply. Chat, autocomplete and an agent's next step need seconds, not a 24-hour window.
- You need hours, not a day. OpenAI's background mode, 30% or 40% off with a 2-hour or 8-hour window, sits in between.
- You need streaming or Fast mode. Anthropic rejects both in a batch, and xAI's Priority Processing doesn't apply to batch requests.
- The cache does most of the saving. Batch cache hits are best effort on Anthropic, and Gemini bills them at standard caching rates.
- The model gets no discount. On xAI, unlisted models and image and video generation pay standard rates.
- You're on DeepSeek. Its pricing page lists no batch API; run the job off-peak, outside 01:00–04:00 and 06:00–10:00 UTC on weekdays, for half price.
How was this page checked?
Every discount, limit, window and price above was read on December 1, 2026 from the providers' own pages below; the xAI batch prices and the 1,000-call columns are arithmetic on those figures. We didn't run batch jobs for this page. Errors: support@winding.ai.