by Google

Fast Gemini images up to 4K, with up to 14 references

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

About Nano Banana 2

Nano Banana 2 provides image creation and multi-reference editing for a publishing or design application. Its optional web and image searches are distinct controls, while a resolution tier determines output size. The museum dinosaur and cookbook cover examples can help test a creation gallery; Dress color swap gives a reference revision fixture. Save each request as a project version rather than letting optional searches obscure the original brief.

Call it with the model name google/nano-banana-2/text-to-image on POST /jobs/createTask, from $0.036.

Introduction

Nano Banana 2 Text to image is Google's Gemini 3.1 Flash Image, released on 26 February 2026, generating images from a written prompt. Google describes it as Pro-level image quality at Flash speed.

Choose a mode by starting material

What you haveMode
a written briefNano Banana 2 Text to image
an image to changeNano Banana 2 Edit

Key features

Four tiers, fourteen shapes

From 512-pixel drafts to 4096-pixel finals, and from 1:8 towers to 8:1 banners. At 2k our 4:1 banner came back 4128 pixels wide.

Search before drawing

Web search pulls current facts such as dates, weather and landmarks; image search pulls reference pictures of real places and products. Both are optional switches on the request.

Request parameters

ParameterRequiredDescription
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 0.5k · 1k · 2k · 4k · Default: 1k
aspect_ratioNoThe shape of the frame: wide, square or tall. 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: 16:9
enable_web_searchNoChecks the web first, for dates, places and current facts. Default: false
enable_image_searchNoLooks up real pictures of a place or product first. Default: false

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 0.5K$0.036
resolution 1K$0.039
resolution 2K$0.0808
resolution 4K$0.1208

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

Website headers and billboards

Ultra-wide 4:1 and 8:1 banners rendered as one continuous photograph, with no stitching or stretching afterwards.

Fast fashion and lifestyle drafts

Many directions per hour at 0.5k and 1k, with the strongest re-run at 2k for delivery.

Real places and products

With image search on, scenes set at a real landmark or featuring a real product can draw on reference pictures from the web.

Tall frames for mobile

Tall 1:4 and 1:8 frames for story formats and side banners, generated as one continuous image.

Prompt guide & pro tips

Give wide frames content at both ends

For 4:1 and 8:1, describe what fills the left and right edges: a long beach, a skyline, a row of shopfronts. Otherwise the ends turn into empty sky.

Use search for facts, not style

Web search helps when the picture depends on something current or real. It does not improve style or composition, so leave it off otherwise.

Draft small, deliver large

Keep the prompt unchanged between 0.5k and 4k; the composition stays close, so choices made on the draft carry over.

Pick 2k for delivery

At 2k a square image is 2048 pixels across, which is enough for most screens and pages; keep 4k for print and heavy crops.

API quick start

Call the Nano Banana 2 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/text-to-image 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/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "aspect_ratio": "16:9",
    "resolution": "1k"
  }
}'

# 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.

What to build with the Nano Banana 2 API

  • Offer a cover illustration workflow with separate switches for factual web lookup and reference picture lookup. Keep both settings visible in the saved version so authors know which request options they approved.
  • Add a revision action that attaches source pictures to a design brief. Preserve the source order and distinguish user-provided images from optional search settings, which do not populate the explicit image_urls array in your application.

Nano Banana 2 parameter notes

  • The prompt must fit its published bound. Creation defaults to a landscape ratio, while editing defaults to auto. Configure the form from the selected task instead of forcing a common square default across both operations.
  • resolution uses exact tier strings from 0.5k through 4k. These values are not arbitrary pixel dimensions. Keep ratio and resolution as separate fields, including the unusually wide or tall ratios supported by this model.
  • enable_web_search and enable_image_search both start false. official_fallback starts true and can change the billed route when the initial attempt cannot complete. Retain that boolean when requesting a quote rather than hiding it in an undocumented application default.

How Nano Banana 2 API pricing adds up

Images are billed at the selected resolution tier. With official_fallback enabled, the permitted fallback can bill at its official rate, so the usual expected amount may differ from the acceptance maximum. Use maxChargeUsd or the accepted quote identifier to authorize the hold, then display costUsd from the final record. Do not treat expectedChargeUsd as permission for the maximum reserve.

  • resolution 0.5k: $0.036 per run, $3.60 for 100 runs
  • resolution 4k: $0.1208 per run, $12.08 for 100 runs

Async jobs, webhooks and rate limits

Every Nano Banana 2 request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for google/nano-banana-2/text-to-image never runs or bills twice.

Common Nano Banana 2 API errors

errorCodeWhat it usually means and how to fix it
invalid_requestCheck exact size tier and ratio values for the chosen task. Keep search and fallback flags boolean and remove seed fields, which this schema does not expose.
invalid_assetInspect source links in editing requests and verify that the array contains accessible images. Search settings do not repair inaccessible explicit sources.
upstream_unavailablePreserve the project state and inspect the failed task. Let the user decide on a later attempt rather than silently changing fallback approval or submitting another paid request.

Nano Banana 2 price on other platforms

OptionsPopNowfalRunwayAPIReplicate
0.5KGuaranteed−40% vs fal$0.0360/ image$0.0600/ image$0.0500/ image—
1KGuaranteed−51% vs fal$0.0390/ image$0.0800/ image$0.0700/ image$0.0670/ image
2KGuaranteed−32% vs fal$0.0808/ image$0.1200/ image$0.1100/ image$0.1010/ image
4KGuaranteed−24% vs fal$0.1208/ image$0.1600/ image$0.1600/ image$0.1510/ image

Each platform's public API list price for the same model and settings, checked Nov 3, 2026. Runway credits at $0.01 each.

Nano Banana 2 API questions

How much does the Nano Banana 2 API cost?

Nano Banana 2 starts at $0.036 per image with Create Image, its lowest-priced task. Prices by option: 0.5K $0.036 per image, 1K $0.039 per image, 2K $0.0808 per image, 4K $0.1208 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 is the model name for Nano Banana 2 in the API?

Put google/nano-banana-2/text-to-image for Create Image; google/nano-banana-2/edit for Edit Image in the model field of POST /jobs/createTask.

How should my app display fallback-related costs?

Show the current expected amount separately from the maximum accepted hold. Carry the approved settings into creation and reconcile against final costUsd after the image task completes.

Do searches make delivery synchronous?

No. Save taskId and poll recordInfo or use a signed task callback. Verify the callback before attaching the resulting picture to the relevant design version.

Can a source list contain many references?

The edit schema accepts a bounded ordered list. Validate it against that task's inputSchema and retain order when the user revises the selection.

What are the limits of the Nano Banana 2 API?

Resolutions: 0.5K · 1K · 2K · 4K; Aspect ratios: 1:1 · 3:2 · 2:3 · 3:4 · 4:3 · 4:5 +8; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.

Can I try Nano Banana 2 without writing code?

Run Nano Banana 2 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All Nano Banana models

Nano Banana 2.1 is Google's newer update with better text and character consistency, but no 0.5K draft size.

More about Nano Banana 2