iterate_image
Refine images through iterative conversation. Provide an initial image and prompts to adjust details, colors, or composition in each turn.
Instructions
Iteratively refine an image through multi-turn conversation. Start a new session with an image, or continue an existing session to make incremental adjustments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Instructions for the current iteration (e.g., 'Make the colors warmer' or 'Add more detail to the background') | |
| imagePath | No | Path to the initial image. Required when starting a new session (no sessionId provided). | |
| sessionId | No | Session ID from a previous iteration. Omit to start a new session. | |
| aspectRatio | No | Optional aspect ratio for the output image. If not provided, Gemini will auto-select. Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |