Nano Banana
Google's state-of-the-art image generation and editing model
Header parameters
AuthorizationstringRequiredExample:
sk-Qp03mnjjNqXKxpnw5qQ4IqVABNfad5YOk1axUhp7pJbokFmuBody
modelstringRequiredExample:
model is the model name
nano-banana-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.
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