by Google

Nano Banana 2.1 edit API: change or combine up to 14 reference photos with text-accurate output at 1K, 2K or 4K, web search optional, about 48 s.

google/nano-banana-2.1/edit
Nano Banana 2.1 AI Image Generator online
  • Up to 4K
  • Up to 14 reference images
  • 14 aspect ratios
  • Create Image
  • Edit Image

About Nano Banana 2.1

Nano Banana 2.1 edit takes a prompt and one to 14 images in image_urls and returns a new image that combines or changes them.

Call it with the model name google/nano-banana-2.1/edit on POST /jobs/createTask, from $0.0504.

Introduction

Nano Banana 2.1 Edit changes or combines one to fourteen images supplied in image_urls. Describe the change in prompt and explain what each source provides. Choose 1k, 2k or 4k. The default aspect ratio is auto, which follows the source shape; fourteen preset ratios are also available.

Choose a mode by starting material

Starting materialMode
A written briefText to image
Images to change or combineEdit images

Key features

Up to fourteen references

Use separate images for a person, garment, product or setting. Refer to them in upload order and explain the role of each. Review how the result combines the sources, especially faces and small product details.

Changes guided by instructions

Ask for a new setting, outfit, colour or lighting arrangement while naming the features to preserve. These instructions guide the edit; compare the result with the originals before approving it.

Reframe while editing

Use aspect_ratio to keep the source shape with auto or request a new composition. When sources have different shapes, set the output ratio you need.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. auto · 1:1 · 3:2 · 2:3 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 16:9 · 21:9 · 1:4 · 4:1 · 1:8 · 8:1 · Default: auto
enable_image_searchNoLooks up real pictures of a place or product first. Default: false
enable_web_searchNoChecks the web first, for dates, places and current facts. Default: false
image_urlsYesPhotos to edit or combine. Say in the prompt what each one adds.
output_formatNoFile type of the result. png · jpeg · Default: png
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 2k · 4k · Default: 1k

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per image
resolution 1K$0.048
resolution 2K$0.072
resolution 4K$0.162

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

Garment and product visualizations

Provide a person and a separate garment or product reference, then describe the intended placement. Check fit, scale, colours and distinguishing details in the output.

A new place or time of day

Move a subject into another setting or change day to night. Specify the face, clothing and other features that should remain recognizable.

Packaging and signage mock-ups

Add a label, cover design or sign to an existing photo. Quote the required text and describe its position, perspective and material.

Prompt guide & pro tips

Identify sources by order

Use the first image, second image and so on to assign the person, garment, product or setting. Keep each reference focused on its intended role.

Name the details to preserve

After the requested change, list the features that matter: face, hair colour, buttons or product markings. Inspect those details rather than assuming the rest of the photo is unchanged.

Treat a larger run as a new image

Test the edit at 1k, then generate at 2k or 4k if needed. A new request can change details and composition; use a separate upscaler when you want to enlarge the existing file.

API quick start

Call the Nano Banana 2.1 API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model google/nano-banana-2.1/edit and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "google/nano-banana-2.1/edit",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "image_urls": [
      "https://media.popnow.ai/influencer/examples/marco.webp"
    ],
    "aspect_ratio": "auto",
    "resolution": "1k",
    "output_format": "png"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

About the Nano Banana 2.1 Edit Image endpoint

Number the photos in the prompt and give each a job, for example the man from image 1 in the jacket from image 2 in the room from image 3.

It can also design an album sleeve, a sign held by a person or another element within a photo. Quote the text you want and specify its position.

Edits typically take about 48 seconds. aspect_ratio is accepted, so the output does not have to match the first reference's shape.

Search flags are available here too, useful when the edit adds current information like a date or a real product.

Nano Banana 2.1 API questions

How much does the Nano Banana 2.1 API cost?

Nano Banana 2.1 starts at $0.0504 per image with Edit Image, its lowest-priced task. Prices by option: 1K $0.048 per image, 2K $0.072 per image, 4K $0.162 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What are the limits of the Nano Banana 2.1 · Edit Image API?

Resolutions: 1K · 2K · 4K; Aspect ratios: auto · 1:1 · 3:2 · 2:3 · 3:4 · 4:3 +9; Reference images: 14; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.

More about Nano Banana 2.1