Loading...
Loading...
Generates AI images using the nano-banana CLI (Gemini 3.1 Flash default, Pro available). Handles multi-resolution (512-4K), aspect ratios, reference images for style transfer, green screen workflow for transparent assets, cost tracking, and exact dimension control. Use when asked to "generate an image", "create a sprite", "make an asset", "generate artwork", or any image generation task for UI mockups, game assets, videos, or marketing materials.
npx skill4agent add kingbootoshi/nano-banana-2-skill nano-bananacurl -fsSL https://bun.sh/install | bash# 1. Clone the repo
git clone https://github.com/kingbootoshi/nano-banana-2-skill.git ~/tools/nano-banana-2
# 2. Install dependencies
cd ~/tools/nano-banana-2 && bun install
# 3. Link globally (creates `nano-banana` command via Bun - no sudo)
cd ~/tools/nano-banana-2 && bun link
# 4. Set up API key
mkdir -p ~/.nano-banana
echo "GEMINI_API_KEY=<ask user for their key>" > ~/.nano-banana/.envnano-banana "prompt"bun linkmkdir -p ~/.local/bin
ln -sf ~/tools/nano-banana-2/src/cli.ts ~/.local/bin/nano-banana
# Then ensure ~/.local/bin is on PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcnano-banana "prompt" [options]| Option | Default | Description |
|---|---|---|
| | Output filename (no extension) |
| | Image size: |
| model default | Aspect ratio: |
| | Model: |
| current directory | Output directory |
| - | Reference image (can use multiple times) |
| - | Generate on green screen, remove background (FFmpeg) |
| - | Gemini API key (overrides env/file) |
| - | Show cost summary |
| Alias | Model | Use When |
|---|---|---|
| Gemini 3.1 Flash | Default. Fast, cheap (~$0.067/1K image) |
| Gemini 3 Pro | Highest quality needed (~$0.134/1K image) |
| Size | Cost (Flash) | Cost (Pro) |
|---|---|---|
| ~$0.045 | Flash only |
| ~$0.067 | ~$0.134 |
| ~$0.101 | ~$0.201 |
| ~$0.151 | ~$0.302 |
1:116:99:164:33:43:22:34:55:421:9-anano-banana "cinematic scene" -a 16:9nano-banana "minimal dashboard UI with dark theme"
nano-banana "cinematic landscape" -s 2K -a 16:9
nano-banana "quick concept sketch" -s 512# Default (Flash - fast, cheap)
nano-banana "your prompt"
# Pro (highest quality)
nano-banana "detailed portrait" --model pro -s 2K# Edit existing image
nano-banana "change the background to pure white" -r dark-ui.png -o light-ui
# Style transfer - multiple references
nano-banana "combine these two styles" -r style1.png -r style2.png -o combinednano-banana "robot mascot character" -t -o mascot
nano-banana "pixel art treasure chest" -t -o chest-tcolorkeydespillbrew install ffmpeg imagemagick-r-rnano-banana "pixel art character in style of first image, 256x256" -r style.png -r blank-256x256.png -o sprite~/.nano-banana/costs.jsonnano-banana --costs# UI mockups
nano-banana "clean SaaS dashboard with analytics charts, white background"
# Widescreen cinematic
nano-banana "cyberpunk cityscape at sunset" -a 16:9 -s 2K
# Product shots with Pro quality
nano-banana "premium software product hero image" --model pro
# Quick low-res concept
nano-banana "rough sketch of a robot" -s 512
# Dark mode UI
nano-banana "Premium SaaS chat interface, dark mode, minimal, Linear-style aesthetic"
# Game assets with transparency (green screen auto-prompted)
nano-banana "pixel art treasure chest" -t -o chest
# Portrait aspect ratio
nano-banana "mobile app onboarding screen" -a 9:16--api-keyGEMINI_API_KEY.env.env~/.nano-banana/.env