Start a video with Google Flow (spends credits)
generate_videoCreate Veo or Omni videos and video-to-video edits, approving Flow's credit quote only when it stays within your max_credits limit.
Instructions
Shortcut for flow_chat + flow_approve: asks the agent for a video and approves its quote only when it is at or below max_credits (default 10 = one 8 s Veo 3.1 Lite video on a free account), otherwise rejects. SPENDS FLOW CREDITS: tell the user the expected cost and check flow_credits first; never call it again to retry. Returns as soon as the render has started: 'started' (collect the mp4 with flow_wait, passing media ids or since), 'needs_answer' (the agent asked something: show the user and reply with flow_chat), 'over_budget' (nothing spent) or 'failed' (Flow failed the render right away; failures has its message). Every result includes the agent's messages. A source_video makes it an Omni video-to-video edit (20 credits at 720p, same length as the clip). Inputs given a role (start_frame, end_frame, ingredients, source_video: each a local file or a project media id) are numbered and explained to the agent; prefer them to plain attachments. Veo takes either frames (image-to-video) or ingredients (reference-to-video), not both: given both, the agent asks which to use (needs_answer, nothing spent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Defaults to the project's video model | |
| prompt | Yes | The video to make: shot size and camera move, subject, action, setting, style and lighting, audio | |
| end_frame | No | Image the video ends on (local path or media id) | |
| media_ids | No | Media already in the project to attach (ids from flow_assets) | |
| characters | No | Flow characters of this project to include, by name or id (flow_characters): they keep their look, and their voice in video | |
| project_id | No | Existing project (flow_projects). Use it to keep working on the same piece. | |
| attachments | No | Other local files, without a stated role; prefer the role fields above. Uploaded once per project | |
| ingredients | No | Character, object, setting or style references to keep the look of (local paths or media ids); plain backgrounds work best | |
| max_credits | No | Highest credit cost to approve (default 10). Above it the request is rejected and nothing is spent. | |
| new_session | No | Start a fresh agent chat in the project (media kept, conversation memory reset) | |
| start_frame | No | Image the video opens on (local path or media id), e.g. the last frame of the previous shot from flow_frame | |
| aspect_ratio | No | ||
| source_video | No | Video to edit or restyle (local path or media id): an Omni video-to-video edit | |
| confirm_rights | No | The user confirmed they hold the rights to the attached files; Flow asks this on upload | |
| project_purpose | No | For a new project: one line on what it is for | |
| new_project_title | No | Instead: create a new project with this title, for a new idea or deliverable |