PluginPartly tested (needs an account)
Make and edit images in Gemini CLI
Nano Banana
Gemini CLI extension that creates and edits images from plain-language prompts with Google's Nano Banana models, and can restore old photos.
- Works with
- Gemini CLI
- Good for
- Graphic designers
What it does
This extension adds image creation and editing to Gemini CLI. You describe a picture, or point to an image file and say what to change. The extension sends the request to Google's Nano Banana image models and saves the result in your folder.
After you install it and restart Gemini CLI, you get these commands:
/generate: make one image or up to 8 versions, with styles such as watercolor, sketch or pixel-art/edit: change an existing image, for example "remove the background"/restore: repair old or damaged photos/icon: app icons and favicons in several sizes/pattern: seamless patterns and textures/story: 2 to 8 images that show steps or a story/diagram: flowcharts, architecture drawings and wireframes/nanobanana: ask in plain words
New images go into a nanobanana-output folder in your current folder, with names based on your prompt. For edits, the extension looks for the file in your current folder, images, input, nanobanana-output, your Downloads folder and your Desktop.
You need Gemini CLI, Node.js 20 or newer and a Gemini API key from Google AI Studio. An API key is a secret code that lets a program use your Google account. The installer asks for the key. The extension stores it in NANOBANANA_API_KEY. Your normal Gemini CLI sign-in does not cover this extension; it reads only API keys.
Model warning. Version 1.0.12 uses gemini-3.1-flash-image-preview by default. Google's deprecations page lists that model with a shutdown date of 25 June 2026. The same page lists the Pro preview model (gemini-3-pro-image-preview) with the same date. See "Common problems" for the fix.
Who it is for
People who already use Gemini CLI and want quick images, icons or photo fixes without leaving the terminal.
Example prompts
/generate "a flat illustration of a coffee cup for a café menu"/edit logo.png "remove the background"/restore old_scan.jpg "remove scratches and improve clarity"/icon "checklist productivity app" --sizes="64,128,256"/nanobanana create a simple logo for my tech newsletter
How to install
gemini extensions install https://github.com/gemini-cli-extensions/nanobananaHow to use it
The install asks for your Gemini API key. The default model is shut down, so first set NANOBANANA_MODEL=gemini-3.1-flash-image. Then ask Gemini CLI to make or change an image.
Other assistants
Claude Code and Codex CLI are not supported. This is a Gemini CLI extension only.
Check it works
- Run
gemini extensions list. You should seenanobananawith "Enabled (User): true". - Restart Gemini CLI and type
/generate "a red apple". - Look for a new image in the
nanobanana-outputfolder.
Common problems
- Every image request fails — Gemini CLI shows a model error — the default model is shut down. The extension accepts any model name, so run
export NANOBANANA_MODEL=gemini-3.1-flash-imageand restart Gemini CLI. We did not test image creation, so check Google's model list if this name also fails. - No API key found — requests fail at once — get a key at aistudio.google.com/apikey, run
export NANOBANANA_API_KEY="your-key"and start Gemini CLI again. /generateis not a known command — Gemini CLI does not know the command — rungemini extensions list, check that nanobanana shows "Enabled", and restart Gemini CLI.- Image not found —
/editor/restorecannot find your file — move the file into your current folder or one of the folders listed above.
What to watch out for
- Needs a Gemini API key in NANOBANANA_API_KEY
- Sends prompts and images to Google
- Google's pricing page lists no free tier for its Nano Banana image models; each image is billed
- Default model gemini-3.1-flash-image-preview has a Google shutdown date of 25 June 2026; set NANOBANANA_MODEL
- Edit and restore can read images from your Downloads and Desktop folders and send them to Google
Licence and author
- Licence
- Apache-2.0
- Author
- gemini-cli-extensions
- Source code
- github.com/gemini-cli-extensions/nanobanana
How we tested it
We installed it on an empty test computer on 13 Oct 2026. Partly tested: installed in a clean test system, but its main features need an account or key we did not use.
We did not generate an image, because that needs a real API key. Not yet used on real work.
Technical details of the test
- Date
- 13 Oct 2026
- Method
- In a clean container with no account we installed Gemini CLI 0.63.0 and ran gemini extensions install with the repository link. The installer asked for a Gemini API key, installed nanobanana 1.0.12 and enabled it. gemini extensions list showed it as enabled.
Checked again on 15 Oct 2026
Alternatives
- Adobe for creativity: a hosted Claude connector with Photoshop and Firefly tools (not an open-source repository).
- HyperFrames: its
media-useskill finds or generates images inside video projects, not as a general image tool.
FAQ
Is it free?
The extension code is Apache-2.0, but the images cost money. On 15 October 2026, Google's pricing page listed no free tier for its Nano Banana image models. It listed about $0.067 per 1K image for Gemini 3.1 Flash Image and about $0.134 for Gemini 3 Pro Image. Check Google's pricing page before you start. --count=8 makes 8 billed images.
Which models can I use?
Set NANOBANANA_MODEL to choose. For Nano Banana Pro, Google now lists gemini-3-pro-image. Google marks the first model, gemini-2.5-flash-image, as deprecated.
What goes to Google? Your prompts and any image you edit or restore. The extension can read images from your Downloads and Desktop folders, so check which file it picked.
Where do images go?
Into nanobanana-output in your current folder. The folder is created automatically.
Do I need to code? No. You type commands or plain requests; the extension does the rest.
Sources
- github.com/gemini-cli-extensions/nanobanana
- raw.githubusercontent.com/gemini-cli-extensions/nanobanana/main/README.md
- github.com/gemini-cli-extensions/nanobanana/blob/main/gemini-extension.json
- github.com/gemini-cli-extensions/nanobanana/blob/main/mcp-server/src/imageGenerator.ts
- ai.google.dev/gemini-api/docs/pricing
- ai.google.dev/gemini-api/docs/deprecations