Nano Banana | Edit
Edit existing images using text prompts with Nano Banana. Supports multiple aspect ratios including automatic detection from the input image.
Quick Start
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-edit",
"version": "0.0.1",
"input": {
"prompt": "Change the sky to a dramatic sunset with orange and purple clouds",
"image_urls": ["https://example.com/landscape.jpg"],
"aspect_ratio": "auto",
"num_images": 1,
"output_format": "jpeg"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
aspect_ratio |
string |
1:1 |
Aspect ratio. Options: 21:9, 1:1, 4:3, 3:2, 2:3, 5:4, 4:5, 3:4, 16:9, 9:16, auto |
image_urls |
array |
false |
URLs of images to edit |
limit_generations |
boolean |
true |
Experimental parameter to limit generations per processing round |
num_images |
integer |
1 |
Number of images to generate |
output_format |
string |
jpeg |
Output format. Options: jpeg, png |
prompt |
string |
false |
Text prompt for image editing |
Output
Examples
Background Change
{
"model": "nano-banana-edit",
"version": "0.0.1",
"input": {
"prompt": "Replace the background with a futuristic cityscape at night",
"image_urls": ["https://example.com/portrait.jpg"],
"aspect_ratio": "auto",
"output_format": "png"
}
}
Style Modification
{
"model": "nano-banana-edit",
"version": "0.0.1",
"input": {
"prompt": "Transform into a watercolor painting style",
"image_urls": ["https://example.com/photo.jpg"],
"aspect_ratio": "4:3",
"num_images": 2,
"output_format": "jpeg"
}
}
Related Models
Documentation
1---2name: nano-banana-edit3description: Edit images using Nano Banana. Trigger: Use when the user wants to edit images with Nano Banana, or requests 'nano banana edit', 'quick image edit', or 'fast AI image editing'.4---56# Nano Banana | Edit78Edit existing images using text prompts with Nano Banana. Supports multiple aspect ratios including automatic detection from the input image.910## Quick Start1112```bash13curl -X POST https://api.eachlabs.ai/v1/prediction \14 -H "Content-Type: application/json" \15 -H "X-API-Key: $EACHLABS_API_KEY" \16 -d '{17 "model": "nano-banana-edit",18 "version": "0.0.1",19 "input": {20 "prompt": "Change the sky to a dramatic sunset with orange and purple clouds",21 "image_urls": ["https://example.com/landscape.jpg"],22 "aspect_ratio": "auto",23 "num_images": 1,24 "output_format": "jpeg"25 }26 }'27```2829## Parameters3031| Parameter | Type | Default | Description |32|-----------|------|---------|-------------|33| `aspect_ratio` | string | `1:1` | Aspect ratio. Options: `21:9`, `1:1`, `4:3`, `3:2`, `2:3`, `5:4`, `4:5`, `3:4`, `16:9`, `9:16`, `auto` |34| `image_urls` | array | `false` | URLs of images to edit |35| `limit_generations` | boolean | `true` | Experimental parameter to limit generations per processing round |36| `num_images` | integer | `1` | Number of images to generate |37| `output_format` | string | `jpeg` | Output format. Options: `jpeg`, `png` |38| `prompt` | string | `false` | Text prompt for image editing |3940## Output4142- **Type:** array4344## Examples4546### Background Change47```json48{49 "model": "nano-banana-edit",50 "version": "0.0.1",51 "input": {52 "prompt": "Replace the background with a futuristic cityscape at night",53 "image_urls": ["https://example.com/portrait.jpg"],54 "aspect_ratio": "auto",55 "output_format": "png"56 }57}58```5960### Style Modification61```json62{63 "model": "nano-banana-edit",64 "version": "0.0.1",65 "input": {66 "prompt": "Transform into a watercolor painting style",67 "image_urls": ["https://example.com/photo.jpg"],68 "aspect_ratio": "4:3",69 "num_images": 2,70 "output_format": "jpeg"71 }72}73```7475## Related Models7677- [Nano Banana](../nano-banana/SKILL.md) - Text-to-image generation78- [Seedream V4 Edit](../seedream-v4-edit/SKILL.md) - Advanced image editing79- [Flux Krea Image to Image](../flux-krea-image-to-image/SKILL.md) - Image transformation8081## Documentation8283- [EachLabs API Docs](https://docs.eachlabs.ai)