Create a Flux 3 video
Create a Flux 3 text-to-video or image-to-video task through CometAPI with a 720p or 1080p size preset.
id for status and content requests.
POST /v1/videos uses multipart/form-data. Send scalar controls as form fields. Send one reference image as an HTTPS URL or an uploaded file.
Choose only one image input method. Do not send images and input_reference in the same request.
Choose an input mode
Use a reference image
For an HTTPS reference image, send one publicly accessible image URL in theimages multipart field.
For an uploaded reference image, send one PNG or JPEG file in the input_reference multipart field. The file can be up to 20 MB.
Describe the motion, camera behavior, and visual details that the generated video should preserve from the reference image.
Set duration and size
Setseconds to an integer from 5 through 20. The default is 10 seconds.
Set size to one of these exact WxH preset values:
Task flow
Create the task
id.Poll the task
status is completed or failed.Download the result
completed, call Download Flux 3 video content to save the MP4 file.Authorizations
Bearer authentication. Use your CometAPI API key.
Body
Flux 3 multipart request. Use one input mode; do not send images and input_reference together.
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. Use an integer from 5 through 20. The default is 10.
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 One publicly accessible HTTPS reference image URL. Send one images multipart field for HTTPS image-to-video.
1 element^https://One PNG or JPEG reference image file for image-to-video. The file can be up to 20 MB.
Response
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.