Skip to main content
POST
Image to Image Edit

Overview

Nano Banana Pro can restyle or surgically modify a reference image while maintaining global composition. Provide one or more images plus a short instructionβ€”Pro’s upgraded diffusion backbone keeps lighting, textures, and edge fidelity intact.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Image to image edit request body

prompt
string
required

Text prompt for image editing

images
string[]
required

List of images to edit. Supports both image URLs and base64-encoded images (minimum 1, maximum 14). Base64 encoded image data is like "data:image/png;base64,iVBORw0KGgoAAAA..."

Required array length: 1 - 14 elements
aspect_ratio
enum<string>
default:1:1

Aspect ratio of the edited image

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
resolution
enum<string>
default:2K

Output resolution preset (longest side in pixels)

Available options:
1K,
2K

Response

202 - application/json

Task created successfully

task_info
object