One idea → a short film
Make a movie
Nano Banana · Pro · 2 · REST API

Nano Banana API

Call Google's Nano Banana, Nano Banana Pro and Nano Banana 2 image models with one API key, one request shape and pay-as-you-go credits. Preview the exact cost of any request before you spend it, then poll for the result.

cURL · Nano Banana Pro
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/nano-banana-pro/generations \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Idempotency-Key: nano-banana-pro-001" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio, 85mm, soft window light",
    "aspectRatio": "3:4",
    "resolution": "2k"
  }
}'

How It Works

Get Started

Create an API key

In Dashboard → Developer API → Keys, create a revocable mi_ key and send it as a Bearer token.

Preview the cost

POST the same input to preview-credits and get the exact credit quote back. Previews never charge.

Generate and poll

POST to /models/{modelId}/generations, receive HTTP 202 with a generation ID, then poll the image status endpoint until terminal is true.

Nano Banana API pricing

Nano Banana, Nano Banana 2 and Nano Banana Pro per image

Live credit quotes for a single 1:1 text-to-image request at each resolution. Reference images do not change the model you call, only the request body.

Model IDGoogle modelOutputReference imagesTypical timeCredits per image
nano-bananaGemini 2.5 Flash Image1KUp to 310s1,955
nano-banana-2Gemini 3.1 Flash Image1KUp to 1410s3,509
nano-banana-2Gemini 3.1 Flash Image2KUp to 1410s5,264
nano-banana-2Gemini 3.1 Flash Image4KUp to 1410s7,018
nano-banana-proGemini 3 Pro Image1KUp to 1412s7,018
nano-banana-proGemini 3 Pro Image2KUp to 1412s7,018
nano-banana-proGemini 3 Pro Image4KUp to 1412s12,031

Quotes are calculated from the live model pricing when this page is built. POST /models/{modelId}/preview-credits returns the exact cost of your own payload without charging.

Quickstart

Your first Nano Banana Pro request

One POST creates the job and returns HTTP 202 with a generation ID. Preview the same body first if you want the exact cost, then poll the image status endpoint until terminal is true.

POSThttps://www.makeinfluencer.ai/api/v1/models/nano-banana-pro/generations
cURL
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/nano-banana-pro/generations \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Idempotency-Key: nano-banana-pro-001" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio, 85mm, soft window light",
    "aspectRatio": "3:4",
    "resolution": "2k"
  }
}'
POST · preview-credits · no charge
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/nano-banana-pro/preview-credits \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio, 85mm, soft window light",
    "aspectRatio": "3:4",
    "resolution": "2k"
  }
}'
GET · poll until terminal
curl \
  https://www.makeinfluencer.ai/api/v1/generations/image/GENERATION_ID \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY"

Features

What you get with the Nano Banana API

01

Three Google models, one contract

nano-banana, nano-banana-2 and nano-banana-pro share one request shape: a prompt plus optional imageUrls, aspectRatio and resolution.

02

Up to 4K output

Nano Banana 2 and Nano Banana Pro render at 1K, 2K or 4K, and Nano Banana 2 adds a 0.5K draft size for cheap iteration.

03

Reference-image editing

Send up to 14 reference image URLs to Nano Banana Pro or Nano Banana 2, or up to 3 to Nano Banana, to edit or keep a character consistent.

04

No separate API plan

REST, MCP and the dashboard draw from the same credit balance at the same model prices, with no monthly API fee.

05

Safe retries

Send an Idempotency-Key header and a retried request with the same body replays the original response instead of starting a second job.

06

Also in Claude and Cursor

The same models are available through the MCP connector, so an agent can generate Nano Banana images on your account.

Choosing a Nano Banana model

Which Nano Banana API should you call?

Start with Nano Banana 2 at 1K for drafts and volume, move hero images to Nano Banana Pro at 2K or 4K, and keep the original Nano Banana for cheap edits with up to three references. Switching is a one-word change to the model ID.

Nano Banana Pro

Gemini 3 Pro Image for 4K, legible on-image text and the strongest single-character consistency.

Nano Banana 2

Gemini 3.1 Flash Image for speed and cost, from 0.5K drafts up to 4K.

Nano Banana

Gemini 2.5 Flash Image for fast edits with up to three reference images.

Practical workflow

  1. 1

    Create a key

    Dashboard → Developer API → Keys. Keys start with mi_.

  2. 2

    Upload references

    POST /assets/presign, upload, then pass the URL in imageUrls.

  3. 3

    Preview and generate

    Quote the body with preview-credits, then POST it to generations.

  4. 4

    Poll and store

    Poll GET /generations/image/{id} and save the URLs from urls.

Nano Banana, Nano Banana Pro, Nano Banana 2 and Gemini are Google models. MakeInfluencer.ai is an independent API provider and is not affiliated with or endorsed by Google.

Thomas Martin photo
Pierre Dubois photo
User x photo
Lucas photo
Michael Chen photo
David Johnson photo

Trusted by over 300,000+ creators

FAQ

Frequently Asked Questions

Ship Nano Banana in your product today

Create an API key, preview a request and generate your first Nano Banana Pro image in a few minutes.

Start creating in minutes · Pay as you go