Create or edit images with Google Flow
generate_imageCreates and edits images through the Flow agent and saves them locally, honoring attached files, project media, and characters. Use it to turn a text prompt into finished images without spending Flow credits.
Instructions
Asks the Flow agent for images and saves them locally. To edit, attach the image (attachments for local files, media_ids for project media) and describe the change, or in the same project just name the image the agent made. The agent may rewrite the prompt and make several images (default 2 with Nano Banana); say 'one image' to steer it. The result includes what the agent said. Images use no Flow credits. Takes 30-120 s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to create or change | |
| 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 | Local image/video paths; uploaded once per project, then reused. Flow asks for rights confirmation (see confirm_rights) | |
| new_session | No | Start a fresh agent chat in the project (media kept, conversation memory reset) | |
| 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 |