TokenLab

Video & Materials

Cancel Task (Volc Compatible)

Cancel a queued or cancellable Seedance compatibility task.

DELETE
/api/v3/contents/generations/tasks/{id}

Overview

Cancellation only succeeds while the task is still queued. A successful DELETE returns HTTP 200 with an empty body. Query the task afterward to confirm the final state.

See also Seedance 2.0 Video Models and Video Generation.

Cancellation Semantics

  • The request can succeed only while the task is queued.
  • If the task is already running, or has completed, failed, or expired, the endpoint returns 409 with code task_not_cancellable; query the task to confirm its current state.
  • A cancelled task has status cancelled and does not return a video result.
  • A task ID that does not exist returns 404.

Example

curl -X DELETE https://api.tokenlab.sh/api/v3/contents/generations/tasks/cgt-20260102030405-a1b2c \
  -H "Authorization: Bearer $TOKENLAB_API_KEY"
curl -X DELETE "https://example.com/api/v3/contents/generations/tasks/string"
Empty

Authorization

BearerAuth
AuthorizationBearer <token>

API Key authentication. Create or manage API keys in Dashboard > API > API Keys.

In: header

Path Parameters

id*string

Compatibility task ID returned by the create endpoint. IDs start with cgt-.

Response

application/json

application/json

application/json

application/json

application/json

application/json