Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates, edits, and composites images with Gemini Nano Banana models via a bundled nanobanana.py CLI.
36% 50%+14 ptsof test cases passed
Passed 11 of 22 test cases with the skill, and 8 of 22 without it.
This test ran on v2. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Use the bundled nanobanana.py to generate or edit images with Gemini image models. The default path targets Nano Banana 2.1 (gemini-nano-banana-2.1) with thinking summaries and Google Search grounding on, because those defaults are the main reason to use this skill instead of a generic image prompt.
GEMINI_API_KEY in ~/.nanobanana.env (GEMINI_API_KEY=sk-dummy) or the shell environment.requirements.txt.nanobanana.py in this same skill directory. Resolve its absolute path once before running it.The CLI can print --help without credentials. It validates local input files before creating an API client and exits non-zero when the API returns no image.
Model gemini-nano-banana-2.1, search grounding on, thinking summaries on at level high, resolution 1K, and no aspect ratio unless the request implies a shape. Do not make the user choose a model, search mode, or thinking mode unless they asked for that level of control.
Leaving aspect ratio unspecified is usually better for edits, because Gemini can match the input image shape. For text-only generation, set one only when the user implies a format such as poster, square post, banner, phone wallpaper, or ultrawide hero.
Worth overriding: --model gemini-3-pro-image for very detail-heavy or typography-sensitive work (slower); --resolution 512px for quick ideation (Nanobanana 2 models only), 2K/4K for polished deliverables; --thinking-level low when latency beats refinement; search off when the user wants a purely imaginative result. Run python3 /absolute/path/to/nanobanana.py --help for the exact accepted values, including the full aspect-ratio and model lists.
Generate from text:
python3 /absolute/path/to/nanobanana.py \
--prompt "Create a high-end coffee bag package design with tactile paper texture and clear typography" \
--output /absolute/path/to/output/package.png
Edit or composite — pass every reference with --input. Nanobanana 2 mixes multiple references well, so do not narrow a blend, lineup, storyboard, or consistency pass down to a single image:
python3 /absolute/path/to/nanobanana.py \
--prompt "Turn these product photos into a clean ecommerce hero image with a soft studio shadow and subtle headline area" \
--input /absolute/path/to/ref1.png /absolute/path/to/ref2.png \
--aspect-ratio 4:5 \
--output /absolute/path/to/output/hero.png
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.