---
title: "Cancel a batch"
method: POST
path: "/v1/audio/batches/{id}/cancel"
tags: ["audio"]
---

# Cancel a batch

`POST /v1/audio/batches/{id}/cancel`

## Request

- Base URL: `https://api.ditto.audio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ditto.audio/v1/audio/batches/{id}/cancel`
- Auth: HTTP bearer

Every still-pending item becomes `canceled` at once and the worker stops dispatching on its next check, so cancelling genuinely saves GPU. Items that already finished KEEP their audio — you paid for them and can still download them until `expiresAt`. Cancelling an already-finished batch is a no-op that returns its current state.

## Path parameters

- `id` string, required

## Response `200`

---

[API](https://skmtc.dev/ditto/apis/ditto-audio-api.md) · [All operations](https://skmtc.dev/ditto/apis/ditto-audio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ditto/apis/ditto-audio-api/revisions/30c8d7c218da?raw)
