curl -X POST https://api.pipellm.ai/v1/tasks/gen-1732891234-abc123xyz/cancel \
-H "Authorization: Bearer $PIPELLM_API_KEY"
{
"id": "gen-1732891234-abc123xyz",
"status": "cancelled",
"type": "video_generation",
"model": "seedance-2-0-mini",
"created_at": "2026-09-17T08:14:02Z"
}
Cancel a task
Cancel an asynchronous task that has not finished.
POST
/
v1
/
tasks
/
{task_id}
/
cancel
curl -X POST https://api.pipellm.ai/v1/tasks/gen-1732891234-abc123xyz/cancel \
-H "Authorization: Bearer $PIPELLM_API_KEY"
{
"id": "gen-1732891234-abc123xyz",
"status": "cancelled",
"type": "video_generation",
"model": "seedance-2-0-mini",
"created_at": "2026-09-17T08:14:02Z"
}
Stops a task that is still
The response is the same task object returned by
pending or processing. A task that already reached a
terminal state cannot be cancelled.
Video created through
POST /v2/videos is cancelled
with DELETE /v2/videos/{id} instead.string
required
Task ID, as returned when the task was created.
curl -X POST https://api.pipellm.ai/v1/tasks/gen-1732891234-abc123xyz/cancel \
-H "Authorization: Bearer $PIPELLM_API_KEY"
{
"id": "gen-1732891234-abc123xyz",
"status": "cancelled",
"type": "video_generation",
"model": "seedance-2-0-mini",
"created_at": "2026-09-17T08:14:02Z"
}
GET /v1/tasks/{task_id}, with status set to cancelled.
Billing
Cancelling does not refund work the upstream provider already performed. For video, the quote is taken when the task is created — see Pricing.Errors
Same envelope as Errors.404 not_found
404 not_found
Unknown task ID, or a task belonging to another account.
409 invalid_request_error
409 invalid_request_error
The task already reached
completed, failed, or cancelled.Was this page helpful?