Developer API
Nano Banana Pro API
Integrate powerful AI generation capabilities into your applications. Generate images, videos, and music programmatically with simple REST API calls.
2
Endpoints
10+
Models
99.9%
Uptime
Why Use Our API
Multiple AI Models
Access a wide range of AI models including Nano Banana, Seedream, GPT Image, Veo and more through a single unified API.
Simple Integration
RESTful API with Bearer token authentication. Get started in minutes with just two endpoints.
Pay Per Use
No monthly minimums. Only pay for what you generate using our flexible credit system.
Async Task System
Submit generation tasks and poll for results. Built for production workloads with automatic retries and status tracking.
API Endpoints
Quick Start Example
| 1 | curl -X POST https://nanobanana-pro.me/api/v1/generate \ |
| 2 | -H "Authorization: Bearer sk-xxxxx" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "mediaType": "image", |
| 6 | "model": "nano-banana-2", |
| 7 | "prompt": "a cute cat sitting on a cloud", |
| 8 | "scene": "text-to-image", |
| 9 | "options": { |
| 10 | "aspect_ratio": "1:1", |
| 11 | "resolution": "2K" |
| 12 | } |
| 13 | }' |
| 14 | |
| 15 | # Response: |
| 16 | # { "code": 0, "data": { "taskId": "xxx-xxx" } } |
| 17 | |
| 18 | curl https://nanobanana-pro.me/api/v1/task/{taskId}?refresh=1 \ |
| 19 | -H "Authorization: Bearer sk-xxxxx" |