Przejdź do głównej treści
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.

Użyj tego endpointu po utworzeniu zadania Kling Omni. Zwraca stan zadania oraz końcowe adresy URL wideo, gdy zadanie zakończy się powodzeniem.

Najpierw sprawdź te pola

  • code, message i request_id do potwierdzenia zapytania
  • data.task_status dla stanu zadania, takiego jak submitted, processing, succeed lub failed
  • data.task_result.videos[0].url dla gotowego adresu URL MP4

Wzorzec odpytywania

1

Najpierw utwórz zadanie

Zacznij od Omni Video i zapisz zwrócone task_id.
2

Odpytuj, aż zadanie osiągnie stan końcowy

Kontynuuj wysyłanie zapytań, aż data.task_status osiągnie succeed lub failed.
3

Użyj zwróconego adresu URL MP4

Gdy zadanie zakończy się powodzeniem, niezwłocznie pobierz lub skopiuj końcowy adres URL wideo.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Parametry ścieżki

task_id
string
wymagane

Task id returned by the Omni Video endpoint.

Odpowiedź

200 - application/json

Current Kling task state.

code
integer
wymagane

Kling response code. 0 indicates the query was accepted.

message
string
wymagane

Kling response message.

request_id
string
wymagane

Identifier for this query request.

data
object
wymagane