Nano Banana 2.1 API

Nano Banana 2.1 API · Generate and edit

Create and edit at 1K, 2K or 4K with Nano Banana 2.1. Use explicit instructions for the changes and details to preserve.

Product photographEditorial coverInterior conceptTravel postcardPackaging conceptStory illustrationFood still lifeCampaign background
Input
Resolution
Aspect ratio
Count
Enable the final fallback tier after ordinary channels fail. Its price applies only if that tier succeeds.
The Playground always screens prompts and input images. To disable screening via the API, set nsfw_check to false.
Output
Example asset · 1:1
/ Features

Nano Banana 2.1 API features

Rapid variants with a per-image quote

Use one brief to request up to four independent drafts. The per-image quote makes it easier to plan a batch of product or campaign visuals.

Character and product consistency

Reuse the same reference photos to keep faces, outfits and recognizable product details across related images.

Targeted edits with prompts

Name the area or object to change and describe what to preserve, such as the subject’s pose or the scene lighting.

Up to 4K with wide framing

Choose 1K, 2K or 4K and formats such as 21:9 for banners, panoramic artwork and detailed layouts.

Multilingual typography and layout

Compose headlines, labels and short copy in different languages. Review small type and long text in the final image.

Multi-reference editing

Combine products, people and backgrounds from separate references. The API accepts up to 14 images per edit.

Infographics and visual explanations

Turn supplied notes into structured posters or diagrams with clear hierarchies. Check the labels and facts before publication.

Reference-led stylization

Rework a scene in an illustrated, photographic or tactile style while keeping the main subject recognizable.

/ Use cases

Nano Banana 2.1 API · Use cases

Product photograph

For ecommerce teams, explore product lighting and camera placement before commissioning a finished campaign.

Editorial cover

For editors, sketch a cover composition with deliberate space for typography added during layout.

Interior concept

For interior designers, compare materials and lighting in a reading-room concept before selecting furnishings.

Travel postcard

For travel publishers, develop an illustrated destination concept and check geographic details before use.

Packaging concept

For packaging designers, explore surface patterns and colorways; add final labels in production artwork.

Story illustration

For illustrators, develop a scene and use approved references when revisiting the same character.

Food still life

For food brands, compare tabletop styling and framing while checking that ingredients remain recognizable.

Campaign background

For campaign designers, prepare an uncluttered background for compositing approved brand text and logos.

/ Examples

Nano Banana 2.1 API · Examples

The first card shows an image generated using the displayed prompt. The remaining cards offer prompts to try.

Yellow ceramic vase with white daisies
Yellow ceramic vase with white daisies
Yellow ceramic vase with white daisies
Image1:1

Yellow ceramic vase with white daisies

A studio photograph of a yellow ceramic banana-shaped vase holding three white daisies on a pale blue table, soft morning light, clean composition, no text.

156 chars
Image4:5

Editorial cover

Editorial cover illustration of an orange bicycle beside a quiet canal, generous empty space above, clean geometric composition, no lettering.

142 chars
Image16:9

Interior concept

A small reading room with walnut bookshelves, a linen armchair and warm morning light, realistic materials, eye-level interior photograph.

138 chars
Image3:2

Travel postcard

A watercolor postcard illustration of a mountain village in autumn, red roofs, winding footpath, muted gold foliage, no text.

125 chars
Image1:1

Packaging concept

A minimalist cylindrical tea tin in sage green on a warm grey studio background, subtle embossed leaf pattern, front three-quarter view, no logos.

146 chars
Image3:4

Story illustration

A small fox carrying a lantern across a snowy bridge at dusk, hand-painted storybook style, warm amber light and cool blue shadows.

131 chars
Image1:1

Food still life

Top-down food photograph of three figs on a cream ceramic plate, wrinkled linen napkin, soft side lighting, simple balanced composition.

136 chars
Image9:16

Campaign background

Abstract paper-cut landscape with layered coral and indigo hills, small golden sun, open central space for later typography, crisp edges.

137 chars

Nano Banana 2.1 API · Pricing

Output prices compare one 1:1 image at the same resolution with zero reference images. Prices are in USD.

