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"
}
取消任务
取消尚未完成的异步任务。
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"
}
停止仍处于
响应就是
pending 或 processing 的任务。已经进入终态的任务无法取消。
通过
POST /v2/videos 创建的视频,用
DELETE /v2/videos/{id} 取消。string
必填
任务创建时返回的任务 ID。
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} 返回的同一个任务对象,
status 变为 cancelled。
计费
取消不退还上游已经完成的那部分算力。视频的报价在任务创建时就锁定了,见 查询模型定价。错误
错误信封与 错误与排查 一致。404 not_found
404 not_found
任务 ID 不存在,或属于其他账户。
409 invalid_request_error
409 invalid_request_error
任务已进入
completed、failed 或 cancelled。此页面对您有帮助吗?