Quick Start

Get started with Nano Banana Pro API in minutes

1. Get your API Key

Sign in to your account and navigate to the API Keys page to create a new API key.

2. Check your balance
curl https://gateway.nanobananapro.site/api/v1/account/balances \
  -H "Authorization: Bearer sk-your-api-key"
3. Generate your first image
curl -X POST https://gateway.nanobananapro.site/api/v1/images/generate \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-pro",
    "prompt": "A beautiful sunset over mountains",
    "aspect_ratio": "16:9"
  }'

Response:

{
  "success": true,
  "data": {
    "task_id": "task_abc123",
    "credits_used": 6,
    "remaining_credits": 494
  }
}
4. Check task status
curl https://gateway.nanobananapro.site/api/v1/images/task_abc123 \
  -H "Authorization: Bearer sk-your-api-key"

Response:

{
  "success": true,
  "data": {
    "task_id": "task_abc123",
    "status": "completed",
    "image_url": "https://cdn.example.com/image.png"
  }
}
Full Code Examples
Complete working examples in different languages
Nano Banana Pro API