Saltar para o conteúdo principal
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 este endpoint após criar uma tarefa Kling Omni. Ele retorna o estado da tarefa e as URLs finais do vídeo quando a tarefa é concluída com sucesso.

Verifique estes campos primeiro

  • code, message e request_id para a confirmação da consulta
  • data.task_status para o estado da tarefa, como submitted, processing, succeed ou failed
  • data.task_result.videos[0].url para a URL MP4 finalizada

Padrão de polling

1

Crie a tarefa primeiro

Comece com Omni Video e armazene o task_id retornado.
2

Faça polling até a tarefa chegar a um estado terminal

Continue consultando até que data.task_status alcance succeed ou failed.
3

Use a URL MP4 retornada

Quando a tarefa for concluída com sucesso, baixe ou copie a URL final do vídeo imediatamente.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Parâmetros de caminho

task_id
string
obrigatório

Task id returned by the Omni Video endpoint.

Resposta

200 - application/json

Current Kling task state.

code
integer
obrigatório

Kling response code. 0 indicates the query was accepted.

message
string
obrigatório

Kling response message.

request_id
string
obrigatório

Identifier for this query request.

data
object
obrigatório