nano-banana-pro

Installation
Summary

Text-to-image generation and image-to-image editing via Google's Gemini 3 Pro Image API.

  • Supports both new image generation from text prompts and editing of existing images with instruction-based modifications
  • Configurable output resolution: 1K (default), 2K, or 4K for high-resolution results
  • Automatically detects API key from --api-key argument or GEMINI_API_KEY environment variable
  • Saves PNG output to the user's current working directory with timestamped filenames
SKILL.md

Nano Banana Pro Image Generation & Editing

Generate new images or edit existing ones using Google's Nano Banana Pro API (Gemini 3 Pro Image).

Usage

Run the script using absolute path (do NOT cd to skill directory first):

Generate new image:

uv run ~/.claude/skills/nano-banana-pro/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 1K|2K|4K] [--api-key KEY]

Edit existing image:

uv run ~/.claude/skills/nano-banana-pro/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input.png" [--resolution 1K|2K|4K] [--api-key KEY]

Important: Always run from the user's current working directory so images are saved where the user is working, not in the skill directory.

Related skills
Installs
2.3K
GitHub Stars
259
First Seen
Jan 20, 2026