Nano Banana 2 Lite
Model Overview
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[] · max: 5Optional
List of URLs or local Base64 encoded images to edit.
aspect_ratiostring · enumOptionalPossible values:
The aspect ratio of the generated image. It is taken from this parameter or from the provided reference image. If the parameter is not set and no reference image is provided, the default value is 16:9.
resolutionstring · enumOptionalDefault:
The resolution of the output image.
1KPossible values: enable_web_searchbooleanOptionalDefault:
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.
falseResponses
200
Successful response.
application/json
post/v1/images/generations
200
Successful response.
Code Example
Last updated
Was this helpful?