/nano-banana:genimage runs instead · from nano-banana
Generates and edits images via the Gemini API — text-to-image, photo editing, style transfer, and multi-image composition. Useful for creating placeholders, hero images, thumbnails, social media assets, and other visual content.
This skill never runs in Claude Code
It ships in nano-banana at skills/, but /nano-banana:genimage (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Generate and edit images via the Gemini API. If the API key is missing, run /nano-banana:setup.
Determine the mode from the user's request:
--images)--images source.png)--images style.png target.png)--images a.png b.png ..., up to 14)--resolution 2K|4K to any mode aboveCraft the prompt — describe the desired result narratively. See references/prompting-guide.md for domain-specific patterns (website visuals, placeholders, product shots, etc.).
Run the script:
python "$CLAUDE_PLUGIN_ROOT/scripts/genimage.py" --prompt "..." [options]
| Flag | Required | Purpose |
|---|---|---|
--prompt "text" | Yes | Describe the desired image |
--output file.png | No | Output path (default: generated_image.png) |
--images path [...] | No | Input image(s) — omit for text-to-image |
--aspect-ratio RATIO | No | 1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9 |
--resolution RES | No | 1K 2K 4K (uppercase K required, triggers Pro model) |
gemini-3.1-flash-image-preview): Default. Fast, high-quality.gemini-3-pro-image-preview): Auto-selected when --resolution is set. 4K output, advanced reasoning, high-fidelity text rendering.| Use case | Example command |
|---|---|
| Website hero image | --prompt "..." --aspect-ratio 16:9 |
| Social media post | --prompt "..." --aspect-ratio 1:1 |
| Mobile banner | --prompt "..." --aspect-ratio 9:16 |
| Placeholder / mockup | --prompt "..." --output placeholder.png |
| Edit existing photo | --prompt "remove the background" --images photo.png |
| Style transfer | --prompt "Apply watercolor style" --images style.png photo.png |
| High-res asset | --prompt "..." --resolution 4K |
All editing is text-guided — describe what to change ("replace the sky", "remove the person", "add a sunset") and Gemini identifies and modifies regions automatically. No masks needed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-generation, image-editing, gemini-api, nano-banana, visual-assets
npx claudepluginhub ibrahim-3d/nano-banana-claude-plugin --plugin nano-bananaOther plugins' skills for the same job