Nano Banana Workbench CLI
A fork of the Nano Banana 2 CLI with a local browser UI: generate up to three styles side by side, check icons at 80, 96, and 112 pixels, and keep the prompt and settings with every session.

Three generated images, one selection, and the same icon checked at its production review sizes.
Generating one image was already easy
Nano Banana 2 already generated an image from a prompt. Its CLI handled model and size settings, reference images, transparency, output files, and cost history.
I wanted an icon for every project on this site. That meant generating a batch, seeing them together, and picking the one I liked. So I forked the CLI and built a local browser UI for that decision.
I wanted choices on one screen
The original command still handles one-offs. When I want options, I run:
nano-banana workbenchThe Workbench lets me choose Images or Icons, pick up to three visual styles, set a palette, describe the subject, and generate several independent results. The model, resolution, aspect ratio, reference images, and Search setting stay the same for every image in the batch. The default is four images per style, two calls at a time. The queue starts one image from each style before starting the next round. The results land together on one screen. The call count and estimated cost show before I start, and anything over eight calls or $1 asks me to confirm.
It runs locally, and the API key stays in the server process rather than going into the browser. The page only learns whether a key is configured. I can inspect each result, keep the one I like, and download any others worth saving.
Same orange, three styles
The subject, palette, model, and settings stayed fixed. Only the style changed. The same orange, peeled in one long spiral, came back as a pastel drawing, pixel art, and an oil painting.


Images and icons need different exports
A full-frame image keeps its chosen aspect ratio and downloads byte for byte as the provider returned it. An icon gets a second look at 80, 96, and 112 pixels, on light and dark backgrounds. That's where icons live on this site: 96 on the projects page, 112 at the top of each project page. The export resizes the chosen icon to 384×384, cuts it to a circle, strips the metadata, and compresses the PNG. Nothing gets recolored or redrawn.
Save the prompt and the decision
Every session keeps the rendered prompt, recipe and palette snapshots, provider
settings, ordered references, generated images, usage, estimated cost, selection,
and exports, in its own folder under ~/.nano-banana/workbench/sessions/. A
regenerated session stays linked to the one it came from.
Gemini does not expose a seed, so the same request isn't guaranteed to give back the same pixels. That's why the session keeps the image files themselves, with their hashes, and not only the prompt.
Try it
It needs Bun, FFmpeg, ImageMagick, and a Gemini API key:
git clone https://github.com/rarestg/nano-banana-2-skill.git
cd nano-banana-2-skill
bun install && bun link
mkdir -p ~/.nano-banana
echo "GEMINI_API_KEY=your_key_here" > ~/.nano-banana/.env
nano-banana workbench