Nano banana 2 edit

From awesome-genmedia/skills · View interactive version

Nano banana 2 edit is an AI agent skill from the GitHub repository awesome-genmedia/skills. Nano Banana 2 | Edit. Edit images with text prompts at up to 4K resolution with multiple output formats. Triggers: image edit, nano banana, edit, modify image

How to use this skill

Skill file

Nano Banana 2 | Edit

Edit images using text prompts with support for multiple aspect ratios, resolutions up to 4K, and various output formats.

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-2-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Make the background a tropical beach at sunset",
      "image_urls": ["https://example.com/portrait.jpg"],
      "aspect_ratio": "16:9",
      "resolution": "2K"
    }
  }'

Parameters

| Parameter | Type | Default | Description |

|-----------|------|---------|-------------|

| aspect_ratio | string | 1:1 | Aspect ratio of the generated image. enum: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |

| image_urls | array | | URLs of images for image-to-image generation or editing. |

| limit_generations | boolean | true | Experimental parameter to limit generations from each processing round. |

| num_images | integer | 1 | Number of images to generate. |

| output_format | string | png | Output image format. enum: jpeg, png, webp |

| prompt | string | | The prompt for image editing. |

| resolution | string | 1K | Resolution of the generated image. enum: 1K, 2K, 4K |

Examples

Basic image edit:

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-2-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Add a futuristic cityscape in the background",
      "image_urls": ["https://example.com/photo.jpg"],
      "resolution": "2K",
      "output_format": "png"
    }
  }'

Multiple output images at 4K:

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-2-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Transform this photo into an oil painting style",
      "image_urls": ["https://example.com/landscape.jpg"],
      "num_images": 3,
      "resolution": "4K",
      "aspect_ratio": "16:9",
      "output_format": "jpeg"
    }
  }'

Ultrawide edit:

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-2-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Extend the scene to show a panoramic mountain view",
      "image_urls": ["https://example.com/mountains.jpg"],
      "aspect_ratio": "21:9",
      "resolution": "2K"
    }
  }'

Related Models

Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.