Generate a video
flow_generate_videoGenerate and download videos via the Flow agent composer. Prepare and verify prompt, settings, and reference images before spending credits, then confirm to render, or resume interrupted jobs.
Instructions
Generate one video through the Flow agent composer and download it. Spends Flow credits when auto_confirm=true. Call with auto_confirm=false first: the prompt, settings and reference image are prepared and verified but nothing is sent. resume=true skips the composer and only waits for / downloads an in-flight generation (after a crash or timeout).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | veo-3.1-fast | |
| ratio | No | 9:16 | |
| job_id | No | Job to resume; defaults to the latest in-flight job for project_url + output_dir | |
| prompt | Yes | Scene description; the tool wraps it into an instruction with model/ratio/duration | |
| resume | No | ||
| duration | No | Seconds; 10 is Omni Flash only | |
| edit_mode | No | Edit the last video of the current agent session instead of generating a new one | |
| output_dir | Yes | Local directory for the downloaded file (flow_<id8>_<job>.mp4) | |
| project_url | Yes | Project the video is generated in; outputs are saved to that project | |
| auto_confirm | No | false = prepare only (0 credits); true = send and wait | |
| reference_images | No | Local image paths attached as the first frame / reference |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| files | Yes | Absolute paths of downloaded outputs | |
| model | Yes | ||
| ratio | Yes | ||
| job_id | Yes | Pass back with resume=true to pick up this generation after a restart | |
| prompt | Yes | The exact instruction sent to the Flow agent | |
| status | Yes | ||
| duration | No | ||
| media_ids | Yes | ||
| elapsed_ms | Yes | ||
| screenshot | No | ||
| approval_text | Yes | Text of the approval card if one was shown (contains the credit cost) | |
| references_attached | Yes |