Nano Banana 2 Edit

15% OFFgoogle/nano-banana-2/edit

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

Base price
$0.06$0.07USD / run
Execution
async
Model type
image
Input fields
7
Production route

Try the model

Playground

Open playground
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. Leave empty to keep the aspect ratio of the input image. Allowed values: 21: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.
The format of the generated image. Allowed values: jpeg, png.
The resolution of the image to generate. Allowed values: 0.5K, 1K, 2K, 4K.
15% OFF
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.06 / run

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Google
Model ID
google/nano-banana-2/edit
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

Human preference

Arena

Elo ratings from blind side-by-side votes, compared with other image and video models.

Rankings sourced from Artificial Analysis Arena

Leaderboard
Image Editing
Rank
#14 of 77
Elo
1123 ±12
Gap to #1
−76

Image-editing arena: people pick the better of two edits of the same image and instruction, without seeing the model names.

  1. #9Seedream 5.0 ProByteDance SeedOn SandBase1131±13
  2. #10Muse ImageMeta1129±12
  3. #11MAI-Image-2.5Microsoft AIOn SandBase1127±13
  4. #12Krea 3 (Fast)Krea1126±14
  5. #13MAI-Image-2.5-ProMicrosoft AIOn SandBase1123±12
  6. #14Nano Banana 2 (Gemini 3.1 Flash Image)GoogleThis model1123±12
  7. #15FLUX 3 ImageBlack Forest Labs1122±14
  8. #16GPT Image 1.5 (high)OpenAIOn SandBase1119±13
  9. #17Grok Imagine Image 2.0SpaceXAIOn SandBase1117±13
  10. #18Nano Banana Pro (Gemini 3 Pro Image)GoogleOn SandBase1108±12

API README

Nano Banana 2 Edit

Edit or combine images with Nano Banana 2, Google's fast image model. Send images with an instruction to restyle, retouch, swap objects, or merge several inputs into one scene.

Fields

FieldTypeDefaultNotes
imagesimage URL[], required—Images to edit or combine, Image 1, Image 2, …
promptstring, required—Up to 50,000 characters.
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—Omit to follow the first input image.
output_formatjpeg / pngpngOutput file format.
resolution0.5K / 1K / 2K / 4K1KSets the per-image rate.
enable_web_searchbooleanfalseGround the edit in Google Search results.
enable_image_searchbooleanfalseUse image search results as visual references.

Billing

$0.045 at 0.5K, $0.067 at 1K, $0.101 at 2K, and $0.151 at 4K per image, Google's list price. Input images are not metered. Turning on enable_web_search or enable_image_search adds $0.014 per request (charged once even if both are on).

Request0.5K1K2K4K
One image$0.045$0.067$0.101$0.151

Failed runs are not charged.

Prompting

  • Say which image is the base and what each other image contributes.
  • List what must not change.

Limits

  • One output image per request.

Also on SandBase

Other Nano Banana endpoints: google/nano-banana-pro, google/nano-banana-pro/edit, google/nano-banana-2, google/nano-banana-2-lite, google/nano-banana-2-lite/edit.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
google/nano-banana-2/edit
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "google/nano-banana-2/edit",
  "images": [
    "https://ai.google.dev/static/gemini-api/docs/images/man_in_white_glasses.jpg"
  ],
  "prompt": "Make a 3 panel comic in a gritty, noir art style with high-contrast black and white inks. Put the character in a humurous scene.",
  "resolution": "1K",
  "output_format": "png",
  "enable_web_search": false,
  "enable_image_search": false
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
GoogleImage$0.07 / runFeb 26, 2026
GoogleImage$0.04 / runOct 6, 2026
GoogleImage$0.04 / runOct 6, 2026
GoogleImage$0.03 / runJun 30, 2026
GoogleImage$0.03 / runJun 30, 2026
GoogleImage$0.07 / runFeb 26, 2026

Questions

FAQ

How do I call Google Nano Banana 2 Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "google/nano-banana-2/edit" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Nano Banana 2 Edit and the other models in the catalog; you do not need to sign up with Google separately.