Nano Banana 2
sk-Yf4DNVYmodel is the model name
google/nano-banana-2-image-to-imageThe text prompt to generate an image from.
A cute baby sea otter.The seed for the random number generator.
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: The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: "4"
Possible enum values: 1, 2, 3, 4, 5, 6
4Example: 4The URLs of the images to use for image-to-image generation or image editing.
The resolution of the image to generate. Default value: "1K"
Possible enum values: 0.5K, 1K, 2K, 4K
1KExample: 1KExperimental parameter to limit the number of generations from each round of prompting to 1. Set to True to to disregard any instructions in the prompt regarding the number of images to generate and ignore any intermediate images generated by the model. This may affect generation quality. Default value: true
trueEnable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image.
The number of images to generate. Default value: 1
1Example: 1Possible values: output_format indicate the output format, default value is url.
urlExample: urlPossible values: Last updated