flow_text_to_video
Turns a detailed text prompt into an MP4 video via your signed-in Google Flow account, using subscription credits and configurable aspect ratio, duration, and resolution.
Instructions
Generate a video from a text prompt using Google Flow.
By default (use_browser_credits=True or when no API key is set), uses your logged-in Google Flow email and subscription credits at labs.google/fx/tools/flow.
Args: prompt: Detailed scene, camera motion, lighting, and sound design prompt. aspect_ratio: '16:9' (landscape) or '9:16' (vertical/reels). Default '16:9'. duration: Video length in seconds (3 to 15, default 10). resolution: Output resolution ('360p', '720p', '1080p', '4k'). Default '720p'. output_path: Optional local file path to save the generated MP4. use_browser_credits: If True (default), uses your logged-in Google Flow web session & credits without needing an API key.
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_text_to_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| duration | No | ||
| resolution | No | 720p | |
| output_path | No | ||
| aspect_ratio | No | 16:9 | |
| use_browser_credits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |