Nano Banana

Fast image generation with text-to-image and image-to-image support

Features
  • Text-to-image generation
  • Image-to-image transformation
  • Multiple aspect ratios
  • Fast generation (~5s)
Pricing
4 (~$0.04)Per image
Endpoint
POST/api/v1/images/generate
Parameters
ParameterTypeRequiredDescription
modelstringRequiredMust be "nano-banana"
promptstringRequiredText description of the image to generate
negative_promptstringOptionalWhat to avoid in the image
aspect_ratiostringOptional"1:1", "16:9", "9:16", "4:3", "3:4"
input_imagestringOptionalURL or base64 for image-to-image
num_imagesnumberOptionalMust be 1
Request Example
{
  "model": "nano-banana",
  "prompt": "A futuristic city at night with neon lights",
  "aspect_ratio": "16:9"
}
Response Example
{
  "success": true,
  "data": {
    "task_id": "task_abc123",
    "credits_used": 4,
    "remaining_credits": 496,
    "model": "nano-banana"
  }
}
Code Examples
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",
    "prompt": "A futuristic city at night with neon lights",
    "aspect_ratio": "16:9"
  }'
Nano Banana Pro API