---
title: "Create Batch"
method: POST
path: "/v1/batches"
tags: ["batches"]
---

# Create Batch

`POST /v1/batches`

Create a batch of LLM requests for asynchronous processing.

Authentication modes:
- Master key + user field: Use specified user (must exist)
- API key + user field: Use specified user (must exist)
- API key without user field: Use the shared "default" user

## Request body

- CreateBatchRequest
  - `completion_window` string
  - `metadata` object, nullable
  - `model` string, required
  - `requests` BatchRequestItem[], required
    - `body` object, required
    - `custom_id` string, required
  - `user` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-20** `d9a87177ce4a` — 1 info
  - the endpoint scheme security `XApiKeyAuth` was added to the API
- **2026-07-16** `679af3ee92dc` — 1 info
  - added the new optional request property `user`
- **2026-07-14** `0ad4e5f1cc3e` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2026-05-20** `bb754bbf3e78` — 1 info
  - endpoint added
- **2026-05-14** `843517ce5d0c` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/batches/post.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/7f178e92b56c/schema)
