---
title: "Create Batch Job"
method: POST
path: "/batch/jobs"
tags: ["batch"]
---

# Create Batch Job

`POST /batch/jobs`

## Request

- Base URL: `https://api.mistral.ai/v1`
- URL: `https://api.mistral.ai/v1/batch/jobs`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/docs/batch/jobs/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new batch job, it will be queued for processing.

## Request body

- BatchJobIn
  - `input_files` string[], required
  - `endpoint` '/chat/completions' | '/embeddings' | '/fim/completions' | '/moderations' | '/chat/moderations', required
  - `metadata` object, nullable
  - `timeout_hours` integer
  - `model` string, required

## Response `200`

OK

- BatchJobOut
  - `succeeded_requests` integer, required
  - `metadata` object, nullable
  - `failed_requests` integer, required
  - `created_at` integer, required
  - `output_file` string, uuid, nullable
  - `error_file` string, uuid, nullable
  - `input_files` string[], required
  - `completed_at` integer, nullable
  - `endpoint` string, required
  - `completed_requests` integer, required
  - `total_requests` integer, required
  - `started_at` integer, nullable
  - `model` string, required
  - `id` string, required
  - `errors` BatchError[], required
    - `count` integer
    - `message` string, required
  - `object` 'batch'
  - `status` 'QUEUED' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'TIMEOUT_EXCEEDED' | 'CANCELLATION_REQUESTED' | 'CANCELLED', required

## Changes

- **2026-07-17** `062746a4d99e`: 1 info
  - endpoint added
- **2025-03-12** `a88399f645b2`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/changes/batch/jobs/post.md)

---

[API](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api.md) - [All operations](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/revisions/062746a4d99e?raw)
