跳转到主要内容
DELETE
Clear queue
X-Latency-Ms 表示 API 服务器处理本次 HTTP 请求所用的毫秒数,不包含网络传输时间,也不表示异步任务的完成时间。 运行中的任务会继续运行,已结束的任务仍可读取,监控运行不受影响。被取消的任务以 FAILED 结束,错误码为 TASK_CANCELLED,并会发送 webhook。排队中的任务不冻结积分,也不占用并发限制的名额,因此不会扣费。父账户的密钥也会取消子账户排队中的任务;子账户的密钥只取消自己的任务。一次调用最多处理 20 秒;如果 queued 大于 0,请再次调用。

授权

Authorization
string
header
必填

Your API key, sent as Authorization: Bearer <key>.

响应

The queued tasks this call cancelled, and those still waiting.

success
boolean
必填
cleared
integer
必填

Queued tasks this call cancelled.

queued
integer
必填

Queued tasks left when the call ran out of time. 0 when the queue is empty.