跳转到主要内容
GET
cURL
创建 Kling 模型路由请求后使用此端点。保存创建响应中的 data.id,并将该 ID 作为 task_ids 传入。

请求参数

要检索单个任务,请将 <task_id> 替换为创建响应中的 data.id 值:
创建后,响应会立即包含已提交的任务:

读取结果

从 data[0] 读取任务,并持续查询,直至其 status 进入终态。当状态为 succeeded 时,从该任务的 outputs 数组中读取视频 URL。某些观察到的 Comet 兼容性响应会返回裸任务对象,或包含顶层 status;这些是兼容性形式,而非规范封装。当存在 data 时,请使用 data[0].status。 已完成任务的响应结构如下:
如果需要在返回的 URL 可用期结束后继续保留视频,请将完成的视频存储到您自己的存储空间中。

授权

Authorization
string
header
必填

Use your CometAPI API key as a Bearer token.

查询参数

task_ids
string
必填

Task ID from the data.id field of a creation response. This CometAPI route documents one task_ids value per request.

响应

200 - application/json

The task state and available outputs are returned in the data array.

Canonical task response for the CometAPI route. Read the selected task from data[0]; a bare task object is a compatibility form.

data
object[]
必填

The task record returned for the requested task. The current CometAPI route returns it as data[0].

Required array length: 1 element
code

Response code returned with the task list.

message
string

Response message returned with the task list.

status
string

Observed Comet compatibility response-level status when returned. Read the selected task state from data[0].status.

request_id
string

Request ID for support when returned.

最后修改于 2026年9月25日