Nano Banana 2 Image API

Nano Banana 2 is a multi-resolution generation and editing route covering 1K, 2K and 4K at a fixed local task cost.

Last verified: 2026-08-17

About the Nano Banana 2 API

Nano Banana 2 is a multi-resolution generation and editing route covering 1K, 2K and 4K at a fixed local task cost.

  • Available image sizes: 1K, 2K, and 4K
  • Operations: generation and edit
  • Fixed local cost: 40 credits per task
  • Result delivery: asynchronous task polling

Best uses for Nano Banana 2

General-purpose Nano Banana 2 integrationsReview the request contract below before choosing this model for production traffic.
Workflows that switch between 1K, 2K and 4KReview the request contract below before choosing this model for production traffic.
Generation and reference-image editingReview the request contract below before choosing this model for production traffic.

Model summary

Fixed credit cost
40
Output type
image
Operations
generation, edit
Image sizes
1K, 2K, 4K

Generation request

json
{  "model": "nano-banana-2",  "prompt": "A cinematic product photograph with soft studio lighting",  "aspect_ratio": "1:1",  "image_size": "1K",  "response_format": "url"}

Image field contract

FieldUseValues
modelRequired model IDnano-banana-2
promptRequired generation or editing instruction1–20,000 characters
aspect_ratioOutput ratioauto, 1:1, 16:9, 9:16, 4:3, 3:4
image_sizeResolution tier1K, 2K, 4K
image_urlsRequired only for edits1–16 public HTTPS URLs
response_formatOptionalurl

Review the complete image API guide.

Nano Banana 2 API FAQ

What can Nano Banana 2 do?

Nano Banana 2 supports asynchronous generation and edit. Nano Banana 2 is a multi-resolution generation and editing route covering 1K, 2K and 4K at a fixed local task cost.

Which output sizes does Nano Banana 2 support?

Nano Banana 2 supports 1K, 2K, and 4K. Use the exact model ID and size fields documented on this page so the request can be validated locally.

How many credits does Nano Banana 2 use?

The current local price is 40 credits per generation or editing task. The task stores its quoted cost when it is created.