メインコンテンツへスキップ
GET
cURL
Kling モデルルートの作成リクエスト後に、このエンドポイントを使用します。作成レスポンスの data.id を保存し、その ID を task_ids として渡します。

リクエストパラメータ

1 つのタスクを取得するには、<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日