Generate video or images (spends credits)
flow_generateGenerates Google Flow videos or images from text, start/end frames, or reference images, and quotes the credit cost, with a dry run to check spend before generating.
Instructions
Generate video or images in Google Flow, spending the signed-in account's Flow credits (images are usually 0). Text-to-video, text-to-image, image-to-video from a start frame (optionally to an end frame), or guided by ingredient images. Returns a job_id, the credit cost Flow quoted, and the outputs. Use dry_run to get the cost without generating. Omitted settings keep whatever Flow has selected. An option Flow does not offer is an error; nothing is substituted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "flow_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | video | |
| wait | No | Wait for the result. With false, returns the job_id at once; poll flow_job | |
| count | No | How many outputs; cost scales with this | |
| model | No | Model name as shown in Flow, e.g. "Veo 3.1 - Lite"; see flow_list_models | |
| prompt | Yes | ||
| dry_run | No | Apply settings and report the credit cost, but do not generate or upload | |
| download | No | Save the finished outputs to disk as soon as they are ready | |
| end_frame | No | Video: last frame, same forms as start_frame; needs start_frame | |
| output_dir | No | Folder for download=true; defaults to ~/.flow-mcp/downloads | |
| resolution | No | Video, on models that offer it, e.g. "720p" | |
| ingredients | No | Reference images (subject, product, style): absolute local paths or titles of project media. Not combinable with start_frame | |
| max_credits | No | Refuse if Flow quotes more than this. Defaults to FLOW_MCP_MAX_CREDITS (100) | |
| start_frame | No | Video: first frame. Absolute path of a local image (uploaded for you) or the title of an image in the project | |
| aspect_ratio | No | e.g. "16:9" or "9:16" | |
| thinking_level | No | Image, on models that offer it: "Low", "Medium", "High" | |
| timeout_seconds | No | How long to wait before returning status "generating" | |
| download_variant | No | original | |
| duration_seconds | No | Video clip length, on models with a Length slider; cost scales with it |