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

# 取消任务（火山兼容）

> 在任务仍可取消时取消 Seedance 兼容任务。

## 概览

取消是尽力而为，只在任务仍可取消时成功。DELETE 成功时返回 HTTP 200，响应体为空。需要确认最终状态时，请继续查询任务。

另见 [Seedance 2.0 视频模型](/zh/guides/seedance-2-video) 和 [视频生成](/zh/guides/video-generation)。

## 取消语义

* 任务仍在排队或仍可取消时，取消请求可以成功。
* 如果任务已经完成、失败、过期或不再可取消，接口会返回错误；请查询任务确认当前状态。
* 取消成功不返回视频结果；需要展示最终状态时，请调用查询任务接口。

## 示例

```bash theme={null}
curl -X DELETE https://api.tokenlab.sh/api/v3/contents/generations/tasks/cgt-0123456789abcdef0123456789abcdef \
  -H "Authorization: Bearer $TOKENLAB_API_KEY"
```
