> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genlook.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Batch

> Stop the items of a batch that have not started.

Items that have not started fail with `BATCH_CANCELLED` and are not charged. Items already running finish and are charged. Safe to call more than once. Returns the batch, like [Get Batch](/docs/tryon-api/endpoints/get-batch); it ends as `CANCELLED` once its last running item is done.

<ParamField path="batchId" type="string" required>
  From [Create Batch](/docs/tryon-api/endpoints/create-batch).
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.genlook.app/tryon/v1/batches/c4b1s2.../cancel" \
    -H "x-api-key: gk_your_api_key"
  ```
</RequestExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.