Generate or edit image (Nano Banana)
flow_generate_imageGenerate images from text prompts or edit and restyle existing ones with Google's image models. Build characters, props, and keyframes, then reuse the returned asset IDs for video generation.
Instructions
Create or edit images with Google's image models (Nano Banana / Imagen), as in Flow's image tools. Without inputImages: text-to-image. With inputImages: edit, restyle, or combine them according to the prompt. Use it to build characters, props and keyframes, then pass the returned asset ids to flow_generate_video as startImage/endImage/referenceImages. Returns local paths and a preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Override model id, e.g. gemini-3-pro-image-preview or imagen-4.0-generate-001. | |
| prompt | Yes | Description of the image or the edit to make. | |
| preview | No | Return the image inline so you can see it (default true). | |
| imageSize | No | ||
| aspectRatio | No | Use 16:9 or 9:16 for video keyframes. | |
| inputImages | No | Asset ids or local paths to edit/compose. | |
| numberOfImages | No |