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

# Cancel Wan video task

> Cancel a queued Wan 3.0 or Wan 3.0 Prime task.

Cancel a queued task using the same API key scope that created it. Cancellation is available only before processing starts; it does not delete a completed video.

```bash theme={"dark"}
curl --request DELETE \
  --url 'https://gengen.farm/api/gengen/v1/contents/generations/tasks/wan30%3A12345678-1234-4234-8234-123456789abc' \
  --header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx'
```

A successful request returns HTTP 204 with no body. Only confirmed cancellation releases the reservation. If cancellation cannot be confirmed, the task keeps its reservation and must be [retrieved](https://docs.gengen.farm/api-reference/wan/standard/video-generation/retrieve-task.md) to check its state.


## OpenAPI

````yaml openapi/wan-standard-video.yaml DELETE /contents/generations/tasks/{id}
openapi: 3.1.0
info:
  title: Wan Standard Video API
  version: 1.0.0
  description: >-
    Wan 3.0 and Wan 3.0 Prime video generation. Charged by provider-reported
    output seconds plus input reference video seconds, using the frozen customer
    rate.
servers:
  - url: https://gengen.farm/api/gengen/v1
security:
  - bearerAuth: []
paths:
  /contents/generations/tasks/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          pattern: ^wan30(prime)?:[0-9a-f-]{36}$
    delete:
      summary: Cancel a queued Wan Standard video task
      operationId: cancelWanStandardVideoTask
      responses:
        '204':
          description: Confirmed cancellation. No response body.
        '400':
          description: Invalid request or incompatible media/mode.
        '401':
          description: Invalid API key.
        '402':
          description: Insufficient balance.
        '404':
          description: Task not found in this API key scope.
        '409':
          description: Cancellation is not confirmed or parameters changed during retry.
        '429':
          description: Rate limited.
        '502':
          description: Task outcome could not be confirmed.
        '503':
          description: Generation temporarily unavailable.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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