Seedance 2.0 15% OFF | Create in Video Generator →
Google·image·From $0.045/run

Nano Banana 2 API

Google Nano Banana 2 (Gemini 3.1 Flash Image) — Pro-quality image generation at Flash speed. 512px to 4K resolution, improved text rendering, character consistency for up to 5 characters, and real-world knowledge integration.

Standard text-to-image and edit endpoints, plus Fast variants (the cheapest Nano Banana 2 options). Optional web search and image search add real-world knowledge to generations. 2K default with 4K available.

Nano Banana 2 sample output

About the Nano Banana 2 API

What Nano Banana 2 does, how it fits in the Google model lineup, and why teams reach for it.

Nano Banana 2 is a image generation and editing model from Google, available through the WaveSpeedAI REST API. Google Nano Banana 2 (Gemini 3.1 Flash Image) — Pro-quality image generation at Flash speed. 512px to 4K resolution, improved text rendering, character consistency for up to 5 characters, and real-world knowledge integration.

Standard text-to-image and edit endpoints, plus Fast variants (the cheapest Nano Banana 2 options). Optional web search and image search add real-world knowledge to generations. 2K default with 4K available.

The Nano Banana 2 family on WaveSpeedAI ships 4 REST endpoints covering Text-To-Image, Image-To-Image workflows. Each variant carries its own pricing, parameter knobs, and example outputs — pick the one that matches your input modality and production constraints, or call several from the same API key to compose multi-step pipelines.

Run Nano Banana 2 through the same API key, billing account, and rate-limit envelope you use for the other 1,000+ AI models on WaveSpeedAI. No separate vendor setup, no per-provider SDKs, no per-vendor rate-limit envelopes — one integration covers everything from text-to-image and text-to-video through audio synthesis, 3D generation, upscaling, and editing.

All Nano Banana 2 API endpoints

4 endpoints available now on WaveSpeedAI — pick the variant that matches your workflow.

See Nano Banana 2 in action

Real outputs generated by the Nano Banana 2 API. Hover any video to preview, click to open the full-size viewer.

How to use the Nano Banana 2 API

Four steps from signup to a finished generation. Full Python, Node.js, and cURL examples are in the API section below.

  1. 1

    Get an API key

    Sign up for a WaveSpeedAI account and copy your API key from the dashboard. New accounts come with free starter credits — enough to run the playground a few dozen times before billing kicks in.

  2. 2

    Submit a prediction

    POST your input as JSON to https://api.wavespeed.ai/api/v3/google/nano-banana-2/text-to-image. The endpoint returns a prediction id immediately — generations are async so you don't hold an open connection during inference.

  3. 3

    Poll for completion

    GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result every 1-2 seconds. The response includes a status field; keep polling until it flips from"queued" or"processing" to"completed".

  4. 4

    Read the output URL

    Once status is"completed", read the URL from data.outputs[0]. The URL points to your generated media on the WaveSpeedAI CDN — image, video, audio, or 3D file depending on the Nano Banana 2 variant you called.

What you can build with Nano Banana 2

Common workflows developers and creators use the Nano Banana 2 API for.

Multi-character scenes (up to 5)

Catalog headline feature: character consistency for up to 5 characters in one generation. Useful for ensemble scenes, group product photos, narrative storyboards where multiple subjects must stay recognizable.

multi-characterconsistencyensemble

Real-world knowledge integration

Catalog feature: optional web search and image search parameters let the model condition on current real-world references — useful when the prompt references specific places, people, brands, or events.

web-searchknowledgefactual

Pro-quality at Flash speed

Catalog framing: "Pro-quality image generation at Flash speed" — the value proposition is getting close to Nano Banana Pro fidelity.

speedpro-qualityfast

512px to 4K resolution range

Catalog claim: wide resolution range from 512px (low-res for thumbnails, mobile previews) up to 4K. Pick the smallest size that meets your delivery target.

resolutionflexible4k

Fast tier for high-volume

google/nano-banana-2/text-to-image-fast — the cheapest Nano Banana 2 option, useful for A/B testing pipelines and high-volume generation. Edit-fast at the same price for refinements.

fastvolumecheap

Image editing endpoint

google/nano-banana-2/edit enables advanced image editing with 4K-capable output and precise instruction following. Catalog notes support for text translation and localization within images.

edittranslaterefine

Tips for prompting Nano Banana 2

Practical advice for getting better outputs from Nano Banana 2 — drawn from the patterns that work across image models in production pipelines.

Use 5-character consistency for ensemble scenes

Catalog feature: "character consistency for up to 5 characters." When your prompt includes multiple subjects that must stay recognizable, Nano Banana 2's character consistency outperforms most cheap image models — useful for group shots, storyboard panels, and dialog scenes.

Optional web search and image search grounding

enable_web_search and enable_image_search parameters are exposed. Turn on for prompts that reference current real-world places, people, brands, or events — the model conditions on retrieved references rather than just its training data.

Resolution range from 512px to 4K

