Gemini 2.5 Flash Image Editing
Images
Gemini 2.5 Flash Image Editing
POST
Gemini 2.5 Flash Image Editing
Edit images with text prompts using the Gemini 2.5 Flash model. You can provide images via URLs or base64-encoded strings.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
A text prompt describing the desired edits to the image
A list of input image URLs to edit
The aspect ratio of the generated image. Available values: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9Allowed values:
1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9A list of base64-encoded images to edit
Response
A list of URLs for the edited output images