Generate and edit images with Google Nano Banana through the Kie.ai jobs API. General-purpose image skill across all three Nano Banana variants. (For tuned YouTube thumbnails, /yt-thumbnail is still the dedicated tool.)
Setup: needs
KIE_API_KEYin~/.claude/.env.
Variants
| Key | Model id(s) | Max refs | Resolutions | Notes |
|---|---|---|---|---|
nano-banana-pro (default) |
nano-banana-pro |
8 | 1K/2K/4K | High quality t2i + remix |
nano-banana-2 |
nano-banana-2 |
14 | 1K/2K/4K | Most reference images; extra wide/tall ratios (1:4, 8:1…) |
nano-banana |
google/nano-banana (t2i), google/nano-banana-edit (edit) |
10 | — | Original; png/jpeg |
Flow
- Parse
$ARGUMENTS. If the user supplies image(s) → edit/remix mode (auto-detected). - Settings (ask, or defaults):
- Variant: default
nano-banana-pro. Usenano-banana-2when remixing many references or for ultra-wide/tall ratios. - Aspect ratio:
16:9(default) and the usual set;nano-banana-2adds1:4,1:8,4:1,8:1. - Resolution:
1K,2K(default),4K(Pro / v2). - Format:
png(default) orjpg. - Variants: default 3.
- Variant: default
- Craft the prompt. Show before generating. For edits, say what to keep vs change.
- Generate:
python3 ~/.claude/skills/kie-nano-banana/generate.py "<prompt>" \
--model nano-banana-pro --aspect-ratio 16:9 --resolution 2K --format png --count 3 \
[--image <url-or-path> ...] # any --image switches to edit/remix
--slug <slug>
- Present: output →
~/images/nano-banana/<date>-<slug>/. Offer more variants, 4K, a different variant, or a remix pass on a favorite.
Notes
- Passing
--imageswitches to edit/remix; local files auto-upload. nano-banana-2supports up to 14 reference images and the widest aspect-ratio set.