For developers

Nano Banana API: use Nano Banana in your own app

NanoBanana is a web app. If you need Nano Banana inside your own product, use an image API; here is what to know before you start.

  • Model IDs
  • Price per image
  • API or web app
Up to 8 reference images (PNG, JPEG, WebP)
Try
Model
Aspect ratio
Resolution
Images

20 credits

At a glance

The Nano Banana API lets developers call Nano Banana image models from code. NanoBanana itself is a no-code web app; for API access the same models are available through Aiduct (aiduct.ai) as nano-banana-2 at $0.108 and nano-banana-pro at $0.24 per image, with one API key and a /v1/images/generations endpoint.

Model IDs
nano-banana-2 and nano-banana-pro
API price
$0.108 and $0.24 per image on Aiduct
Endpoint
POST /v1/images/generations with a bearer API key
No-code option
The NanoBanana web app, 20 or 45 credits per image

What the Nano Banana API is good for

  • 01

    Product features

    Add image generation or photo editing to your own app.

  • 02

    Batch jobs

    Create catalog images, variants or thumbnails at scale.

  • 03

    Automations

    Connect image generation to your CMS, store or workflow tools.

How to start with the Nano Banana API

  1. 01

    Create an API key

    Sign up at aiduct.ai and create a key in the console.

  2. 02

    Call the images endpoint

    Send the prompt, the model ID and any reference images to /v1/images/generations.

  3. 03

    Store the result

    Save the returned image in your app or storage.

API or web app?

Choose the API when images must be created inside your own software, in batches or automatically. Choose the NanoBanana web app when a person creates the images: there is nothing to build, you can refine results by hand, you pay in credits, and the first images are free.

Nano Banana API pricing

API usage is billed per image: $0.108 for Nano Banana 2 and $0.24 for Nano Banana Pro on Aiduct at the time of writing. Check the provider's current price list before you build, and prototype prompts in the web app first to avoid paying for experiments in code.

Nano Banana API FAQ

Is there an official Nano Banana API?

Google offers its Gemini image models to developers on its own platforms. Aiduct serves them as nano-banana-2 and nano-banana-pro behind one API key with per-image pricing.

Does NanoBanana have an API?

No. NanoBanana is a web app for creating and editing images in the browser. For programmatic access, use Aiduct, which serves the same models.

How much does the Nano Banana API cost?

On Aiduct, Nano Banana 2 costs $0.108 and Nano Banana Pro $0.24 per image at the time of writing, billed from a prepaid balance.

Can I test the models without code first?

Yes. Create a NanoBanana account and try both models in the browser with 40 free credits before you integrate the API.

Try the models before you build

Test Nano Banana 2 and Pro in the browser with free credits.

Last updated September 28, 2026

Create your account