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

---

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