Mengambil video Wan
Mengambil task video Wan berdasarkan task ID, termasuk status, progres, stempel waktu, dan URL video yang sudah selesai.
video_url setelah task selesai.
Periksa field berikut
statusmemberi tahu apakah task berstatusqueued,in_progress,completed,failed, atauerror.progressadalah persentase penyelesaian secara kasar.video_urlmuncul pada respons yang sudah selesai.errormuncul saat task gagal.
Alur polling
Buat task terlebih dahulu
id yang dikembalikan.Poll berdasarkan task ID
status mencapai completed, failed, atau error.Unduh file MP4
status adalah completed, panggil Retrieve Wan video content.Otorisasi
Bearer authentication. Use your CometAPI API key.
Parameter Path
Task ID returned by POST /v1/videos.
Respons
Current Wan video task state.
Task ID. Use this value as task_id in retrieve and content requests.
"task_example"
Object type. Wan video tasks return video.
"video"
Model ID used for the task.
"wan2.6"
Task lifecycle status. Poll until the value is completed, failed, or error.
queued, in_progress, completed, failed, error "queued"
Task progress as a coarse percentage.
0 <= x <= 1000
Task creation time as a Unix timestamp in seconds.
1779938152
Compatibility alias for id. The value matches id when present.
"task_example"
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.