Nano Banana 2
"vendor": "google""model_name": "nano-banana-2"Next-generation image generation and editing model with 4K support, 14 aspect ratios, and web search grounding
Pricing Card
OFFICIALPlayground Setup
Output
Waiting for Input
"vendor": "google""model_name": "nano-banana-2"Next-generation image generation and editing model with 4K support, 14 aspect ratios, and web search grounding
Waiting for Input
Nano Banana 2 is Google's next-generation image model powered by Gemini 3.1 Flash, featuring 4K resolution support, 14 aspect ratios, and Google Search grounding. It supports up to 14 reference images for advanced editing with high-fidelity object and character consistency.
web_search is enabled)images* requiredlist<string>List of reference images for editing. Supports both image URLs and base64-encoded images.
Base64 format: data:image/png;base64,{base64_data}
Supported formats: JPEG, JPG, PNG, BMP, WEBP Max file size per image: 20MB
Nano Banana 2 supports up to 14 reference images:
prompt* requiredstringText prompt for image editing. Describe the desired change conversationally.
For adding/removing elements: "Add a wizard hat on the cat's head" For inpainting: "Change only the blue sofa to a brown leather chesterfield" For style transfer: "Transform this photo into Van Gogh's Starry Night style"
resolutionEnum · Default: "1K"Output resolution preset.
Note: Must use uppercase K (e.g. 1K, 2K, 4K). Lowercase will be rejected.
web_searchboolean · Default: falseEnable Google Search grounding for image editing. When enabled, the model can use Google Search (including Web Search and Image Search) to verify facts and generate imagery based on real-time data such as current weather, stock charts, recent events, or accurate depictions of real-world subjects.
aspect_ratioEnum · Default: "1:1"Aspect ratio of the edited image (width:height).