Google modelsimage generation api

google/nano-banana-pro/edit

Nano Banana Pro 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 Pro Image Editing

Precision image editing powered by Google's Nano Banana Pro model. Modify existing images with natural language instructions — swap outfits, combine subjects, change backgrounds, or restyle elements — while preserving quality and coherence.

Highlights

Multi-image synthesis — Accepts up to 14 reference images in a single request. Combine product photos, merge elements from different sources, or apply styles from one image to another.

Context-aware editing — Understands spatial relationships and visual context. Edits blend naturally with the original image, maintaining lighting consistency, perspective, and material textures.

Reference-driven generation — Use input images as style guides, subject references, or composition templates. The model extracts relevant features and applies them intelligently to the output.

Cost-efficient — $0.12 per edit (1K/2K), $0.24 for 4K. Competitive pricing regardless of the number of input images.

Pricing

ResolutionPrice
1K$0.12
2K$0.12
4K$0.24

When to Use

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

Input Requirements

  • Images provided as publicly accessible URLs
  • Supported formats: PNG, JPEG, WebP
  • Up to 14 images per request
  • For best results: use consistent lighting and resolution across input images

Technical Specs

SpecValue
InputText prompt + 1–14 image URLs
OutputPNG or JPEG
Resolution1K / 2K / 4K
Aspect ratioMatches input or specified
ExecutionAsync (submit → poll for result)
Typical latency25–50 seconds

Related

Related Models

google/nano-banana-proNano Banana Pro is Google's new state-of-the-art 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.