Een Omni-video maken
Maak een beta Omni-videotaak via CometAPI met POST /v1/videos, poll vervolgens de taak en download het voltooide MP4-bestand.
id op en poll de taak totdat deze een terminale status bereikt.
Beta
POST /v1/videos gebruikt multipart/form-data; geef scalaire instellingen door als formuliervelden.
Kies een invoermodus
model=omni-fast voor deze pagina.
Stel duur, verhouding en resolutie in
Omni is als beta gemarkeerd omdat de stabiliteit van de generatie kan variëren per invoer en geselecteerde route. Houd het eerste verzoek klein en inspecteer daarna de voltooide video voordat je vertrouwt op een specifieke gerenderde duur of framegrootte.aspect_ratio en resolution behandelen als generatievoorkeuren en het gedownloade MP4-bestand controleren voordat je afhankelijk bent van de uiteindelijke pixels.
Taakverloop
Maak de taak
id op.Poll de taak
status completed of failed is.Download het resultaat
completed is, roep je Omni-video-inhoud ophalen aan om het MP4-bestand te downloaden.Autorisaties
Bearer authentication. Use your CometAPI API key.
Body
Omni model ID for this endpoint. Use omni-fast for text-to-video.
omni-fast "omni-fast"
Text prompt that describes the video to generate.
"Ocean waves rolling onto a sandy beach at golden hour"
Requested clip duration in seconds. Start with 4 while this endpoint is beta.
"4"
Output aspect ratio preference. 16:9 and 9:16 are the most predictable; 1:1 can be accepted but may render as landscape.
16:9, 9:16, 1:1 "16:9"
Output resolution preference. Start with 720p. 1080p can be accepted but current production output may normalize to 720p.
"720p"
Respons
Task accepted. Store the returned id and poll GET /v1/videos/{task_id}.
Task ID. Use this value with retrieve and content endpoints.
"task_example"
Object type. Video tasks return video.
"video"
Model ID used for the task.
"omni-fast"
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 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.