Create a video
Parameters
Polling
GET /videos/{id} is free. Status moves queued → processing (with progress) → completed (with video_url) or failed (auto-refunded).
Edit or extend a finished clip
Clips made withgemini-omni-flash stay revisable. Send the finished clip’s id back as video_id and describe the change in prompt; the clip’s length and everything you do not mention stay the same. Add task: "extend" with a duration of 3–10 to append new footage instead — you get the whole lengthened clip back, up to 40 seconds. model can be left out; a revision always runs on the model that made the clip.
Which model?
Prompting for motion
The formula: camera movement + subject action + style + lighting.