flow_generate_frame
Generates an image keyframe, starting frame, or product shot from a text prompt, optionally fusing up to 14 reference images, using your signed-in Google Flow credits.
Instructions
Generate an image (starting frame, keyframe, product shot) with Nano Banana.
By default (use_browser_credits=True, or when no API key is set) it uses your signed-in
Google Flow account and credits, no API key needed. In that mode Flow picks the size, and
image_size, model and previous_interaction_id are ignored.
Args: prompt: Detailed visual description of the frame or edit instruction. reference_images: Optional list of up to 14 local image paths to fuse. aspect_ratio: Aspect ratio ('16:9', '9:16', '1:1'). Default '16:9'. image_size: Output resolution ('1K', '2K', '4K'). Default '2K'. model: Gemini image model ('gemini-nano-banana-2.1' or 'gemini-3-pro-image'). previous_interaction_id: Optional interaction ID from a prior turn. output_path: Optional custom local file path for saving the image. use_browser_credits: If True (default), uses your Google Flow sign-in and credits instead of the Gemini API.
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_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | gemini-nano-banana-2.1 | |
| prompt | Yes | ||
| image_size | No | 2K | |
| output_path | No | ||
| aspect_ratio | No | 16:9 | |
| reference_images | No | ||
| use_browser_credits | No | ||
| previous_interaction_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |