Gemini 2.5 Flash Image Edit (Nano Banana)
Model Overview
The model takes multiple images as input, with the prompt defining how they are used or combined.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstringRequired
The text prompt describing the content, style, or composition of the image to be generated.
image_urlsstring · uri[]Required
List of URLs or local Base64 encoded images to edit.
num_imagesnumber · min: 1 · max: 4OptionalDefault:
The number of images to generate.
1Responses
200Success
application/json
post
/v1/images/generations200Success
Quick Example
Let's generate an image using two input images and a prompt that defines how they should be edited.
Reference Images
Generated Image


"Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect."
Last updated
Was this helpful?