Flux 3 videosu oluşturun
Metinden, referans görsellerden ya da ilk ve son karelerden 720p veya 1080p boyut ön ayarıyla bir Flux 3 videosu oluşturun.
id değerini saklayın.
POST /v1/videos multipart/form-data kullanır. Kontrolleri form alanları olarak gönderin. Görsel girdileri için referans görsel URL’lerini veya açılış ve kapanış karelerini kullanın.
input_reference değerini first_frame ve last_frame değerlerinden ayrı tutun.
Bir giriş modu seçin
Referans görselleri kullanın
input_reference alanı yalnızca herkese açık HTTPS görsel URL’lerini kabul eder. Tek bir görsel için bir kez gönderin veya birden fazla görsel için anahtar kare sırasıyla tekrarlayın. Alan başına bir URL kullanın; toplamda en fazla 10 URL kullanabilirsiniz.
Oluşturulan videonun referans görselden koruması gereken hareketi, kamera davranışını ve görsel ayrıntıları açıklayın.
Bu sayfanın üst kısmındaki istek örnekleri, tek görselli ve çok görselli girdileri gösterir. Aşağıdaki istek, iki görseli gönderildikleri sırayla kullanır:
İlk ve son kareleri ayarlayın
Açılış görselini ayarlamak içinfirst_frame gönderin. Kapanış görselini de ayarlamak için last_frame ekleyin ve iki kare arasındaki hareketi prompt içinde açıklayın.
Yalnızca bir açılış karesi için last_frame öğesini atlayın. Kapanış karesi hem first_frame hem de last_frame gerektirir.
Her alan, herkese açık bir HTTPS URL’sini veya bir PNG ya da JPEG dosyasını kabul eder. Her alanı URL veya dosya kullanarak bir kez gönderin. Her dosyayı 20 MiB veya altında tutun (20 × 1024 × 1024 bayt).
Bu sayfanın üst kısmındaki kare örnekleri, seconds ve size açıkça ayarlanmış şekilde URL girdilerini ve dosya yüklemelerini gösterir.
Süreyi ve boyutu ayarlayın
seconds değerini 5 ile 20 arasında bir tam sayı olarak açıkça ayarlayın.
size değerini şu tam WxH ön ayar değerlerinden biri olarak ayarlayın:
Görev akışı
Görevi oluşturun
id değerini saklayın.Görevi sorgulayın
status, completed veya failed olana kadar.Sonucu indirin
completed olduğunda, çağırın Flux 3 video içeriğini indirin MP4 dosyasını kaydetmek için.Yetkilendirmeler
Bearer authentication. Use your CometAPI API key.
Gövde
Flux 3 multipart request. Choose text, input_reference URLs, or first_frame and last_frame inputs. Keep reference-image and frame inputs separate.
Model ID for this route. Use flux-3.
"flux-3"Text that describes the scene, motion, camera behavior, and visual details that the video should preserve.
1Requested clip duration in whole seconds. Set seconds explicitly to an integer from 5 through 20.
5 <= x <= 20Resolution preset in exact WxH form. Use 1280x720 for the 720p tier or 1920x1080 for the 1080p tier. Encoded dimensions can be codec-aligned; image-to-video framing can follow the reference image.
1280x720, 1920x1080 Reference image URLs. Send one publicly accessible HTTPS image URL per input_reference field. For multiple images, repeat the field in keyframe order, up to 10 URLs. This field accepts URLs only. Keep it separate from first_frame and last_frame.
^https://Opening-frame image as one publicly accessible HTTPS URL or one PNG or JPEG file. Keep each file at or below 20 MiB (20 × 1024 × 1024 bytes). Send the field once, using either a URL or a file. Pair with last_frame to set both boundaries. Keep frame inputs separate from input_reference.
^https://Closing-frame image as one publicly accessible HTTPS URL or one PNG or JPEG file. Keep each file at or below 20 MiB (20 × 1024 × 1024 bytes). Send the field once, using either a URL or a file. To specify the closing image through this endpoint, send last_frame together with first_frame. Keep frame inputs separate from input_reference.
^https://Yanıt
Task created. Store the returned id and poll GET /v1/videos/{task_id}.
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.