nanobanana
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, various aspect ratios, and high-resolution output (2K/4K). Use when user wants to generate images, create images, use Gemini image generation, or do AI image generation.
npx skills add ReScienceLab/opc-skills --skill nanobanana --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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](https://aistudio.google.com/apikey) - Python 3.10+ with `google-genai` package **Install dependencies:** ```bash pip install google-genai pillow ``` ## Quick Start ### Generate an image: ```bash python3 <skill_dir>/scripts/generate.py "a cute robot mascot, pixel art style" -o robot.png ``` ### Edit an existing image: ```bash python3 <skill_dir>/scripts/generate.py "make the background blue" -i input.jpg -o output.png ``` ### Generate with specific aspect ratio: ```bash python3 <skill_dir>/scripts/generate.py "cinematic landscape" --ratio 21:9 -o landscape.png ``` ### Generate high-resolution 4K image: ```bash 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 Options: -o, --output PATH Output file path (default: auto-generated) -i,
- Prerequisites
- Quick Start
- Generate an image:
- Edit an existing image:
- Generate with specific aspect ratio:
- Generate high-resolution 4K image:
- Script Reference
- scripts/generate.py
- scripts/batchgenerate.py
- Python API
- Environment Variables
- Features
- Text-to-Image Generation
- Image Editing
pip install google-genai pillow python3 <skill_dir>/scripts/generate.py "a cute robot mascot, pixel art style" -o robot.png python3 <skill_dir>/scripts/generate.py "make the background blue" -i input.jpg -o output.png python3 <skill_dir>/scripts/generate.py "cinematic landscape" --ratio 21:9 -o landscape.png python3 <skill_dir>/scripts/generate.py "professional product photo" --size 4K -o product.png python3 <skill_dir>/scripts/batch_generate.py "pixel art logo" -n 20 -d ./logos -p logo
What does the nanobanana skill do?
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, various aspect ratios, and high-resolution output (2K/4K). Use when user wants to generate images, create images, use Gemini image generation, or do AI image generation.
How do I install it?
Run `npx skills add ReScienceLab/opc-skills --skill nanobanana --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ReScienceLab/opc-skills, a repository with 1,192 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
