# Cancel generation

- **Method:** `POST`
- **Path:** `/api/v1/generation/stop`
- **Operation ID:** `generation_stop_api_v1_generation_stop_post`
- **Tags:** Generation

Cancel the active generation, clear all pending queue jobs, and set cancelled flag.

## Effective servers

- `http://127.0.0.1:8100`

  Voice Creator Pro on this computer

## Responses

### 200 Successful Response

**Content type:** `application/json`

schema: `GenerationStopResponse`

- **`queue_cleared` (required)**: `integer`

  Number of pending jobs removed from the queue
- **`stopped` (required)**: `boolean`

  Whether the cancellation signal was sent

**Example:**

```json
{
  "stopped": true,
  "queue_cleared": 1
}
```

## Schemas

- `GenerationStopResponse` — shown above.
