Nano Banana Pro
Nano Banana Pro (a.k.a Nano Banana 2) is Google's new state-of-the-art image generation and editing model
Header parameters
AuthorizationstringRequiredExample:
sk-mx9BKfEmsBody
modelstringRequiredExample:
model is the model name
nano-banana-pro-image-to-imagepromptstringRequiredExample:
The text prompt to generate an image from.
A cute baby sea otter.sizestring · enumOptionalDefault:
The aspect ratio of the generated image. Default value: auto
Possible enum values: auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16
autoExample: autoPossible values: image_urlsstring[]Required
The URLs of the images to use for image-to-image generation or image editing.
resolutionstring · enumOptionalDefault:
The resolution of the image to generate. Default value: "1K"
Possible enum values: 1K, 2K, 4K
1KExample: 1KPossible values: enable_web_searchbooleanOptional
Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image.
ninteger · enumOptionalDefault:
The number of images to generate. Default value: 1
1Example: 1Possible values: output_formatstring · enumOptionalDefault:
output_format indicate the output format, default value is url.
urlExample: urlPossible values: Responses
200Success
application/json
post
/v1/images/edits200Success
Last updated