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/generateParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Must be "nano-banana" |
| prompt | string | Required | Text description of the image to generate |
| negative_prompt | string | Optional | What to avoid in the image |
| aspect_ratio | string | Optional | "1:1", "16:9", "9:16", "4:3", "3:4" |
| input_image | string | Optional | URL or base64 for image-to-image |
| num_images | number | Optional | Must 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"
}'