SandBase is live — $1 in free credits on signupStart free ›

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

PNG, JPEG, WebP, or GIF · 20 MiB maximum each

The URLs of the images to use for image-to-image generation or image editing.
The text prompt to generate an image from.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
The format of the generated image. Allowed values: jpeg, png.
The resolution of the image to generate. Allowed values: 1K, 2K, 4K.
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