Skills

Nano Banana

Generate or edit images via Nano Banana image models.

Install

npx skills add nexu-io/nexu --skill nano-banana -g -a claude-code -y
Repository
nexu-io/nexu3.3k
Category
Media
Updated
6mo ago
License
MIT
Context cost
Lightabout 667 tokens
Runs scripts
Yes, review before use

What it does

Generate or edit images via Nano Banana image models. Triggers on "generate image", "image generation", "nano banana", "edit image", "nano banana pro", "nano banana 2

Nano Banana, Image Generation

Image generation script supporting three models. Requires sharp for input image compression (auto-installed on first run).

Models

FlagNotes
--model nano-bananaDefault. Fast, good quality.
--model nano-banana-proHighest quality, slower.
--model nano-banana-2Legacy model.

Generate an image

node {baseDir}/scripts/generate-image.js --prompt "a cat sitting on mars" --filename "cat-on-mars.png"

Edit a single image

node {baseDir}/scripts/generate-image.js \
  --prompt "make the sky purple" \
  --filename "edited.png" \
  -i "/path/to/input.png" \
  --model nano-banana-pro

Multi-image composition (up to 14 images)

node {baseDir}/scripts/generate-image.js \
  --prompt "combine these into a collage" \
  --filename "collage.png" \
  -i img1.png -i img2.png -i img3.png

Options

FlagShortDefaultDescription
--prompt-prequiredImage description or editing instruction
--filename-frequiredOutput filename
--input-image-i,Input image(s), repeatable, max 14
--model,nano-banananano-banana, nano-banana-pro, or nano-banana-2
--resolution-r1K1K, 2K, or 4K
--aspect-ratio,,e.g. 1:1, 16:9, 4:3, 3:4, 9:16

API key

The API key is pre-configured on this machine. No flags or environment variables needed.

Input image handling

All input images are sent as inline base64. Images over 500 KB are automatically compressed to JPEG and resized to fit under the limit. This keeps requests fast and avoids File API auth issues with the enterprise endpoint.

Output

Read the whole SKILL.md on GitHub

More in Media