Google modelsimage generation api

google/nano-banana-2/edit

Nano Banana 2 is Google's new state-of-the-art image generation and editing model

Input
Idle

Example output — click Run to generate your own

API README

Google Nano Banana 2 Image Editing

Fast image editing powered by Google's Nano Banana 2 model. Modify existing images with natural language — swap elements, combine subjects, change backgrounds, or restyle — with support for up to 14 reference images and web search grounding.

Highlights

Multi-image synthesis — Accepts up to 14 reference images per request. Combine elements from multiple sources, apply styles cross-image, or use product photos as composition guides.

Web & Image Search grounding — Use Google Image Search to pull web images as visual context, enabling reference-aware edits without manual asset upload.

Extended aspect ratios — Output in extreme ratios (1:8, 8:1) for banners and scrolling content, plus all standard ratios.

Fast turnaround — Optimized for speed, making it suitable for high-volume editing workflows.

Pricing

ResolutionPrice
0.5K$0.04
1K$0.06
2K$0.10
4K$0.14
Web SearchFree
Image SearchFree

When to Use

✅ Good fit❌ Consider alternatives
Virtual try-on (clothing on models)Generating from scratch (use Generation model)
Product background swapsPixel-perfect mask control
Combining multiple items into one sceneReal-time interactive editing
Style transfer across imagesVideo manipulation
Batch product photo editingSimple crops or color adjustments

Technical Specs

SpecValue
InputText prompt + 1–14 image URLs
OutputPNG or JPEG
Resolution0.5K / 1K / 2K / 4K
Aspect ratio21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8
Web SearchGoogle web + image search grounding
ExecutionAsync (submit → poll for result)
Typical latency20–40 seconds

Related

Related Models

google/nano-banana-2Nano Banana 2 is Google's new state-of-the-art fast image generation and editing modelgoogle/gemini-3.1-flash-image-preview/editGemini 3.1 Flash Image Preview Edit is Google's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.google/imagen-3Imagen 3 by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.google/imagen-3/fastImagen 3 Fast is Google's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.google/imagen-4/previewImagen 4 Preview by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.google/imagen-4/preview/fastImagen 4 Preview Fast is Google's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.google/imagen-4/preview/ultraImagen 4 Preview Ultra by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.google/nano-bananaGoogle's famous original image generation and editing model.