
Nanobanana
A wrapper around Google's Gemini 3 Pro Image model that handles both text-to-image generation and image editing through a straightforward Python CLI. You get aspect ratio controls (1:1, 16:9, 21:9, etc.), resolution options up to 4K, and optional Google Search grounding for factual accuracy. The batch generation script is handy if you need to explore variations quickly. It's pretty bare bones as far as features go, but if you already have a Gemini API key and want something simple without diving into the full SDK, it gets the job done. Just note the API has rate limits, so the built-in delays for batch processing are actually necessary.
- skills.sh installs
- 3K
- GitHub stars
- 1.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add resciencelab/opc-skills --skill nanobanana --agent claude-codeInstalls into .claude/skills of the current project.
Files
Nano Banana - AI Image Generation
Generate and edit images using Google's Gemini 3 Pro Image model (gemini-3-pro-image-preview, nicknamed "Nano Banana Pro" 🍌).
Prerequisites
Required:
GEMINI_API_KEY- Get from Google AI Studio- Python 3.10+ with
google-genaipackage
Install dependencies:
pip install google-genai pillow
Quick Start
Generate an image:
python3 <skill_dir>/scripts/generate.py "a cute robot mascot, pixel art style" -o robot.png
Edit an existing image:
python3 <skill_dir>/scripts/generate.py "make the background blue" -i input.jpg -o output.png
Generate with specific aspect ratio:
python3 <skill_dir>/scripts/generate.py "cinematic landscape" --ratio 21:9 -o landscape.png
Generate high-resolution 4K image:
python3 <skill_dir>/scripts/generate.py "professional product photo" --size 4K -o product.png
Script Reference
scripts/generate.py
Main image generation script.
Usage: generate.py [OPTIONS] PROMPT
Arguments:
PROMPT Text prompt for image generation
Sponsors
Details
- Repository
- github.com/resciencelab/opc-skills
- Category
- Generative Media