google/nano-banana-2/text-to-imageFrom 6 credits per image· Create Image

Nano Banana 2 is Google's Gemini 3.1 Flash Image model, released on 26 February 2026, which Google describes as Pro-level image quality at Flash speed. It generates and edits at four size tiers from 0.5K to 4K, takes up to fourteen reference images, reaches banner shapes as wide as 8:1, and can search the web and reference pictures before drawing.

Call it with the model name google/nano-banana-2/text-to-image on POST /jobs/createTask, from 6 credits per image ($0.06). New accounts get 30 free credits to try it in the Playground first.

  • Create Image
  • Edit Image
  • Up to 4K
  • Up to 14 reference images
  • 14 aspect ratios

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 the image you want.
resolutionNoOutput size. Bigger sizes look sharper and cost more. 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 credits, the same credits you use on the website (1 credit = $0.01). The hold is taken when the task is accepted and settled to the actual charge when it finishes; failed tasks are refunded.

OptionCredits per image≈ USD
resolution 0.5K5.4$0.054
resolution 1K8.04$0.08
resolution 2K12.12$0.12
resolution 4K18.12$0.18

Each task is rounded up to whole credits, so one run at the lowest tier costs 6 credits per image ($0.06).

For an exact number before you run, send the same body to POST /jobs/quote.

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- and use the same credits as the website.
  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.

Nano Banana 2 API questions

How much does the Nano Banana 2 API cost?

Nano Banana 2 starts at 6 credits ($0.06) per image with Create Image, its cheapest task. Prices by option: 0.5K 5.4 credits per image, 1K 8.04 credits per image, 2K 12.12 credits per image, 4K 18.12 credits per image. Credits are the same as on the website (1 credit = $0.01), new accounts get 30 free credits, and failed tasks are refunded.

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 big are the images?

At 1:1: 512 at 0.5k, 1024 at 1k, 2048 at 2k and 4096 pixels at 4k. Other shapes keep about the same pixel count; our 4:1 banner at 2k came back 4128 pixels wide.

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?

Yes. The Playground runs Nano Banana 2 on your PopNow credits, needs no API key, and shows the matching code for every run.

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