gemini-imagegen
This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.
npx skills add majiayu000/claude-skill-registry --skill gemini-imagegen --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.
# Gemini Image Generation (Nano Banana Pro) Generate and edit images using Google's Gemini API. Use `op run -- uv run ...` to run Python scripts. ## Default Model | Model | Resolution | Best For | |-------|------------|----------| | `gemini-3-pro-image-preview` | 1K-4K | All image generation (default) | **Note:** Always use this Pro model. Only use a different model if explicitly requested. ## Quick Reference ### Default Settings - **Model:** `gemini-3-pro-image-preview` - **Resolution:** 1K (default, options: 1K, 2K, 4K) - **Aspect Ratio:** 1:1 (default) ### Available Aspect Ratios `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9` ### Available Resolutions `1K` (default), `2K`, `4K` ## CLI Scripts Ready-to-use scripts for common tasks. All scripts are in the `scripts/` directory. ### Generate Image from Text ```bash op run -- uv run scripts/generate.py "A sunset over mountains" -o sunset.jpg op run -- uv run scripts/generate.py "A minimalist logo" --aspect 1:1 --size 2K -o logo.jpg ``` Options: - `-o, --output`: Output file path (default: output.jpg) - `--aspect`: Aspect ratio (1:1, 16:9, 9:16, etc.) - `--size`: Resolution (1K, 2K, 4K) ### Edit an Existing Im
- Default Model
- Quick Reference
- Default Settings
- Available Aspect Ratios
- Available Resolutions
- CLI Scripts
- Generate Image from Text
- Edit an Existing Image
- Compose Multiple Images
- Core API Pattern
- Custom Resolution & Aspect Ratio
- Resolution Examples
- Aspect Ratio Examples
- Editing Images
op run -- uv run scripts/generate.py "A sunset over mountains" -o sunset.jpg op run -- uv run scripts/generate.py "A minimalist logo" --aspect 1:1 --size 2K -o logo.jpg op run -- uv run scripts/edit.py input.jpg "Add a sunset to the sky" -o edited.jpg op run -- uv run scripts/edit.py photo.png "Make it look like a watercolor painting" --size 2K op run -- uv run scripts/compose.py "Create a group photo in an office" person1.jpg person2.jpg -o group.jpg op run -- uv run scripts/compose.py "Combine these into a collage" img1.png img2.png img3.png --aspect 16:9 file image.png If output shows "JPEG image data" - rename to .jpg!
What does the gemini-imagegen skill do?
This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-imagegen --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 majiayu000/claude-skill-registry, a repository with 534 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.
