Przejdź do głównej treści
GET
cURL
Użyj tego endpointu po utworzeniu zadania tworzenia filmu Flux 3. Odpowiedź zawiera video_url, gdy zadanie zostanie ukończone.

Sprawdź te pola

  • status ma wartość queued, in_progress, completed lub failed.
  • progress jest przybliżonym procentem ukończenia od 0 do 100.
  • video_url pojawia się, gdy zadanie zostanie ukończone.
  • error pojawia się, gdy zadanie zakończy się niepowodzeniem.

Odpytuj zadanie

1

Najpierw utwórz zadanie

Zacznij od Utwórz film Flux 3 i zapisz zwrócony id.
2

Pobierz stan zadania

Wysyłaj identyfikator zadania do tego endpointu, aż status osiągnie wartość completed lub failed.
3

Pobierz plik MP4

Gdy status ma wartość completed, wywołaj Pobierz zawartość filmu Flux 3.

Autoryzacje

Authorization
string
header
wymagane

Bearer authentication. Use your CometAPI API key.

Parametry ścieżki

task_id
string
wymagane

Task ID returned by POST /v1/videos.

Odpowiedź

Current Flux 3 video task state.

id
string
wymagane

Task ID. Use this value as task_id in retrieve and content requests.

Przykład:

"<task_id>"

object
string
wymagane

Object type for the asynchronous video task.

Allowed value: "video"
model
string
wymagane

Model ID that the task uses.

Allowed value: "flux-3"
status
enum<string>
wymagane

Task lifecycle status. Poll until the value is completed or failed.

Dostępne opcje:
queued,
in_progress,
completed,
failed
progress
integer
wymagane

Task progress as a coarse percentage.

Wymagany zakres: 0 <= x <= 100
created_at
integer<int64>
wymagane

Task creation time as a Unix timestamp in seconds.

task_id
string

Compatibility alias for id. This field can be omitted from retrieve responses.

Przykład:

"<task_id>"

completed_at
integer<int64>

Task completion time as a Unix timestamp in seconds when the task provides one.

expires_at
integer<int64>

Result expiration time as a Unix timestamp in seconds when the task provides one.

video_url
string<uri>

Video delivery URL. This field appears on completed tasks.

Przykład:

"https://media.example.com/flux-3-result.mp4"

error
object

Failure details. This field appears when the task fails.

Ostatnia modyfikacja 14 sierpnia 2026