跳轉到主要內容
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日