Skip to main content

Overview

nanobanana-pro is a professional-grade image generation model with enhanced detail.
  • Type: Image Generation
  • Processing: Synchronous
  • Resolution: 1K / 2K / 4K
  • Price: $0.016 per image

Parameters

model
string
required
nanobanana-pro
prompt
string
required
Description of the image to generate (max 2000 characters)
negative_prompt
string
What to avoid in the image (max 1000 characters)
width
integer
Image width in pixels (256-2048, default: 1024)
height
integer
Image height in pixels (256-2048, default: 1024)
num_outputs
integer
Number of images to generate (1-4, default: 1)
resolution
string
Output resolution: 1K, 2K, or 4K
orientation
string
Image orientation: portrait or landscape

Example

curl -X POST https://api.eggapi.ai/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nanobanana-pro",
    "prompt": "A futuristic cityscape at night, cyberpunk style",
    "negative_prompt": "blurry, low quality",
    "width": 1024,
    "height": 1024,
    "num_outputs": 2,
    "resolution": "2K"
  }'

Response

{
  "data": {
    "id": "gen_abc123def456",
    "model": "nanobanana-pro",
    "urls": [
      "https://cdn.eggapi.ai/outputs/abc123.png",
      "https://cdn.eggapi.ai/outputs/def456.png"
    ],
    "cost": "$0.0320"
  },
  "error": null
}