The batch discount is 50%, not a variable range: that figure appears both on the API pricing page and in the batch documentation. The previous version of this page announced "25 to 50%", which was wrong.
Second correction: Mistral's JSONL format is not OpenAI's. There is no method field and no url field in the file lines; the target endpoint is chosen when you create the job. Details below.
Batch API: volume, not urgency
You have 100,000 documents to classify. In real time, each request costs full price and you are throughput-limited. The Batch API is the answer: you send one file containing all your requests, processing happens asynchronously, and you collect the results at a 50% discount.
Same model, same answer quality, but deferred and half the price. In exchange, you accept not knowing to the second when it will be ready.
Real time vs batch: two complementary modes
Standard API (real time):
- Response in seconds
- Standard cost per token
- Subject to rate limits (tokens per minute, requests per second)
- Ideal for: chatbots, interactive interfaces, anything where a user is waiting
Batch API:
- Asynchronous: you submit, you come back later
- 50% cheaper on compute
- Built for very large volumes in a single submission
- Ideal for: mass analysis, model evaluation, bulk content generation
The analogy: the standard API is express shipping (fast, expensive). The Batch API is standard shipping (slower, cheaper). The parcel arrives all the same, just not at the same moment.
The discount is 50% on compute. For an organisation processing millions of tokens a day on non-urgent work, that is half the invoice. It is probably the simplest saving lever on the whole API, ahead of the choice of model itself.
What batch accepts
This is not chat-only. The documentation lists these endpoints:
/v1/chat/completions, conversation completions/v1/embeddings, vectors for semantic search/v1/fim/completions, fill-in-the-middle code completion/v1/moderationsand/v1/chat/moderations, text and conversation moderation/v1/ocr, document recognition/v1/classifications, classification/v1/conversations, the agent conversation API/v1/audio/transcriptions, audio transcription
In other words, just about anything expensive at volume can go through batch. Digitising a document archive by OCR is a textbook case.
How it actually works
The workflow is simple and linear:
- Prepare a JSONL file: each line holds one independent request
- Upload the file:
client.files.upload() - Create the job:
client.batch.jobs.create(), specifying the model and the target endpoint - Track progress:
client.batch.jobs.get() - Collect the results:
client.files.download(), a JSONL output file with every answer
JSONL format (one request per line):
{"custom_id": "0", "body": {"max_tokens": 128, "messages": [{"role": "user", "content": "Summarise: ..."}]}}
Two fields only: custom_id, your own identifier, and body, the request payload in the endpoint's usual shape. The model and endpoint are not repeated line by line: they are set once, at job creation.
custom_id is what lets you match each answer back to its request. Pick meaningful identifiers (invoice_12345, support_ticket_678) to make result processing easy.
For batches of fewer than 10,000 requests, the documentation states that inline batching is supported: you pass the requests directly in the call, with no file upload step. That simplifies one-off jobs considerably.
The documented limits
Batch size: the documentation mentions up to one million requests in a single batch. That is a very generous ceiling; in practice the binding constraint lies elsewhere (see best practices).
Expiry: at job creation, the timeout_hours field sets the number of hours after which the job expires. Its default value is 24. Beware the misreading: this is not a guarantee of delivery within 24 hours, it is a cut-off you set yourself. A job that has not finished in time moves to TIMEOUT_EXCEEDED.
Job statuses: QUEUED, RUNNING, SUCCESS, FAILED, TIMEOUT_EXCEEDED, CANCELLATION_REQUESTED, CANCELLED. Those seven values are what your monitoring should be built on.
The previous version of this page asserted two things we could not confirm: a guaranteed 24-hour maximum turnaround, and the absence of rate limits in batch mode. Neither appears in those terms in the official documentation, which in fact devotes an FAQ entry to how batch interacts with limits. If your schedule depends on a firm deadline, get it written into your contract rather than trusting a course page.
Real use cases where batch shines
Mass classification: 500,000 customer reviews to classify by sentiment and theme. In real time it would take days and cost twice as much. In batch it is one submission and half the price.
Document summarisation: 10,000 press articles to summarise with title and key-point extraction. Batch is the natural approach: the results are not urgent, but the volume is large.
Entity extraction: 100,000 contracts from which to pull dates, amounts and party names. A repetitive, high-volume task, perfect for batch. Combined with JSON mode, it produces a usable database straight away.
Digitising an archive: since the OCR endpoint is accepted in batch, converting paper archives or legacy PDFs runs at half price.
Translation: 50,000 product sheets to translate into 5 languages. Huge volume, low urgency.
Model evaluation: you want to compare two models on a 5,000-case test set. Submit everything in batch and analyse the results in one go. More reliable and cheaper than manual testing.
Torn between two prompt wordings? Prepare two JSONL files with the same 5,000 examples but different prompts. Submit both in batch. Compare systematically. Far more rigorous than eyeballing a handful of cases, and half the price of real time.
Best practices for batch
Split sensibly. The technical ceiling is very high, but a giant batch is a batch you see nothing of until the end and cannot partially re-run. Batches of a few thousand to a few tens of thousands of requests give much better visibility without losing the discount, which does not depend on batch size.
Error handling: individual requests can fail inside a batch (prompt too long, filtered content). The result file reports the status of each request. Plan a mechanism to resubmit failures.
Idempotency: design your pipeline so that reprocessing a batch does not create duplicates in your database. If processing fails halfway, you must be able to re-run without side effects.
Set timeout_hours deliberately: too short and you throw away work that was nearly done; too long and a stuck job stays stuck. The 24-hour default suits most cases.
Monitoring: watch batch status through the API. A job sitting in QUEUED far longer than usual deserves an alert.
Detailed comparison
| Aspect | Real time | Batch |
|---|---|---|
| Latency | Seconds | Asynchronous, hours depending on load |
| Compute cost | Standard | 50% cheaper |
| Volume per submission | One request | Up to one million requests |
| Use case | Chat, interactive interfaces | Bulk processing |
| Results | Synchronous | JSONL file to download |
| Endpoints | All | Chat, embeddings, FIM, moderation, OCR, classification, conversations, transcription |
The Batch API is unsuitable for interactive applications (chatbots, live assistants). The delay is not measured in seconds. For any interaction where a human is waiting, use the standard API.
Architecture of a production batch pipeline
A mature batch pipeline looks like this:
- Collector: accumulates requests over time (Redis queue, SQS, Kafka)
- Assembler: groups requests into JSONL files of reasonable size (say every 2 hours or every 10,000 items)
- Submitter: sends batches to the Mistral API and stores the job identifiers
- Poller: checks status periodically and distinguishes the seven possible statuses
- Processor: retrieves finished results and handles them (parsing, validation)
- Storage: saves results into the database or data lake
This kind of pipeline runs continuously and absorbs incoming volume with no human intervention.
The Batch API is the economical tool for volume processing. Same model, same quality, 50% cheaper whenever urgency is not the point.