---
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

---

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