Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate or edit images via Google Gemini (nanobanana). This is the DEFAULT image skill — use whenever the user asks to generate, create, or edit an image and does NOT name another provider. Triggers: "nanobanana", "generate image", "create image", "edit image", "图片生成", "生成图片", "AI绘图", "图片编辑". Do NOT use for diagrams (架构图/流程图/时序图) — draw those with Mermaid or code instead.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 98% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-23 | ✓→✓ | = Same ✓ | 0% | 0% |
Generate or edit images using Google Gemini API through the nanobanana tool.
~/.nanobanana.env or export GEMINI_API_KEY=<your-api-key>python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt if not installed yet.${CLAUDE_SKILL_DIR}/nanobanana.pybash python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt "description of image" --output "filename.png"
bash python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt "editing instructions" --input image1.png image2.png --output "edited.png"
1024x1024 (1:1) - Square832x1248 (2:3) - Portrait1248x832 (3:2) - Landscape864x1184 (3:4) - Portrait1184x864 (4:3) - Landscape896x1152 (4:5) - Portrait1152x896 (5:4) - Landscape768x1344 (9:16) - Portrait (default)1344x768 (16:9) - Landscape1536x672 (21:9) - Ultra-widegemini-3.1-flash-image-preview (default) - Latest, fast generationgemini-3-pro-image-preview - Higher quality, supports thinking/reasoning1K (default)2K4K--no-search - Disable Google Search grounding (enabled by default)--no-think - Disable thinking/reasoning modebashpython3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt "A serene mountain landscape at sunset with a lake"
bashpython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \ --prompt "Modern minimalist logo for a tech startup" \ --size 1024x1024 \ --output "logo.png"
bashpython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \ --prompt "Futuristic cityscape with flying cars" \ --size 1344x768 \ --resolution 2K \ --output "cityscape.png"
bashpython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \ --prompt "Add a rainbow in the sky" \ --input photo.png \ --output "photo-with-rainbow.png"
bashpython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \ --prompt "Detailed portrait of a cat in watercolor style" \ --model gemini-3-pro-image-preview \ --output "cat-portrait.png"
If the script fails:
GEMINI_API_KEY is exported or set in ~/.nanobanana.envOther measured skills in the registry, with their headline benchmark lift.