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

# Create Batch

`POST /api/v1/batches`

Handle POST requests (create batch or cancel batch).

Thin view: BatchAPIProxy owns the whole pipeline — preprocessing (built-in
``_preprocess``), key-usage + billing enforcement, generation, and the
gateway error policy. raw_payload is captured before the proxy mutates
``request.data`` during preprocessing.

## Headers

- `Authorization` string, required

## Response `200`

No response body

- OpenAIBatchCreateBatchResponse200 — Empty response body

## Changes

- **2026-07-31** `c26d550029f8` — 3 breaking, 19 warning, 2 info
  - removed the request body
  - removed the required property `id` from the response with the `200` status
  - removed the required property `status` from the response with the `200` status
  - deleted the `header` request parameter `X-Data-Respan-Params`
  - …20 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/v1/batches/post.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c26d550029f8/schema)
