Nano Banana Pro Edit (Gemini 3 Pro Image Edit)

This documentation is valid for the following list of our models:

  • google/nano-banana-pro-edit

  • google/gemini-3-pro-image-preview-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

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. Supports up to 14 images.

aspect_ratiostring · enumOptional

The aspect ratio of the generated image.

Default: 1:1Possible values:
resolutionstring · enumOptional

The size of the generated image.

Default: 1KPossible values:
num_imagesnumber · min: 1 · max: 4Optional

The number of images to generate.

Default: 1
Responses
post
/v1/images/generations
200Success

Quick Example

Let's generate an image of the specified size using two input images and a prompt that defines how they should be edited.

Response
Reference Images
Generated Image
Image #1
"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."
Image #2

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?