Edit images based on text prompts using Gemini Nano-Banana model
aspect_ratio parameter allows you to specify the desired aspect ratio for the edited image. Different aspect ratios are suitable for different use cases.
| Aspect Ratio | Resolution |
|---|---|
| 1:1 | 1024×1024 |
| 2:3 | 832×1248 |
| 3:2 | 1248×832 |
| 3:4 | 864×1184 |
| 4:3 | 1184×864 |
| 4:5 | 896×1152 |
| 5:4 | 1152×896 |
| 9:16 | 768×1344 |
| 16:9 | 1344×768 |
| 21:9 | 1536×672 |
aspect_ratio parameter is optional. If not specified, the default aspect ratio will be used.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Image to image edit request body
Text prompt for image editing
List of images to edit. Supports both image URLs and base64-encoded images (minimum 1, maximum 10). Base64 encoded image data is like "data:image/png;base64,iVBORw0KGgoAAAA..."
1 - 10 elementsAspect ratio of the edited image
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 Task created successfully