Skip to main content
GET
cURL
Gunakan endpoint ini setelah Anda membuat task video Omni beta. Endpoint ini mengembalikan status task dan menyertakan video_url setelah task selesai. Beta

Periksa field berikut

  • status memberi tahu apakah task berstatus queued, in_progress, completed, atau failed.
  • progress adalah persentase penyelesaian kasar.
  • video_url muncul pada respons yang telah selesai.
  • error muncul ketika task gagal.

Alur polling

1

Buat task terlebih dahulu

Mulai dengan Create an Omni video dan simpan id yang dikembalikan.
2

Lakukan polling berdasarkan task ID

Kirim task ID ke endpoint ini sampai status mencapai completed atau failed.
3

Unduh file MP4

Ketika status adalah completed, panggil Retrieve Omni video content.

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

Omni video task state.

id
string
wajib

Task ID returned by POST /v1/videos.

Contoh:

"task_example"

object
string
wajib

Object type. Omni video tasks return video.

Contoh:

"video"

model
string
wajib

Model ID used for the task.

Contoh:

"omni-fast"

status
enum<string>
wajib

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

Opsi yang tersedia:
queued,
in_progress,
completed,
failed
Contoh:

"completed"

progress
integer
wajib

Task progress as a coarse percentage.

Rentang yang diperlukan: 0 <= x <= 100
Contoh:

100

created_at
integer
wajib

Task creation time as a Unix timestamp in seconds.

Contoh:

1779938152

completed_at
integer

Task completion time as a Unix timestamp in seconds. This field appears on completed tasks.

Contoh:

1779938219

video_url
string

Temporary video delivery URL. This field appears on completed tasks.

Contoh:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.