nano-banana

Installation
SKILL.md

Generate and edit images via the OpenRouter API using the Nano Banana model (google/gemini-3.1-flash-image-preview). The API key comes from the OPENROUTER_API_KEY environment variable.

CLI

All API interactions go through the bundled CLI at scripts/nb.py (relative to this skill). This keeps token usage minimal — no need to craft curl commands or write inline Python. The CLI uses only stdlib (no pip install needed).

NB="python3 <skill-path>/scripts/nb.py"

generate — create an image from a text prompt

$NB generate "A cat wearing a top hat, distinguished and elegant" -o cat_top_hat.png
$NB generate "Mountain sunset" -o sunset.png --aspect-ratio 16:9 --image-size 4K
$NB generate "Logo concepts for a coffee shop" -o logo.png -n 3  # creates logo_1.png, logo_2.png, logo_3.png

Options:

Related skills

More from scalecommerce/skills

Installs
5
First Seen
Mar 21, 2026