Nano Banana Pro

nano-banana-pro-text-to-image

post

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-mx9BKfE
Body
modelstringRequired

model is the model name

Example: nano-banana-pro-text-to-image
promptstringRequired

The text prompt to generate an image from.

Example: A cute baby sea otter.
sizestring · enumOptional

The aspect ratio of the generated image. Default value: "1:1"

Possible enum values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16

Default: 1:1Example: 1:1Possible values:
resolutionstring · enumOptional

The resolution of the image to generate. Default value: "1K"

Possible enum values: 1K, 2K, 4K

Default: 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 · enumOptional

The number of images to generate. Default value: 1

Default: 1Example: 1Possible values:
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/images/generations
200Success

Last updated