npx claudepluginhub notque/gemini-imagenAdd AI image generation to Claude Code using Google Gemini's image generation APIs. Generate images from text prompts with watermark removal and background transparency options.
A Claude Code plugin that adds AI image generation using Google Gemini's image generation APIs.
Install this plugin to give Claude Code the ability to generate images. Just ask Claude to create an image and it will use the Gemini API to generate it.
Example:
> Generate an image of a mountain landscape at sunset
Claude will run the generation script and save the image for you.
# Add this repository as a plugin marketplace
/plugin marketplace add notque/gemini-imagen
# Install the plugin
/plugin install gemini-imagen@notque-gemini-imagen
git clone https://github.com/notque/gemini-imagen.git ~/.claude/plugins/gemini-imagen
macOS / Linux:
echo 'export GEMINI_API_KEY="your_key_here"' >> ~/.zshrc && source ~/.zshrc
Windows PowerShell:
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "your_key_here", "User")
pip install google-genai Pillow
Once installed, just ask Claude to generate images:
Generate an image of a cute cartoon cat
Create a pixel art sprite of a knight
Make a product photo of a smartphone
Or use the commands directly:
| Command | Description |
|---|---|
/imagen | Generate an image |
/imagen:setup | Setup guide for API key |
/imagen:help | Quick reference |
python3 generate_image.py --prompt "..." --output out.png --remove-watermark
Removes bright pixels from corners that may contain watermarks.
python3 generate_image.py --prompt "Character on gray background" --output char.png --transparent-bg
Converts solid backgrounds to transparent - great for game sprites.
| Model | Speed | Best For |
|---|---|---|
gemini-2.5-flash-image | Fast (2-5s) | Iterations, drafts |
gemini-3-pro-image-preview | Slower | Quality, text rendering |
gemini-imagen/
├── .claude-plugin/
│ └── plugin.json
├── commands/
│ ├── setup.md
│ └── help.md
├── skills/
│ └── gemini-imagen/
│ ├── SKILL.md
│ └── scripts/
│ └── generate_image.py
├── assets/
│ └── logo.png
├── examples/
│ └── .env.example
├── README.md
└── LICENSE
google-genai packagePillow package (for post-processing)MIT
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.