+10%
Top up $1,500+ and get 10% bonus credits.
View top-up options
ResolutionAPIstable standardFinal fallbackWaveSpeedfal
1KWith bonus ≈ $0.014 / imageRegular $0.015 / image3 credits / imageWith bonus ≈ $0.051 / imageRegular $0.056 / image11.2 credits / image$0.04 / image193.3% more than APIstable-
2KWith bonus ≈ $0.016 / imageRegular $0.0175 / image3.5 credits / imageWith bonus ≈ $0.069 / imageRegular $0.076 / image15.2 credits / image$0.06 / image277.1% more than APIstable-
4KWith bonus ≈ $0.020 / imageRegular $0.0225 / image4.5 credits / imageWith bonus ≈ $0.142 / imageRegular $0.1565 / image31.3 credits / image$0.135 / image560% more than APIstable-
  • Final fallback is opt-in. We reserve the highest authorized amount and charge only successful outputs at the tier used. Unused credits are released, and existing tasks keep their saved prices.
/ API

Nano Banana 2.1 API · API integration

The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.

  1. Prepare input

    Write a prompt and optionally add references.

  2. Review the quote

    Choose resolution, output count and optional fallback. Review the account quote before submitting.

  3. Retrieve images

    Query the returned task ID or receive a signed callback. Save result images within 14 days.

Parameter
Description
modelnano-banana-2.1
inputImage generation parameters.
input.promptDescribe the image or edit. Limits depend on the model; see the schema.
input.resolution1K / 2K / 4K
input.aspect_ratioAuto / 1:1 / 4:3 / 3:4 / 16:9 / 9:16 / 3:2 / 2:3 / 21:9 / 4:5 / 5:4 / 1:4 / 4:1 / 1:8 / 8:1
{
  "model": "nano-banana-2.1",
  "input": {
    "prompt": "A studio photograph of a yellow ceramic banana-shaped vase holding three white daisies on a pale blue table, soft morning light, clean composition, no text.",
    "resolution": "1K",
    "aspect_ratio": "auto",
    "image_urls": [],
    "output_count": 1,
    "official_fallback": false,
    "nsfw_check": true
  }
}

The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.

/ Compare

Find the Nano Banana model for your workflow

Compare five models by what you want to create, how you edit and the output size you need. All five support text prompts and reference images through APIstable.

ModelStrengths and best usesOutput size
Nano BananaKeeps familiar subjects recognizable through prompt-based edits and combines elements from several photos. Suits 1K product mockups, style experiments and simple retouching.1K
Nano Banana ProHandles complex layouts, multilingual typography and detailed visual briefs. Suits finished posters, infographics and production assets that benefit from 4K.1K / 2K / 4K
Nano Banana 2Balances rapid iteration with subject consistency and detailed output. Use 0.5K for early drafts and up to 4K for campaign visuals or storyboards.0.5K / 1K / 2K / 4K
Nano Banana 2 LiteOptimized for fast 1K drafts and lightweight reference edits. Suits reviewing variations of product scenes, thumbnails and social posts.1K
Nano Banana 2.1You’re hereEmphasizes targeted edits, character and product consistency, and multilingual layout. Suits refining product imagery, adapting campaign graphics and editing across several references.1K / 2K / 4K
/ FAQ

Nano Banana 2.1 API FAQ

Find answers about pricing, generation results, and API access.

What can I create?

Create and edit at 1K, 2K or 4K with Nano Banana 2.1. Use explicit instructions for the changes and details to preserve.

Which resolutions are available?

1K, 2K, 4K. Choose the resolution before submitting.

How do reference edits work?

Add public HTTPS URLs in image_urls and explain what to change and preserve. Outputs are not guaranteed to preserve every pixel.

Can I request several images?

Yes, output_count supports 1–4 independent items. Only successful items are charged.

How is the price calculated?

Each resolution has a fixed standard and fallback price. Credits round up to 0.1 per successful image.

Is fallback automatic?

Only if fallback is explicitly enabled and the preceding channel definitely fails. Unknown acceptance does not trigger another generation.

Why is a completed image still processing?

Result storage may still be recovering. Keep polling the original task instead of creating a duplicate. Supplier billing is reconciled separately.

Can I choose a seed or output format?

The API accepts prompt, resolution, aspect ratio, reference images, output count and fallback.

What if generation fails?

Failed items release their reserved credits. Daily cleanup fails unfinished items older than 24 hours at 00:00 Asia/Shanghai.

Will text and identities always be exact?

No. Check spelling, small details and likeness before use. Describe targeted edits and review each result.

How long are results retained?

Generated results are retained for 14 days. Download or copy them to your own storage.

Are these gallery prompts verified outputs?

These are editable prompt recipes, not verified model outputs. The model cover is concept artwork.

CREATE IMAGES

Try Nano Banana 2.1 now

Write a prompt or add references to generate an image.