LogoNano AI
Sign In

Developer API

Nano Banana API: Nano AI Image Generation API

The Nano Banana API is the Nano AI image API: generate and edit images with nano, nano2 or nano2pro through one authenticated surface — submit a task, poll for the result.

Quickstart

Create a key on the API keys page, then send a POST to /api/generate with your prompt and model. The response returns a task_id — poll /api/status until the task finishes.

bash
curl -X POST "https://nanobnana.com/api/generate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A professional product photo of a modern wristwatch on a clean white background",
    "model": "nano2"
  }'

Models

Set the model field on every request. nano2 is the recommended default for new integrations.

ModelModel nameUse case
nanoOriginal Nano AI FastBackward-compatible default for existing integrations.
nano2Nano AI 2Recommended default for new image generation integrations.
nano2proNano AI 2 ProHigher quality generation and editing workflows.

Integrate in three steps

The API is asynchronous: every generate or edit call returns a task_id that you poll until the image is ready.

01

Create an API key

Sign in and generate a key on the API keys page of your dashboard.

02

Submit a task

POST to /api/generate or /api/edit with your prompt and model; the response contains a task_id.

03

Poll for the result

Call GET /api/status?task_id=… until the task succeeds and the response carries the image URLs.

Pricing

API usage is billed in account credits — sign in to claim free credits, then see the pricing page for packages. View pricing

FAQ

Nano Banana API FAQ

Build with the Nano AI API

Create a key, run the quickstart and ship your first generated image in minutes.

Get your API key

Nano AI is an independent service and is not affiliated with Google.