Nano Banana API

Nano Banana API · Generate and edit

Create 1K images and reference-led edits using the original Nano Banana model.

Product photographEditorial coverInterior conceptTravel postcardPackaging conceptStory illustrationFood still lifeCampaign background
Input
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 API features

Consistent characters and subjects

Keep people, characters and objects recognizable when you change their setting or style. Reuse a reference image for the next edit.

Targeted edits without masks

Describe what to change in plain language, from a background swap to a clothing detail, and tell the model what to preserve.

Multi-image fusion

Combine subjects from different photos into one scene. The API accepts up to 14 reference images for an edit.

Fast creative iteration

Use the Flash image model to explore directions quickly, from themed portraits to product mockups, then refine the strongest result.

Reference-driven style transfer

Use a reference image to guide the palette, texture or illustration style of another image.

Text-to-image from a single prompt

Describe the subject, setting and lighting to create a 1K image from scratch without a reference photo.

Automatic and fixed aspect ratios

Choose a landscape, portrait or square canvas to fit a banner, story, thumbnail or product tile.

Multiple variations per request

Request up to four independent images to compare several takes on the same brief.

/ Use cases

Nano Banana 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 API · Examples

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

Leather travel bag in studio lighting
Leather travel bag in studio lighting
Leather travel bag in studio lighting
Image1:1

Leather travel bag in studio lighting

Editorial studio product photograph of a small unbranded burnt-orange leather travel bag on a pale sandstone cube, three-quarter view, warm side light, crisp natural stitching, soft shadows, neutral background, no lettering.

224 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 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.009 / imageRegular $0.01 / image2 credits / imageWith bonus ≈ $0.040 / imageRegular $0.044 / image8.8 credits / image$0.038 / image318% more than APIstable$0.0398 / image337.8% 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 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
inputImage generation parameters.
input.promptDescribe the image or edit. Limits depend on the model; see the schema.
input.resolution1K
input.aspect_ratioAuto / 1:1 / 4:3 / 3:4 / 16:9 / 9:16 / 3:2 / 2:3 / 21:9 / 4:5 / 5:4
{
  "model": "nano-banana",
  "input": {
    "prompt": "Editorial studio product photograph of a small unbranded burnt-orange leather travel bag on a pale sandstone cube, three-quarter view, warm side light, crisp natural stitching, soft shadows, neutral background, no lettering.",
    "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 BananaYou’re hereKeeps 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.1Emphasizes 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 API FAQ

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

What can I create?

Create 1K images and reference-led edits using the original Nano Banana model.

Which resolutions are available?

1K. 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 now

Write a prompt or add references to generate an image.