Catalog claim: "512px to 4K resolution support." Pick the smallest delivery-acceptable size — useful for thumbnails, mobile previews, and high-volume work where 4K is overkill.

Use the Fast tier for iteration

google/nano-banana-2/text-to-image-fast for prompt iteration and high-volume A/B testing; edit-fast for refinements. Switch to the Standard variants when peak quality matters.

Use Edit for text translation and localization

Catalog notes that the edit endpoint "supports text translation, localization" within images. Useful for adapting marketing creatives across markets without re-generating the full image.

Nano Banana 2 API pricing

Pricing is per-output. The final charge scales with the parameters you set in each variant's playground (resolution, duration, output count, references).

EndpointTypeStarting price
google/nano-banana-2/text-to-image-fasttext-to-image$0.045
google/nano-banana-2/text-to-imagetext-to-image$0.070
google/nano-banana-2/edit-fastimage-to-image$0.045
google/nano-banana-2/editimage-to-image$0.070

Call the Nano Banana 2 API

Sign up for an API key at wavespeed.ai/accesskey, then submit a prediction via REST. The playground generates ready-to-paste samples for any combination of inputs.

HTTP example
# 1. Submit a prediction
curl -X POST "https://api.wavespeed.ai/api/v3/google/nano-banana-2/text-to-image" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{}'

# 2. Poll the result until status = "completed"
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# Read the output URL from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY

const result = await client.run("google/nano-banana-2/text-to-image", {});
console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "google/nano-banana-2/text-to-image",
    {}
)
print(output["outputs"][0])  # → URL of the generated output

Nano Banana 2 vs alternatives

When to pick Nano Banana 2 over similar models on WaveSpeedAI.

Nano Banana 2 vs Nano Banana Pro

Pro covers 4K text-to-image, edit, Ultra tier, and dedicated Multi variants at base. Nano Banana 2 is the cheaper, faster sibling with multi-character consistency and web-search integration that Pro doesn't ship.

Nano Banana 2 vs GPT Image 2

GPT Image 2 has explicit quality tiers (low/medium/high) and edit-with-reference workflow. Nano Banana 2 wins on character consistency for up to 5 characters and the optional web/image search for real-world knowledge.

Nano Banana 2 vs Seedream 5 Lite

Seedream 5 Lite ships strong typography focus and Sequential variants for multi-image consistency. Nano Banana 2 is slightly pricier (-0.07) but includes web-search-grounded generation that Seedream doesn't offer.

Nano Banana 2 API — Frequently asked questions

Pricing, license, integration — common questions about running Nano Banana 2 on WaveSpeedAI.

What is the Nano Banana 2 API?

Nano Banana 2 is a Google image generation model exposed as a REST API on WaveSpeedAI. Google Nano Banana 2 (Gemini 3.1 Flash Image) — Pro-quality image generation at Flash speed. 512px to 4K resolution, improved text rendering, character consistency for up to 5 characters, and real-world knowledge integration. You can call it programmatically or try it from the playground linked above.

How do I call the Nano Banana 2 API?

Sign up for a WaveSpeedAI account, copy your API key from /accesskey, then POST to https://api.wavespeed.ai/api/v3/google/nano-banana-2/text-to-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to "completed", then read the output URL from data.outputs[0]. Full Python / Node.js / cURL examples are above.

How much does the Nano Banana 2 API cost?

Nano Banana 2 starts at $0.045 per run. The exact cost scales with the parameters you set (resolution, duration, output count, references). The live cost preview next to the Generate button in the playground shows the exact price for your current input.

Which Nano Banana 2 variants are available?

WaveSpeedAI hosts 4 Nano Banana 2 endpoints: google/nano-banana-2/text-to-image-fast, google/nano-banana-2/text-to-image, google/nano-banana-2/edit-fast, google/nano-banana-2/edit. Each variant has its own playground page and pricing.

Can I use Nano Banana 2 outputs commercially?

Commercial usage rights follow the Google model license. Most Google models permit commercial output use; see each model's playground page for the specific license summary, and WaveSpeedAI's Terms of Service for platform-level conditions.

Why use Nano Banana 2 on WaveSpeedAI instead of going direct?

One API key + one billing account across Nano Banana 2 AND 1,000+ other AI models from other providers. No per-vendor SDK setup, no separate rate-limit envelopes, no rewrite-per-vendor integration code. Pricing is typically at parity with or below Google's direct API.

About Google

The team behind Nano Banana 2 and the broader Google model lineup on WaveSpeedAI.

Google's AI work happens primarily at Google DeepMind and Google Research. Its image and video models — Imagen, Veo, and Gemini-family multimodal models like Nano Banana (Gemini 3 Image) — share architecture and training infrastructure with the broader Gemini lineup. Outputs are noted for accurate text rendering, broad style coverage, and commercial-grade licensing.

Start building with Nano Banana 2 on WaveSpeedAI

Free starter credits on signup. One API key across 1,000+ AI models from Google and every other provider.