Langsung ke konten utama
GET
cURL
Gunakan endpoint ini setelah Anda membuat tugas video Flux 3. Responsnya mencakup video_url saat tugas selesai.

Periksa field berikut

  • status adalah queued, in_progress, completed, atau failed.
  • progress adalah persentase penyelesaian kasar dari 0 hingga 100.
  • video_url muncul saat tugas selesai.
  • error muncul saat tugas gagal.

Polling tugas

1

Buat tugas terlebih dahulu

Mulailah dengan Membuat video Flux 3 lalu simpan id yang dikembalikan.
2

Ambil status tugas

Kirim ID tugas ke endpoint ini hingga status bernilai completed atau failed.
3

Unduh file MP4

Saat status bernilai completed, panggil Unduh konten video Flux 3.

Otorisasi

Authorization
string
header
wajib

Bearer authentication. Use your CometAPI API key.

Parameter Path

task_id
string
wajib

Task ID returned by POST /v1/videos.

Respons

Current Flux 3 video task state.

id
string
wajib

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

Contoh:

"<task_id>"

object
string
wajib

Object type for the asynchronous video task.

Allowed value: "video"
model
string
wajib

Model ID that the task uses.

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

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

Opsi yang tersedia:
queued,
in_progress,
completed,
failed
progress
integer
wajib

Task progress as a coarse percentage.

Rentang yang diperlukan: 0 <= x <= 100
created_at
integer<int64>
wajib

Task creation time as a Unix timestamp in seconds.

task_id
string

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

Contoh:

"<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.

Contoh:

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

error
object

Failure details. This field appears when the task fails.

Terakhir diubah pada 14 Agustus 2026