Nano Banana Pro Edit (Gemini 3 Pro Image Edit)
Model Overview
Google’s smartest image-to-image model as of the November 2025 preview release. 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
Provider routing override. google runs native Google with no fallback; fal runs the fal.ai mirror; auto (default) uses the Google -> fal.ai fallback chain. Case-insensitive.
autoThe text prompt describing the content, style, or composition of the image to be generated.
List of URLs or local Base64 encoded images to edit.
The aspect ratio of the generated image. It is taken from this parameter or from the provided reference image. If the parameter is not set and no reference image is provided, the default value is 16:9.
The resolution of the output image.
1KPossible values: The number of images to generate.
1Successful response.
curl --request POST \
--url 'https://api.aimlapi.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "google/gemini-3-pro-image-edit", "prompt": "Describe what you want the model to generate."}'Successful response.
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Quick Example
Generate an image with the specified quality and aspect ratio using two input images and a prompt that defines how the images should be edited.



Here’s an example of the output using alternative resolution and aspect_ratio parameters:

"aspect_ratio": "16:9", "resolution": "2K"Last updated
Was this helpful?