Key takeaways
- As of 5 November 2026, OpenAI, Anthropic, Gemini and Mistral all charge half price for batch requests.
- One batch holds 50,000 requests on OpenAI, 100,000 on Anthropic and up to 1 million on Mistral.
- Cache discounts stack with batch pricing on Anthropic and OpenAI, though Anthropic calls batch cache hits best-effort.
- In our 100,000-ticket example, cached real-time calls on Claude Haiku 5.5 cost $9.50, uncached batch $13.75.
- OpenAI, Anthropic and Mistral all exclude batch jobs from zero data retention.
As of 5 November 2026, OpenAI, Anthropic, Google’s Gemini API and Mistral all sell batch API access at half the standard per-token price. The differences are in the limits around that discount. One batch holds 50,000 requests on OpenAI, 100,000 on Anthropic and up to 1 million on Mistral, and Gemini takes an input file of up to 2 GB. Prompt-cache discounts apply on top of the batch price on Anthropic and OpenAI. OpenAI, Anthropic and Mistral all exclude batch jobs from zero data retention.
Batch suits work that nobody is waiting on, such as evaluation suites and backfills that classify or embed existing records. You submit the requests as one batch and collect the answers when the provider finishes, which can take a day.
This post compares the four providers in one table, prices a 100,000-request job at standard and batch rates, and covers the engineering that makes a batch pipeline safe to rerun. It ends with a rule for choosing between batch, flex tiers and real-time calls. Amazon Bedrock and Google Cloud get a shorter look.
Batch API limits, windows and retention compared
The table draws on each provider’s batch guide and its pricing, rate-limit and data-retention pages, as of 5 November 2026. Queue caps vary by tier and model, so it gives one model’s range as an example.
| OpenAI | Anthropic | Gemini API | Mistral | |
|---|---|---|---|---|
| Discount | 50% | 50% | 50% | 50% |
| Completion window | 24 hours, the only option | 24 hours; most finish within an hour, says Anthropic | 24-hour target; expires after 48 hours | timeout_hours, default 24, under 7 days |
| One batch | 50,000 requests, 200 MB file, one model | 100,000 requests or 256 MB | 2 GB file or 20 MB inline, one model | 1M requests (under 10,000 inline), one model |
| Queue cap | Queued input tokens per model: GPT-6 Luna 20M (Build tier) to 15B (Grow) | 200,000 to 500,000 queued requests, by tier | Enqueued tokens per model: 3.5 Flash-Lite 10M (Tier 1) to 1B (Tier 3) | 1M pending requests per workspace |
| Endpoints | Responses, Chat Completions, embeddings, completions, moderations, image generation and edits | Messages | generateContent, embeddings | Chat, FIM, embeddings, moderation, OCR, classification, conversations, transcription |
| Tools, images, structured outputs | Same body as the endpoint; Structured Outputs supported | All three, including server tools | All three; same modalities as real time | Same body as the endpoint; structured outputs supported |
| Cache discount on top | Yes, batch rates for cached input and cache writes | Yes; cache hits best-effort | Pricing page says yes; batch guide says standard cache rates | Not documented |
| Completion signal | Webhooks or polling | Polling | Webhooks (preview) or polling | Polling |
| Results kept | Output file deleted after 30 days by default, settable from 1 hour | 29 days from creation | Not stated; Files API keeps uploads 48 hours | No expiry at present |
| Cancellation | Takes up to 10 minutes | Ends with partial results | Stops new requests | Cancellation requested, then cancelled |
| Unfinished at the deadline | Cancelled; completed requests returned and billed | Marked expired; no charge |
No results to retrieve | Not documented |
| Zero data retention | Not eligible | Not eligible | Not mentioned; 55-day abuse-monitoring logs | Excluded |
Sources: OpenAI,12345 Anthropic,678 Google910111213 and Mistral.141516
On Anthropic, 24 hours is when unfinished requests expire, and the statement that most batches finish within an hour comes with no guarantee. Gemini’s batch guide treats 24 hours as a target but expires a job only after 48 hours of pending or running, with no results returned. Every queue in the table is separate from the provider’s real-time rate limits, so a large batch leaves your live traffic’s limits alone.
LLM batch inference on Amazon Bedrock and Google Cloud
Bedrock reads batch input as JSONL from S3 and writes results back there. Google Cloud documents batch inference for Gemini under its Gemini Enterprise Agent Platform, where the old Vertex AI batch URLs now lead, and reads input from Cloud Storage or BigQuery.
| Amazon Bedrock | Google Cloud, batch inference for Gemini | |
|---|---|---|
| Discount | 50% on select models | 50% |
| Time limit | Job timeout of 24 to 168 hours, default 24 | Up to 72 hours queued, then 24 hours running |
| One job | Set per model; Claude Haiku 4.5: 100 to 100,000 records, 1 GB per file, 5 GB per job | 200,000 requests; 1 GB file from Cloud Storage |
| Cache discount on top | Not covered here | Gemini 3 and later: 95% off cached input; Gemini 2.5: no stacking |
| Failures | An error object replaces modelOutput on failed records; counts in manifest.json.out |
Billed only for completed requests; a resume job reruns only unfinished ones |
| Other limits | Converse-format jobs can’t use tool calling; EventBridge reports state changes | No Provisioned Throughput, explicit caching or RAG; not covered by an SLA |
Sources: Amazon Bedrock171819202122 and Google Cloud.2324
On Google Cloud, a new job pointed at the output of a failed, cancelled or expired job processes only the unfinished requests and merges the results, a step you build yourself on the four direct APIs.24
What works inside a batch request
OpenAI’s JSONL lines carry the same body you would send to the endpoint, one model per file, and OpenAI lists the Batch API among the APIs that support Structured Outputs.125
Anthropic’s Message Batches API accepts almost any Messages request, including images, thinking and tool use with every server tool, and one batch can mix request types.6 Structured outputs work,26 but a batch request can’t set stream: true, fast mode’s speed, server-side fallbacks or max_tokens: 0. Anthropic throttles web search inside batches per organisation, so very large web-search batches can take longer. A beta header, output-300k-2026-03-24, raises max_tokens to 300,000 on several models, only inside batches.
Gemini’s Batch API works only with generateContent, and Google’s old batch-mode URLs now redirect to its page. Requests can carry system instructions, tools such as Google Search and structured output, with the same input modalities as real-time calls.9
Mistral takes batches for chat, fill-in-the-middle, embeddings, moderation, OCR, classification, conversations and transcription, and its docs show structured outputs in a batch line.14
Prompt caching inside a batch: when the discounts stack
Anthropic’s pricing page says its caching multipliers stack with the batch discount, so a Claude Haiku 5.5 cache read costs $0.005 per million tokens in a batch against $0.01 in real time.8 Because batch requests run concurrently and in any order, Anthropic treats cache hits as best-effort and says users typically see hit rates of 30% to 98%.6 Its caching FAQ suggests sending a one-request batch that writes the shared prefix to the 1-hour cache and submitting the rest once that batch completes, with identical cache_control blocks in every request.276
OpenAI’s price list halves cached-input and cache-write rates in batches as well. On GPT-6 Luna a batch cache read costs $0.005 per million tokens and a 30-minute write $0.0625, for prefixes of at least 1,024 tokens.428 OpenAI doesn’t publish batch hit rates.
Google’s pages disagree with each other. The Gemini pricing page lists batch cached input at half the real-time cached price, $0.0375 against $0.075 per million tokens on Gemini 3.8 Flash, while the batch guide says cache hits pay the standard context caching rates.119 Implicit caching needs at least 4,096 input tokens on Gemini 4 Argon, 3.8 Flash, 3.6 Flash and 3.1 Pro.29 Google Cloud states that the two discounts stack to 95% off cached input on Gemini 3 and later, and don’t stack on Gemini 2.5.23 Mistral bills cached tokens at 10% of the input price and doesn’t say whether that applies to batches.30
Our prompt caching comparison covers cache placement and lifetimes for real-time traffic.
What 100,000 classification requests cost at standard and batch prices
The job is a backfill that sorts 100,000 support tickets into categories. These are our assumptions, and nothing was measured:
- Each request sends a shared 2,000-token prefix of instructions, category definitions and examples, plus 500 tokens of ticket text. That is 250M input tokens, 200M of them the shared prefix.
- Each answer is a 50-token JSON object, 5M output tokens in all.
- No reasoning tokens, so GPT-6 Luna runs at
reasoning.effort: "none"and Claude Haiku 5.5 with thinking disabled, which it accepts at efforthighor below.331 Models that think first bill those tokens as output. - Token counts are held equal across models, although tokenizers differ.
Counting tokens in millions, GPT-6 Luna costs 250 × $0.10 + 5 × $0.50 = $27.50 at standard prices and 250 × $0.05 + 5 × $0.25 = $13.75 in a batch.
| Model | Standard price per 1M tokens (in / out) | Job at standard prices | Job at batch prices |
|---|---|---|---|
| GPT-6 Luna | $0.10 / $0.50 | $27.50 | $13.75 |
| Claude Haiku 5.5 | $0.10 / $0.50 | $27.50 | $13.75 |
| Mistral Small 4 | $0.15 / $0.60 | $40.50 | $20.25 |
| Gemini 3.5 Flash-Lite | $0.30 / $2.50 | $87.50 | $43.75 |
| Gemini 3.8 Flash | $0.75 / $3.75 | $206.25 | $103.13 |
| GPT-6.1 Terra | $1.00 / $5.00 | $275.00 | $137.50 |
Prices as of 5 November 2026, with batch at each provider’s documented 50% off.481132 Gemini 3.8 Flash’s prices double on 1 January 2027, which would put the batch run at $206.25.
The shared prefix is 80% of the input, so caching can move the bill as much as batching does. On Claude Haiku 5.5 in a batch, a cache read costs $0.005 per million tokens, a 5-minute cache write $0.0625 and a 1-hour write $0.10, and every request that misses writes the prefix again. At a 30% hit rate with 1-hour writes, the prefix costs 60 × $0.005 + 140 × $0.10 = $14.30, and the job $14.30 + $2.50 for ticket text + $1.25 for output = $18.05.
| Claude Haiku 5.5, 100,000 requests | Shared prefix | Whole job |
|---|---|---|
| Real time, no caching | $20.00 | $27.50 |
| Batch, no caching | $10.00 | $13.75 |
| Batch, 5-minute cache, 98% of requests hit | $1.23 | $4.98 |
| Batch, 5-minute cache, 30% hit | $9.05 | $12.80 |
| Batch, 1-hour cache, 98% hit | $1.38 | $5.13 |
| Batch, 1-hour cache, 30% hit | $14.30 | $18.05 |
| Real time, cache warm for almost every request | $2.00 | $9.50 |
With a write price w, a read price r and a batch input price b, caching pays once the share of hits passes (w − b) ÷ (w − r). That is 0.05 ÷ 0.095, or 53%, for 1-hour writes and 0.0125 ÷ 0.0575, or 22%, for 5-minute writes. At Anthropic’s low figure of 30%, the 1-hour cache costs $4.30 more than no caching. A real-time run that keeps its cache warm also beats an uncached batch, $9.50 against $13.75.
Before committing the whole job, run a first chunk, sum cache_read_input_tokens and cache_creation_input_tokens from its results, and pick the cache setting from what you see.27 GPT-6 Luna’s batch cache prices match the 5-minute rows, so equal hit rates would give equal totals. Gemini 3.8 Flash gives this job no implicit cache hits, because each request is 2,500 tokens and the minimum is 4,096.
Splitting a large job to fit each provider’s caps
A job may need splitting for two reasons. One batch has a size cap, and the queue limits how much work can wait at once.
Every line of a batch file repeats the whole prompt. If each request takes about 10 KB as JSON, an assumption that depends on your text, the 100,000 lines come to about 1 GB. That needs at least five OpenAI files at the 200 MB cap and four Anthropic batches at 256 MB, but only one Gemini file. Mistral publishes no size cap. On models that still support explicit caching, a Gemini batch request can reference a cache by name instead of repeating the prefix.9
Queue caps matter most on low tiers. GPT-6 Luna allows 20M queued input tokens at OpenAI’s Build tier, so only 8,000 of these 2,500-token requests can wait at once, against 400,000 at the Launch tier’s 1 billion.3 Gemini 3.5 Flash-Lite allows 10M enqueued tokens at Tier 1, which is 4,000 requests, and Gemini 3.8 Flash 3M, which is 1,200.10 Anthropic counts requests and allows 200,000 in the queue at its Start tier.7
At GPT-6 Luna’s Build tier, real time may finish first. Its limit of 2M tokens per minute moves 250M input tokens in about 125 minutes, while the batch route needs 13 rounds of 8,000 requests, each allowed up to 24 hours.3
Results only arrive when a batch ends, so smaller batches return partial results sooner, and Google suggests splitting large jobs for that reason.9 Google Cloud warns from the other side that jobs under 1,000 requests spend most of their run time on fixed overhead.23 Gemini’s API reference also lists an optional priority field on a batch, with higher values processed first.33
Failures, expiry and cancellation
OpenAI writes failed requests to a separate error file. When a batch reaches the end of its 24 hours, OpenAI cancels the unfinished requests, returns and bills the completed ones, and lists the rest in the error file with the code batch_expired.1
Anthropic marks each request succeeded, errored, canceled or expired, and doesn’t bill the last three.6 Validation runs asynchronously, so a malformed request only shows up as errored once the whole batch has ended. Anthropic suggests testing each request shape against the real-time Messages API first.
Gemini reports per-request failures as status objects in the output file and counts them in batchStats.933 A Gemini job still pending or running after 48 hours returns nothing, so a stuck job loses its finished work too.
Mistral makes results available only once the whole batch is complete, and its docs don’t say what a job that hits its timeout returns.14
Request IDs, polling and retries
Every API matches results to requests by an ID you choose. OpenAI, Anthropic and Mistral call it custom_id, Gemini’s file lines use key, and Bedrock uses recordId. OpenAI, Anthropic and Bedrock all state that results can come back in a different order from the input, so join on the ID and ignore line order.1619
Build the ID from the item’s ID and the prompt version, so the same work always gets the same ID. Anthropic allows 1 to 64 letters, digits, hyphens and underscores, so hash anything that doesn’t fit. A sketch, written for this post:
import hashlib
import re
def custom_id(item_id: str, prompt_version: str) -> str:
"""The same item and prompt version always get the same ID."""
cid = f"{item_id}-{prompt_version}"
if re.fullmatch(r"[A-Za-z0-9_-]{1,64}", cid):
return cid
return "h-" + hashlib.sha256(cid.encode()).hexdigest()[:40]
def usable(line: dict, valid) -> bool:
"""One line of Anthropic batch results; valid() checks the answer text."""
result = line["result"]
if result["type"] != "succeeded": # errored, canceled or expired
return False
msg = result["message"]
text = "".join(block.get("text", "") for block in msg["content"])
return msg["stop_reason"] != "max_tokens" and valid(text)
def to_resubmit(submitted: set[str], lines: list[dict], valid) -> set[str]:
done = {line["custom_id"] for line in lines if usable(line, valid)}
return submitted - done
The set difference catches missing lines, errors, expiries and cancellations in one step, along with answers that succeeded but were cut off or failed your schema check. A request that failed validation will fail again until you change it, while expired requests and server errors can go back as they are.
Record each batch with its job name and chunk number before you create it, and store the returned batch ID straight after. Gemini warns that creating a batch isn’t idempotent, so the same create request sent twice gives two jobs.9 Bedrock accepts a clientRequestToken so a create call runs only once.18 OpenAI and Mistral take metadata on a batch, which lets a restarted worker find its own batches before creating another.214
OpenAI and Gemini can send a webhook when a batch finishes. OpenAI sends batch.completed, batch.failed, batch.expired and batch.cancelled events, retries a failed delivery for up to 72 hours and occasionally sends duplicates.34 Gemini’s webhooks are in preview, use batch.succeeded for success, retry for 24 hours and deliver at least once.35 Both say to deduplicate on the webhook-id header. Anthropic and Mistral document polling only, and Bedrock reports state changes through Amazon EventBridge.17 Keep a slow poll running alongside webhooks, because a delivery that fails past its retry window never arrives.
Anthropic and Mistral both say a batch can run slightly past a workspace’s spend limit, so give batch jobs their own workspace or project with its own cap.614 The pre-flight cost estimate and per-job ledger from our backfill bill post apply to batch jobs unchanged.
Batch, flex or real time: a decision rule
Flex tiers and off-peak pricing also discount work that can wait. OpenAI’s Flex processing, in beta on a limited set of models, charges batch rates on ordinary Responses and Chat Completions calls, answers more slowly and returns an unbilled 429 error when capacity runs out.36 Gemini’s Flex tier, in preview, takes 50% off synchronous calls with a latency target of 1 to 15 minutes, counts against your normal rate limits and never falls back to the standard tier by itself.37 DeepSeek halves its prices outside peak hours, which are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays.38 Anthropic and Mistral document no flex tier.3940
This is the order in which we would decide:
- If a person or a dependent step needs the answer within minutes, use real time. A batch can take a day or longer.
- If calls depend on each other, as in an agent loop, and minutes of delay are acceptable, use a flex tier on OpenAI or Gemini, or DeepSeek’s off-peak hours. Batch would add a full round trip to every step.
- If you have thousands of independent requests that can wait until tomorrow, use batch. It costs the same as flex and has its own rate-limit pool, so the job can’t crowd out live traffic.
- Before choosing batch for throughput, compare its queue cap at your tier with the real-time token limit. At GPT-6 Luna’s Build tier, real time finishes our example first.
- If most of each prompt is a shared prefix, price the cached real-time route as well. In our example it beat uncached batch, $9.50 against $13.75.
- If the data must not be retained, rule out batch on OpenAI, Anthropic and Mistral, whose batch jobs sit outside zero data retention.
- If a job may need more than 24 hours, Mistral accepts a timeout below 7 days and Bedrock one of up to 168 hours.
How we checked these numbers
We read every source below on 5 November 2026 and haven’t run these batch APIs for this post. Prices, limits and hit rates are the providers’ published figures. The cost example is our arithmetic from list prices under the stated assumptions, and it leaves out reasoning tokens, taxes, regional surcharges and tool fees.
Google’s documentation contradicts itself in two places. The batch guide says jobs expire after 48 hours while the webhook page says 24,35 and the pricing page and batch guide price cached input in batches differently. OpenAI’s API reference also lists /v1/videos as a batch endpoint, which its batch guide doesn’t.2
-
OpenAI, “Batch API”, OpenAI API docs, read 5 November 2026, https://developers.openai.com/api/docs/guides/batch ↩↩↩↩
-
OpenAI, “Batches”, API reference, read 5 November 2026, https://developers.openai.com/api/reference/resources/batches ↩↩↩
-
OpenAI, “GPT-6 Luna”, model page with rate limits and batch queue limits, read 5 November 2026, https://developers.openai.com/api/docs/models/gpt-6-luna ↩↩↩↩
-
OpenAI, “Pricing”, Standard, Batch and Flex tables, read 5 November 2026, https://developers.openai.com/api/docs/pricing ↩↩↩
-
OpenAI, “Data controls in the OpenAI platform”, read 5 November 2026, https://developers.openai.com/api/docs/guides/your-data ↩
-
Anthropic, “Batch processing”, Claude API docs, read 5 November 2026, https://platform.claude.com/docs/en/build-with-claude/batch-processing ↩↩↩↩↩↩↩
-
Anthropic, “Rate limits”, Message Batches API section, read 5 November 2026, https://platform.claude.com/docs/en/api/rate-limits ↩↩
-
Anthropic, “Pricing”, read 5 November 2026, https://platform.claude.com/docs/en/about-claude/pricing ↩↩↩
-
Google, “Batch API”, Gemini API docs, read 5 November 2026, https://aistudio.google.com/docs/batch-api ↩↩↩↩↩↩↩
-
Google, “Rate limits”, Batch API section, read 5 November 2026, https://aistudio.google.com/docs/rate-limits ↩↩
-
Google, “Gemini Developer API pricing”, read 5 November 2026, https://aistudio.google.com/docs/pricing ↩↩↩
-
Google, “Files API”, read 5 November 2026, https://aistudio.google.com/docs/files ↩
-
Google, “Abuse monitoring”, read 5 November 2026, https://aistudio.google.com/docs/usage-policies ↩
-
Mistral AI, “Batch Processing”, read 5 November 2026, https://docs.mistral.ai/inference/batch-processing ↩↩↩↩↩
-
Mistral AI, “Quickstart: run a batch job”, read 5 November 2026, https://docs.mistral.ai/inference/quickstarts/run-a-batch-job ↩
-
Mistral AI, “Zero data retention”, read 5 November 2026, https://docs.mistral.ai/admin/monitor-comply/zero-data-retention ↩
-
Amazon Web Services, “Process multiple prompts with batch inference”, Amazon Bedrock User Guide, read 5 November 2026, https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html ↩↩
-
Amazon Web Services, “Create a batch inference job”, read 5 November 2026, https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-create.html ↩↩
-
Amazon Web Services, “Format and upload your batch inference data”, read 5 November 2026, https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html ↩↩
-
Amazon Web Services, “View the results of a batch inference job”, read 5 November 2026, https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-results.html ↩
-
Amazon Web Services, “Amazon Bedrock endpoints and quotas”, read 5 November 2026, https://docs.aws.amazon.com/general/latest/gr/bedrock.html ↩
-
Amazon Web Services, “Amazon Bedrock pricing”, read 5 November 2026, https://aws.amazon.com/bedrock/pricing/ ↩
-
Google Cloud, “Batch inference with Gemini”, Gemini Enterprise Agent Platform docs, last updated 4 November 2026, https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/batch-inference ↩↩↩
-
Google Cloud, “Resume an incomplete batch inference job”, last updated 4 November 2026, https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/batch-inference/resume-job ↩↩
-
OpenAI, “Structured Outputs”, read 5 November 2026, https://developers.openai.com/api/docs/guides/structured-outputs ↩
-
Anthropic, “Structured outputs”, feature compatibility, read 5 November 2026, https://platform.claude.com/docs/en/build-with-claude/structured-outputs ↩
-
Anthropic, “Prompt caching”, read 5 November 2026, https://platform.claude.com/docs/en/build-with-claude/prompt-caching ↩↩
-
OpenAI, “Prompt caching”, read 5 November 2026, https://developers.openai.com/api/docs/guides/prompt-caching ↩
-
Google, “Context caching”, read 5 November 2026, https://aistudio.google.com/docs/caching ↩
-
Mistral AI, “Prompt caching”, read 5 November 2026, https://docs.mistral.ai/inference/conversations/advanced/prompt-caching ↩
-
Anthropic, “Thinking”, read 5 November 2026, https://platform.claude.com/docs/en/build-with-claude/thinking ↩
-
Mistral AI, “API pricing”, read 5 November 2026, https://docs.mistral.ai/inference/pricing ↩
-
Google, “Batch API” reference, read 5 November 2026, https://aistudio.google.com/api-reference/batch-api ↩↩
-
OpenAI, “Webhooks” guide and “Webhooks events” reference, read 5 November 2026, https://developers.openai.com/api/docs/guides/webhooks and https://developers.openai.com/api/reference/resources/webhooks ↩
-
Google, “Webhooks”, Gemini API docs, read 5 November 2026, https://aistudio.google.com/docs/webhooks ↩↩
-
OpenAI, “Flex processing”, read 5 November 2026, https://developers.openai.com/api/docs/guides/flex-processing ↩
-
Google, “Flex inference”, read 5 November 2026, https://aistudio.google.com/docs/flex-inference ↩
-
DeepSeek, “Models & Pricing”, read 5 November 2026, https://api-docs.deepseek.com/quick_start/pricing ↩
-
Anthropic, “Service tiers”, read 5 November 2026, https://platform.claude.com/docs/en/api/service-tiers ↩
-
Mistral AI, “Priority Tier”, service tier comparison, read 5 November 2026, https://docs.mistral.ai/inference/priority-tier ↩
Frequently asked questions
How much does the OpenAI Batch API cost?
Half the standard price, as of 5 November 2026. GPT-6 Luna costs $0.05 per million input tokens and $0.25 per million output tokens in a batch, against $0.10 and $0.50 in real time, and cached input costs $0.005. Flex processing is billed at the same rates.
How long does an Anthropic message batch take?
Up to 24 hours. Anthropic says most batches finish within an hour, and any request still unprocessed after 24 hours expires and isn’t billed. Results stay available for 29 days after the batch is created.
What is Gemini batch mode?
It is Google’s Batch API for the Gemini generateContent API, and the old batch-mode URLs now redirect to it. It costs 50% of the standard price, targets a 24-hour turnaround, takes inline requests up to 20 MB or a JSONL file up to 2 GB, and has its own rate limits. Google’s batch guide says jobs still pending or running after 48 hours expire without results.
Does prompt caching work with batch APIs?
On Anthropic and OpenAI, yes, and the cache discount applies on top of the batch price. Anthropic calls batch cache hits best-effort and reports typical hit rates of 30% to 98%. Google Cloud stacks the two discounts on Gemini 3 and later models, the Gemini API’s own pages disagree about the batch cache price, and Mistral’s docs don’t say.
Can I use zero data retention with a batch API?
Not on OpenAI, Anthropic or Mistral, which all exclude batch jobs from zero data retention. Google’s Gemini API docs don’t mention zero data retention, and Google keeps prompts and outputs for 55 days for abuse monitoring.
Should I use batch or flex processing?
Use batch for many independent requests that can wait up to a day, since it also gives you a separate rate-limit pool. Use flex, on OpenAI or Gemini, when each call depends on the one before it and a few minutes of delay is acceptable. Both cost half the standard price.
Building something like this?
9io is a small team of senior engineers with a fractional CTO. We work by the hour, and plans start at $5,000. Send us a note about your product. The reply comes from the person who'd do the work.