Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nano-banana-pro

Skill by steipete

Generates new images and edits existing ones with Google's Nano Banana 2 API (Gemini 3.1 Flash Image). It is built for AI assistants that need PNG output at resolutions from 512 to 4K.

  • Score 85
  • 7.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nano-banana-pro

Built from the published package, never by AI.

git clone --depth 1 https://github.com/steipete/agent-scripts /tmp/agent-scripts && mkdir -p ~/.claude/skills && cp -r /tmp/agent-scripts/skills/nano-banana-pro ~/.claude/skills/nano-banana-pro

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nano-banana-pro in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Nano Banana Pro is an agent skill that generates new images and edits existing ones using Google's Nano Banana 2 API, which the source identifies as Gemini 3.1 Flash Image. The assistant runs a script called generate_image.py through uv, passing a prompt, an output filename, and optionally an input image and a resolution. Supported resolutions are 512, 1K (the default), 2K and 4K. The skill also describes a draft, iterate, final workflow: draft at 1K, then render the final at 4K once the prompt is set.

Images are saved as PNG files in the current directory, and the script prints the full path. Filenames follow a timestamp pattern. The API key can come from an --api-key argument or the GEMINI_API_KEY environment variable. The skill suits users who want image generation or editing from an AI assistant using Google's Gemini image model.

Written from the project's SKILL.md and checked against it.

What it can do

  • Generate imagesCreates a new PNG from a text prompt using the generate_image.py script.
  • Edit existing imagesModifies an input image using the --input-image option and editing instructions in the prompt.
  • Resolution optionsOutputs at 512, 1K (default), 2K or 4K, with natural-language mapping for user requests.
  • Draft to final workflowIterates at 1K for speed, then renders the final image at 4K once the prompt is locked.
  • Timestamped filenamesNames outputs with the yyyy-mm-dd-hh-mm-ss-name.png pattern and a short descriptive part.
  • Prompt templatesProvides generation and editing templates for vague requests or precise, limited edits.

What you need

  • uv installed on the system
  • Gemini API key, set as GEMINI_API_KEY or passed with --api-key

Try asking

  • Generate a 4K image of a serene Japanese garden with cherry blossoms
  • Edit original-photo.jpg to make the sky more dramatic with storm clouds
  • Make a quick 1K draft of a robot, then render the final at 4K

Good to know

  • Existing files, hard links and symlinks are rejected, so a new filename is required.
  • Symlinked path components are rejected; real directory paths must be used.
  • Absolute paths outside the current directory are supported on macOS and Linux.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/nano-banana-pro/SKILL.md, skills/nano-banana-pro/scripts/generate_image.py, skills/nano-banana-pro/scripts/test_generate_image.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • scripts/generate_image.py7 KB
  • scripts/test_generate_image.py7 KB

Alternatives to nano-banana-pro

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

nano-banana-pro: common questions

Which image model does nano-banana-pro use?

It uses Google's Nano Banana 2 API, which the source identifies as Gemini 3.1 Flash Image.

Where are generated images saved?

The PNG is saved to the current directory, or to a specified path if the filename includes a directory. The script outputs the full path.

Can it overwrite an existing file?

No. The script requires a new filename, and existing files, hard links and symlinks are rejected.

How do I install nano-banana-pro?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nano-banana-pro free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nano-banana-pro safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to nano-banana-pro?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

nano-banana-pro Install

Add to stack

Loading.