Przejdź do głównej treści
GET
cURL
Użyj tego endpointu po żądaniu utworzenia model-route Kling. Zapisz data.id z odpowiedzi utworzenia i przekaż ten identyfikator jako task_ids.

Parametr żądania

Aby pobrać jedno zadanie, zastąp <task_id> wartością data.id z odpowiedzi utworzenia:
Bezpośrednio po utworzeniu odpowiedź zawiera przesłane zadanie:

Odczytaj wynik

Odczytaj zadanie z data[0] i kontynuuj wysyłanie zapytań, aż jego status osiągnie stan końcowy. Gdy status ma wartość succeeded, odczytaj URL filmu z tablicy outputs tego zadania. Niektóre zaobserwowane odpowiedzi zgodne z Comet zwracają bezpośrednio obiekt zadania lub zawierają status na najwyższym poziomie; są to formy zgodności, a nie kanoniczna otoczka. Gdy występuje data, użyj data[0].status. Ukończone zadanie ma następującą strukturę odpowiedzi:
Zapisz ukończony film we własnym magazynie danych, jeśli chcesz zachować go dłużej niż wynosi dostępność zwróconego URL.

Autoryzacje

Authorization
string
header
wymagane

Use your CometAPI API key as a Bearer token.

Parametry zapytania

task_ids
string
wymagane

Task ID from the data.id field of a creation response. This CometAPI route documents one task_ids value per request.

Odpowiedź

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[]
wymagane

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.

Ostatnia modyfikacja 25 września 2026