Een Flux 3-video maken
Maak een Flux 3-video op basis van tekst, referentieafbeeldingen of eerste en laatste frames met een vooraf ingestelde grootte van 720p of 1080p.
id op om de taak te pollen en de voltooide video te downloaden.
POST /v1/videos gebruikt multipart/form-data. Verstuur besturingselementen als formuliervelden. Gebruik voor afbeeldingsinvoer URL’s van referentieafbeeldingen of openings- en sluitingsframes.
Houd input_reference gescheiden van first_frame en last_frame.
Kies een invoermodus
Referentieafbeeldingen gebruiken
Het veldinput_reference accepteert alleen openbaar toegankelijke HTTPS-URL’s van afbeeldingen. Verstuur het eenmaal voor één afbeelding, of herhaal het in keyframevolgorde voor meerdere afbeeldingen. Gebruik één URL per veld, met maximaal 10 URL’s in totaal.
Beschrijf de beweging, het cameragedrag en de visuele details die de gegenereerde video van de referentieafbeelding moet behouden.
De voorbeeldaanvragen boven aan deze pagina tonen invoer met één en met meerdere afbeeldingen. De volgende aanvraag gebruikt twee afbeeldingen in de volgorde waarin ze zijn verstuurd:
De eerste en laatste frames instellen
Verstuurfirst_frame om de openingsafbeelding in te stellen. Voeg last_frame toe om ook de sluitingsafbeelding in te stellen en beschrijf de beweging tussen de twee frames in prompt.
Laat voor alleen een openingsframe last_frame weg. Een sluitingsframe vereist zowel first_frame als last_frame.
Elk veld accepteert één openbaar toegankelijke HTTPS-URL of één PNG- of JPEG-bestand. Verstuur elk veld eenmaal, met een URL of een bestand. Houd elk bestand maximaal 20 MiB groot (20 × 1024 × 1024 bytes).
De framevoorbeelden boven aan deze pagina tonen URL-invoer en bestandsuploads, waarbij seconds en size expliciet zijn ingesteld.
Duur en grootte instellen
Stelseconds expliciet in op een geheel getal van 5 tot en met 20.
Stel size in op een van deze exacte vooraf ingestelde waarden voor WxH:
Taakstroom
De taak maken
id op.De taak pollen
status gelijk is aan completed of failed.Het resultaat downloaden
completed is, roept u Flux 3-video-inhoud downloaden aan om het MP4-bestand op te slaan.Autorisaties
Bearer authentication. Use your CometAPI API key.
Body
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://Respons
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.