メインコンテンツへスキップ
GET
/
kling
/
v1
/
videos
/
omni-video
/
{task_id}
Omni Query
curl --request GET \
  --url https://api.cometapi.com/kling/v1/videos/omni-video/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "code": 0,
  "message": "success",
  "request_id": "878106484537192522",
  "data": {
    "task_id": "878106484537192522",
    "task_info": {},
    "created_at": 1777385419126,
    "updated_at": 1777385430317,
    "task_result": {},
    "task_status": "processing"
  }
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Kling Omni タスクを作成した後にこのエンドポイントを使用します。タスクの状態、ネストされた provider payload、そしてタスク成功時の最終的な動画 URL を返します。

まずこれらのフィールドを確認してください

  • 最上位の状態は codemessage
  • 非同期ジョブの状態は data.statusdata.progress
  • 完了した MP4 URL は data.data.task_result.videos[0].url

ポーリングパターン

1

まずタスクを作成

Omni Video から開始し、返された task_id を保存します。
2

タスクが終端状態になるまでポーリング

外側のステータスが SUCCESS または FAILURE になるまでクエリを続けます。
3

返された MP4 URL を使用

タスクが成功したら、最終的な動画 URL を速やかにダウンロードまたはコピーしてください。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

パスパラメータ

task_id
string
必須

Task id returned by the Omni Video endpoint.

レスポンス

200 - application/json

Current Kling task state.

code
integer
必須

Kling response code. 0 indicates the query was accepted.

message
string
必須

Kling response message.

request_id
string
必須

Identifier for this query request.

data
object
必須