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-code

Installs 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-genai package

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

More from resciencelab/opc-skills

All 12
1nexu-io avatarvideo-hyperframesnexu-io/open-designHyperframes / Remotion-compatible continuous frame animation with autoplay support.2.8Kskills.sh installs
2agricidaniel avatarblog-audioagricidaniel/claude-blogGenerate audio narration of blog posts using Google Gemini TTS. Supports summary narration, full article read-aloud, and two-speaker podcast/dialogue mode with 2.7Kskills.sh installs
3heygen-com avatarhyperframes-read-firstheygen-com/hyperframesSTART HERE for any request to make, create, generate, edit, animate, or render a video, animation, motion graphic, explainer, title card, overlay, captioned vid2.4Kskills.sh installs
4heygen-com avatarheygen-translateheygen-com/skillsTranslate and dub a video into another language with voice cloning and lip-sync, powered by HeyGen Video Translation. The presenter keeps their face, their voic2.3Kskills.sh installs
5triggerdotdev avatartrigger-configtriggerdotdev/skillsConfigure Trigger.dev projects with trigger.config.ts. Use when setting up build extensions for Prisma, Playwright, FFmpeg, Python, or customizing deployment se2.3Kskills.sh installs
6starchild-ai-agent avatarimage-createstarchild-ai-agent/official-skillsPure text-to-image generation for all creative scenarios (no reference photo). Covers logo design, poster design, illustration, meme, game assets, social media 2.1Kskills.sh installs