Nano Banana Pro
Generate images from text prompts with Nano Banana Pro. Supports a wide range of aspect ratios, up to 4K resolution, and batch generation.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "nano-banana-pro",
"version": "0.0.1",
"input": {
"prompt": "a futuristic city with flying cars and neon signs, cyberpunk",
"aspect_ratio": "16:9",
"resolution": "1K"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| aspect_ratio |
string |
1:1 |
The aspect ratio of the generated image. enum: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |
| limit_generations |
boolean |
false |
Experimental parameter to limit the number of generations per round. |
| num_images |
integer |
1 |
The number of images to generate. |
| output_format |
string |
png |
The format of the generated image. enum: jpeg, png, webp |
| prompt |
string |
|
The text prompt to generate an image from. |
| resolution |
string |
1K |
The resolution of the image to generate. enum: 1K, 2K, 4K |
Examples
4K landscape generation:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "nano-banana-pro",
"version": "0.0.1",
"input": {
"prompt": "dramatic volcanic eruption at night, lava flows, stars visible, ultra detailed",
"aspect_ratio": "21:9",
"resolution": "4K",
"output_format": "png"
}
}'
Batch portrait generation:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "nano-banana-pro",
"version": "0.0.1",
"input": {
"prompt": "renaissance oil painting of a young scholar, rich warm tones",
"aspect_ratio": "3:4",
"resolution": "2K",
"num_images": 4,
"output_format": "jpeg"
}
}'
Related Models
Documentation
1---2name: nano-banana-pro3description: Nano Banana Pro. Generate images from text with up to 4K resolution and multiple aspect ratios. Triggers: text to image, nano banana, image generation4---56# Nano Banana Pro78Generate images from text prompts with Nano Banana Pro. Supports a wide range of aspect ratios, up to 4K resolution, and batch generation.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314```bash15curl -X POST https://api.eachlabs.ai/v1/prediction \16 -H "Content-Type: application/json" \17 -H "X-API-Key: $EACHLABS_API_KEY" \18 -d '{19 "model": "nano-banana-pro",20 "version": "0.0.1",21 "input": {22 "prompt": "a futuristic city with flying cars and neon signs, cyberpunk",23 "aspect_ratio": "16:9",24 "resolution": "1K"25 }26 }'27```2829## Parameters3031| Parameter | Type | Default | Description |32|-----------|------|---------|-------------|33| aspect_ratio | string | 1:1 | The aspect ratio of the generated image. enum: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |34| limit_generations | boolean | false | Experimental parameter to limit the number of generations per round. |35| num_images | integer | 1 | The number of images to generate. |36| output_format | string | png | The format of the generated image. enum: jpeg, png, webp |37| prompt | string | | The text prompt to generate an image from. |38| resolution | string | 1K | The resolution of the image to generate. enum: 1K, 2K, 4K |3940## Examples4142**4K landscape generation:**43```bash44curl -X POST https://api.eachlabs.ai/v1/prediction \45 -H "Content-Type: application/json" \46 -H "X-API-Key: $EACHLABS_API_KEY" \47 -d '{48 "model": "nano-banana-pro",49 "version": "0.0.1",50 "input": {51 "prompt": "dramatic volcanic eruption at night, lava flows, stars visible, ultra detailed",52 "aspect_ratio": "21:9",53 "resolution": "4K",54 "output_format": "png"55 }56 }'57```5859**Batch portrait generation:**60```bash61curl -X POST https://api.eachlabs.ai/v1/prediction \62 -H "Content-Type: application/json" \63 -H "X-API-Key: $EACHLABS_API_KEY" \64 -d '{65 "model": "nano-banana-pro",66 "version": "0.0.1",67 "input": {68 "prompt": "renaissance oil painting of a young scholar, rich warm tones",69 "aspect_ratio": "3:4",70 "resolution": "2K",71 "num_images": 4,72 "output_format": "jpeg"73 }74 }'75```7677## Related Models7879- [Nano Banana Pro | Edit](../nano-banana-pro-edit/) - Image editing variant80- [Gemini 3 | Pro | Image Preview](../gemini-3-pro-image-preview/) - Alternative text-to-image model8182## Documentation8384- [each::labs Docs](https://docs.eachlabs.ai)85- [API Reference](https://docs.eachlabs.ai/api/overview)