Skip to main content
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.

Use this endpoint after you create a Kling Omni task. It returns the task state and final video URLs when the task succeeds.

Check these fields first

  • code, message, and request_id for the query acknowledgement
  • data.task_status for the task state, such as submitted, processing, succeed, or failed
  • data.task_result.videos[0].url for the finished MP4 URL

Polling pattern

1

Create the task first

Start with Omni Video and store the returned task_id.
2

Poll until the task is terminal

Keep querying until data.task_status reaches succeed or failed.
3

Use the returned MP4 URL

When the task succeeds, download or copy the final video URL promptly.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Path Parameters

task_id
string
required

Task id returned by the Omni Video endpoint.

Response

200 - application/json

Current Kling task state.

code
integer
required

Kling response code. 0 indicates the query was accepted.

message
string
required

Kling response message.

request_id
string
required

Identifier for this query request.

data
object
required