Mengambil video Omni
Mengambil task video Omni beta berdasarkan task ID, termasuk status, progress, stempel waktu, dan URL video yang telah selesai.
video_url setelah task selesai.
Beta
Periksa field berikut
statusmemberi tahu apakah task berstatusqueued,in_progress,completed, ataufailed.progressadalah persentase penyelesaian kasar.video_urlmuncul pada respons yang telah selesai.errormuncul ketika task gagal.
Alur polling
Buat task terlebih dahulu
id yang dikembalikan.Lakukan polling berdasarkan task ID
status mencapai completed atau failed.Unduh file MP4
status adalah completed, panggil Retrieve Omni video content.Otorisasi
Bearer authentication. Use your CometAPI API key.
Parameter Path
Task ID returned by POST /v1/videos.
Respons
Omni video task state.
Task ID returned by POST /v1/videos.
"task_example"
Object type. Omni video tasks return video.
"video"
Model ID used for the task.
"omni-fast"
Task lifecycle status. Poll until the value is completed or failed.
queued, in_progress, completed, failed "completed"
Task progress as a coarse percentage.
0 <= x <= 100100
Task creation time as a Unix timestamp in seconds.
1779938152
Task completion time as a Unix timestamp in seconds. This field appears on completed tasks.
1779938219
Temporary video delivery URL. This field appears on completed tasks.
"<temporary-video-url>"
Failure details. This field appears when the task fails.