LogoNano Banana API

Image AI for developers

Nano Banana API for image generation & editing.

Nano Banana, Nano Banana 2 and Nano Banana Pro from about $0.02 per image, 40–60% below Replicate list price. One REST API, and credits come back on a confirmed failure.

Get an API Key View API Docs
  • From about $0.02 per image
  • 40–60% below Replicate list price
  • 20 free credits on signup

Independent API service. Not affiliated with Google. USD at the Pro plan rate.

Explore the Playground

Nano Banana 2 quickstart · 9 credits ≈ $0.04 / image

ACTUAL API OUTPUTTEXT TO IMAGE
A yellow origami banana on a pale blue tabletop, generated using Nano Banana 2 through our API
Made with Nano Banana 21024 × 1024 · 9 credits ≈ $0.04 · JPEG
01 Models & pricing 02 API quickstart 03 Common questions

Models & pricing

Nano Banana API
Models & pricing.

Credits per image with the dollar equivalent at the Pro plan rate, next to Replicate’s list price for the same model and size.

ModelOutput size · price per imageModel details
Nano BananaEveryday text-to-image generation
1K
5 credits
≈ $0.022
Replicate $0.039
42% less
View model
Nano Banana 2Selectable 1K, 2K & 4K output
1K
9 credits
≈ $0.04
Replicate $0.067
40% less
2K
13 credits
≈ $0.058
Replicate $0.101
42% less
4K
20 credits
≈ $0.09
Replicate $0.151
41% less
View model
Nano Banana ProDetailed image generation from 1K
1K
20 credits
≈ $0.09
Replicate $0.15
40% less
2K
20 credits
≈ $0.09
Replicate $0.15
40% less
4K
27 credits
≈ $0.121
Replicate $0.30
60% less
View model

USD at the Pro plan rate, 10,000 credits for $44.90; other plans differ. Replicate list prices checked 15 Sep 2026. The quickstart below uses Nano Banana 2 at 1024 × 1024.

Plan your usage

Estimate your image
generation cost.

Choose a model, output size, and image count. Your estimate uses the same credit prices as generation.

View credit packs & expiry
900 credits≈ $4.04 at the Pro plan rate · Replicate $6.70 · $2.66 less9 credits ≈ $0.04 / image · 100 images · 1K

Developer quickstart

How to use
the Nano Banana API.

Start with Nano Banana 2 in Python, JavaScript, or cURL. Follow the request through to a downloaded image.

Read the full API quickstart
  1. 01
    Create an API key

    Keep your key on your server.

  2. 02
    Submit your image request

    Save the returned task ID.

  3. 03
    Check status & download

    Get the result from the original task.

CHOOSE AN EXAMPLE PROMPT
A small yellow origami banana on a clean pale blue tabletop, soft natural studio light, minimalist product photograph, no text, no watermark.
Nano Banana 21024 × 10249 credits / image
Open in Playground

Explore the setup first. Credits are used when you generate.

# Save this key before submitting. Reuse it for retries.
export REQUEST_KEY='YOUR_PERSISTED_UNIQUE_REQUEST_KEY'

curl 'https://nanobanana-api.com/api/ai/image/generate' \
  -H "Authorization: Bearer $NANO_BANANA_API_KEY" \
  -H "Idempotency-Key: $REQUEST_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
  "provider": "ai-relay",
  "model": "nano-banana-2",
  "prompt": "A small yellow origami banana on a clean pale blue tabletop, soft natural studio light, minimalist product photograph, no text, no watermark.",
  "resolution": "1024x1024",
  "numOutputs": 1,
  "watermark": false
}'
YOUR KEY STAYS ON YOUR SERVERREST API · JSON responses

Your API workspace

Manage keys, track requests
& download images.

Keep your API keys, request history, and generated images in one account. Return to your work from the dashboard.

Skincare packaging and product photography examplePRODUCT PHOTOGRAPHY / SAMPLE GALLERY

Control your API keys

Create and revoke keys, inspect API logs, and keep credentials out of client code.

Manage API keys

Resume your original request

The Nano Banana 2 playground keeps your request so you can check the original task after refreshing the page.

Open the playground

Download completed images

Find your images in Assets. Nano Banana 2 quickstart downloads require your session or API key. Save your files before they expire.

Explore your assets

Common questions

Nano Banana
API FAQ.

Explore the API docs
What is Nano Banana API?

Nano Banana API is an independent service for generating and editing images with Nano Banana models. Create an account, get your own API key, and send image requests from your application. This service is not operated by Google.

How much does Nano Banana API cost?

Nano Banana costs 5 credits per image, about $0.022 at the Pro plan rate. Nano Banana 2 starts at 9 credits ($0.04) for 1K output and Nano Banana Pro at 20 credits ($0.09). That is 40–60% below Replicate list prices. Use the calculator above to estimate your usage, then visit Pricing for credit packs and expiry terms.

Can I try Nano Banana API for free?

New accounts receive 20 signup credits. Nano Banana costs 5 credits per image; the Nano Banana 2 quickstart uses 9. Generation uses the credits available in your account. You can review examples and code before purchasing credits.

How do I get a Nano Banana API key?

Sign in, open API Keys, and create a key. Keep it in your server environment and pass it as a Bearer token. You can revoke a key from the same page. Your project API key is different from a Google AI Studio key.

Which Nano Banana model should I choose?

Compare the models offered by this service in the table above. Nano Banana supports everyday generation and editing; Nano Banana 2 has 1K, 2K and 4K profiles; Nano Banana Pro has 2K and 4K profiles. The quickstart demonstrates Nano Banana 2 at 1024 × 1024. Available options depend on the model and workflow.

Is this an OpenAI-compatible API?

Image generation uses our asynchronous REST API, not the OpenAI images endpoint. Submit a request, save the task ID, then check the task until it finishes. The examples above show the request, status and download steps.

What happens if a request is interrupted?

The Nano Banana 2 quickstart uses an idempotency key so retries return the original task. Keep the same key and request body. An interrupted connection does not mean generation failed. The playground saves the request in your browser so you can continue checking it.

Where do I find my generated images?

Completed images appear in Assets. The managed Nano Banana 2 flow returns protected download URLs that work with your login session or project API key. Download results before their expiry; this flow retains task media for 30 days.

From your first request onward

Build your first
Nano Banana API integration.

Review the model pricing, create your API key, and follow the quickstart from request to downloaded image.

Get an API Key Read the Quickstart

Nano Banana API is an independent service. Not affiliated with Google.

LogoNano Banana API

Nano Banana image generation and editing behind one clean, asynchronous REST API.

Email

AI Models

  • Nano Banana
  • Nano Banana 2
  • Nano Banana Pro

Product

  • Playground
  • AI Image
  • Pricing

Resources

  • Prompts
  • Documentation

Legal

  • Privacy Policy
  • Terms of Service

Nano Banana API is an independent platform and is not affiliated with, endorsed by, or sponsored by Google or other model providers.

© 2026 Nano Banana API. All Rights Reserved.
Privacy PolicyTerms of Service