Bir Flux 3 videosunu alın
Bir Flux 3 video görevini görev kimliğine göre; durumu, ilerlemesi, zaman damgaları, sonuç URL’si veya hata ayrıntılarıyla birlikte alın.
video_url içerir.
Bu alanları kontrol edin
statusşu değerlerden biridir:queued,in_progress,completedveyafailed.progress0ile100arasında yaklaşık bir tamamlanma yüzdesidir.video_urlgörev tamamlandığında görünür.errorgörev başarısız olduğunda görünür.
Görevi sorgulayın
Önce görevi oluşturun
id değerini saklayın.Görev durumunu alın
status, completed veya failed olana kadar görev kimliğini bu endpoint’e gönderin.MP4 dosyasını indirin
status, completed olduğunda Flux 3 video içeriğini indirin.Yetkilendirmeler
Bearer authentication. Use your CometAPI API key.
Yol Parametreleri
Task ID returned by POST /v1/videos.
Yanıt
Current Flux 3 video task state.
Task ID. Use this value as task_id in retrieve and content requests.
"<task_id>"
Object type for the asynchronous video task.
"video"Model ID that the task uses.
"flux-3"Task lifecycle status. Poll until the value is completed or failed.
queued, in_progress, completed, failed Task progress as a coarse percentage.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Compatibility alias for id. This field can be omitted from retrieve responses.
"<task_id>"
Task completion time as a Unix timestamp in seconds when the task provides one.
Result expiration time as a Unix timestamp in seconds when the task provides one.
Video delivery URL. This field appears on completed tasks.
"https://media.example.com/flux-3-result.mp4"
Failure details. This field appears when the task fails.