About Nano Banana 2.1
The Nano Banana 2.1 API is Google’s fast image model on two endpoints, text to image and edit, with typical turnaround around 40 seconds. It suits images with titles, labels and other text. Its enable_web_search and enable_image_search flags can retrieve current information or image references to guide generation.
Call it with the model name google/nano-banana-2.1/text-to-image on POST /jobs/createTask, from $0.022.
Introduction
Nano Banana 2.1 Text to image creates an image from prompt. Choose 1k, 2k or 4k and one of fourteen aspect ratios, including wide 8:1 banners and tall 1:8 frames. Optional web and image search can supply factual or visual references before generation.
Choose a mode by starting material
| Starting material | Mode |
|---|---|
| A written brief | Text to image |
| Images to change or combine | Edit images |
Key features
Text within the design
Describe the headline, its exact wording and its position. Short, clearly specified lines are easier to assess than unspecified small print. Check the spelling in the generated image before publishing.
Fourteen aspect ratios
Use 4:1 or 8:1 for a wide header, 9:16 for a vertical composition or 1:1 for a square image. Inspect very wide results for repeated subjects or visible joins. A higher resolution changes the output size; it does not guarantee a single continuous scene.
Search for factual or visual references
enable_web_search looks up current information, while enable_image_search looks up reference pictures. Both are off by default. Use them when the brief depends on a real place, product or event, then verify any dates or other factual details in the result.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 1k · 2k · 4k · Default: 1k |
aspect_ratio | No | The 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 |
output_format | No | File type of the result. png · jpeg · Default: png |
enable_web_search | No | Checks the web first, for dates, places and current facts. Default: false |
enable_image_search | No | Looks 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.
| Option | USD per image |
|---|---|
| resolution 1K | $0.022 |
| resolution 2K | $0.036 |
| resolution 4K | $0.063 |
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
Posters and covers
Create a cover, event poster or campaign visual with a specified headline. Name the text hierarchy and leave enough space around important words.
Website headers
Compose a landscape, skyline or product scene for a wide placement. Keep important subjects away from the edges and review the full image before cropping it for the site.
Information-led visuals
Use web search to support a weather card, schedule or event graphic. Treat the generated image as a draft and check the information against the source before use.
Prompt guide & pro tips
Quote the wording
Put each required line in double quotes and describe its type style and position. For example, specify a large serif heading at the top and a short caption beneath it.
Plan the final frame first
Choose the publishing ratio before generating. For very wide placements, describe one continuous setting and inspect the result for duplicated objects or separate-looking panels.
Regenerate at the delivery resolution
Explore the idea at 1k, then generate at 2k or 4k when the composition works. Each request creates a new image; it does not upscale the approved draft or preserve all its details.
API quick start
Call the Nano Banana 2.1 API in three steps
- 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.
- Send the request. POST /jobs/createTask with model google/nano-banana-2.1/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
- 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/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "16:9",
"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.
What to build with the Nano Banana 2.1 API
- Thumbnail and poster generators where titles must be spelled right.
- Virtual try-on and product composites from several reference photos.
- Event and news graphics grounded with enable_web_search.
Nano Banana 2.1 parameter notes
- image_urls on edit takes up to 14 references; refer to them as image 1, image 2 in the prompt.
- aspect_ratio has 14 values including 1:4, 4:1, 1:8 and 8:1.
- enable_web_search and enable_image_search can add a search step and may change the quoted price.
- No seed or negative prompt is accepted.
How Nano Banana 2.1 API pricing adds up
Billed per image by resolution, with 4K costing over three times 1K. Search options can add to the charge, which is why a quote may show two figures; send the exact body to /jobs/quote to see the maximum.
- resolution 1k: $0.022 per run, $2.20 for 100 runs
- resolution 4k: $0.063 per run, $6.30 for 100 runs
Async jobs, webhooks and rate limits
Every Nano Banana 2.1 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.1/text-to-image never runs or bills twice.
Common Nano Banana 2.1 API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | More than 14 image_urls, or an unsupported aspect ratio. |
content_rejected | The prompt or a reference photo was refused. Show the message to the user. |
invalid_asset | A reference image could not be fetched; upload it first. |
Nano Banana 2.1 price on other platforms
| Options | fal | API | Replicate | |
|---|---|---|---|---|
| 1KGuaranteed | −45% vs fal$0.0220/ image | $0.0400/ image | $0.0400/ image | $0.0336/ image |
| 2KGuaranteed | −40% vs Runway$0.0360/ image | $0.0590/ image | $0.0600/ image | $0.0504/ image |
| 4KGuaranteed | −53% vs fal$0.0630/ image | $0.1340/ image | $0.1200/ image | $0.1134/ 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.1 API questions
How much does the Nano Banana 2.1 API cost?
Nano Banana 2.1 starts at $0.022 per image with Create Image, its lowest-priced task. Prices by option: 1K $0.022 per image, 2K $0.036 per image, 4K $0.063 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.1 in the API?
Put google/nano-banana-2.1/text-to-image for Create Image; google/nano-banana-2.1/edit for Edit Image in the model field of POST /jobs/createTask.
How fast is the Nano Banana 2.1 API?
Typically about 37 seconds for text to image and 48 seconds for edits.
Why does a Nano Banana 2.1 quote show two prices?
Search options can add a charge; the quote shows the typical and maximum cost.
Does the Nano Banana 2.1 API support a seed?
No. Each request returns a new image.
What are the limits of the Nano Banana 2.1 API?
Resolutions: 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.1 without writing code?
Run Nano Banana 2.1 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 Pro plans the layout before it draws, so it handles dense text, diagrams and multi-part designs more carefully. Nano Banana 2.1 is newer, quicker and less than half the price per image, and adds 8:1 banners plus web and image search.
- Nano Banana 2.1 APIGoogle's newest Nano Banana, sharp text and 4K outputFrom $0.022 per image
- Nano Banana Pro APIPlans the layout first: dense text, diagrams and 4K editsFrom $0.067 per image
- Nano Banana 2 Lite APIGoogle's lightest Nano Banana: quick 1K images and edits from up to ten picturesFrom $0.0267 per image
- Nano Banana 2 APIFast Gemini images up to 4K, with up to 14 referencesFrom $0.036 per image