No. The Nano Banana API on this site is the Nano AI image API — an independent service that is not affiliated with Google.
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"
}'Endpoints
One API surface covers every model — pick nano, nano2 or nano2pro with the model field instead of switching endpoints.
POST
/api/generateText to image
Create a generation task from a text prompt for nano, nano2 or nano2pro.
POST
/api/editImage editing
Create an editing task with image URLs and a prompt on the same task flow.
GET
/api/statusTask status
Poll any task with task_id and retrieve the generated image URLs when it succeeds.
Models
Set the model field on every request. nano2 is the recommended default for new integrations.
| Model | Model name | Use case |
|---|---|---|
nano | Original Nano AI Fast | Backward-compatible default for existing integrations. |
nano2 | Nano AI 2 | Recommended default for new image generation integrations. |
nano2pro | Nano AI 2 Pro | Higher 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 keyNano AI is an independent service and is not affiliated with Google.