You're looking at a specific version of this model. Jump to the model overview.

google /nano-banana-2:2de9ad5b

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
A text description of the image you want to generate
image_input
array
[]
Input images to transform or use as reference (supports up to 14 images)
aspect_ratio
None
match_input_image
Aspect ratio of the generated image
resolution
None
1K
Resolution of the generated image. Higher resolutions take longer to generate.
google_search
boolean
False
Use Google Web Search grounding to generate images based on real-time information (e.g. weather, sports scores, recent events).
image_search
boolean
False
Use Google Image Search grounding to use web images as visual context for generation. When enabled, web search is also used automatically.
output_format
None
jpg
Format of the output image

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}