Nano Banana 2 multimodal image model. Omit image for text-to-image or include it for image-to-image. Supports 14 aspect ratios, 512-4K.
API Key authentication. Format: Bearer YOUR_API_KEY.
Image description text
1"A colorful abstract painting with flowing shapes"
Optional reference image in data URI format (data:image/png;base64,...). When provided, the model performs image-to-image editing guided by the prompt.
"data:image/png;base64,iVBORw0KGgo..."
Image aspect ratio (14 options supported)
1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 "1:1"
Output image resolution
512, 1K, 2K, 4K "1K"