By jshchnz
Generate and edit images using GPT Image (OpenAI) or Nanobanana (Google Gemini)
npx claudepluginhub jshchnz/claude-code-image --plugin imageSet up API keys and default preferences for image generation
Edit existing images using AI (add elements, style transfer, modifications)
Generate images from text prompts using AI (OpenAI or Gemini)
View recently generated images and their details
List available AI image generation models and their specs
Check API key status and current configuration
Generate and edit images using the latest models all within Claude Code.
/plugin marketplace add jshchnz/claude-code-image
/plugin install image@claude-code-image
Requires Claude Code v1.0.33+
Then configure your API key:
"Set up image generation" or
/image:configure
After installing, simply ask Claude to create images:
"Create an image of a serene Japanese garden at sunset"
"Generate a logo for a tech startup called 'NovaSpark'"
"Make me a cute cartoon fox sticker"
Claude will handle the rest - selecting the right service, generating the image, and saving it for you.
Landscapes & Scenes:
"Create an image of a cyberpunk city at night with neon lights and flying cars"
Logos & Icons:
"Generate a minimalist logo for a coffee shop called 'Bean There'"
Characters & Art:
"Draw a friendly robot mascot in a cartoon style"
Stickers (auto-transparent):
"Make a kawaii cat sticker with sparkles"
Adding Elements:
"Here's my photo [attach image]. Add sunglasses to me"
Style Transfer:
"Take this landscape photo and make it look like a Van Gogh painting"
Modifications:
"Edit this image and change the background to a beach"
For explicit control, you can also use slash commands:
| Command | Description |
|---|---|
/image:generate <prompt> | Generate with specific prompt |
/image:edit | Interactive image editing |
/image:configure | Set up API keys and defaults |
/image:models | View available AI models |
/image:history | See recent generations |
/image:status | Check configuration |
| Model | Speed | Quality | Cost |
|---|---|---|---|
gpt-image-1.5 | Medium | Best | ~$0.02-0.08/image |
gpt-image-1 | Medium | High | ~$0.02-0.08/image |
gpt-image-1-mini | Fast | Good | ~$0.005-0.02/image |
| Model | Speed | Quality | Notes |
|---|---|---|---|
gemini-2.5-flash-image | Fast | Good | Free tier available |
gemini-3-pro-image-preview | Slower | Best | Up to 4K resolution |
Set up your API keys as environment variables:
# OpenAI (for GPT Image)
export OPENAI_API_KEY='your-openai-api-key'
# Google (for Nanobanana)
export GEMINI_API_KEY='your-gemini-api-key'
Get your API keys:
Run /image:configure or say "configure image generation" to set up:
Configuration is saved to ~/.claude-code-image/config.json.
square - 1024x1024portrait - 1024x1536landscape - 1536x1024auto - Let the AI decidelow - Fastestmedium - Balancedhigh - Best detailpng - Best for transparencyjpeg - Smaller file sizewebp - Modern formatThe plugin automatically enables transparent backgrounds when your prompt contains keywords like:
| Path | Purpose |
|---|---|
~/.claude-code-image/config.json | User preferences |
~/.claude-code-image/history.json | Generation history |
~/Pictures/claude-code-image/ | Default output directory |
curl (for API requests)base64 (for encoding/decoding)python3 (for JSON parsing in Gemini scripts)MIT License - see LICENSE for details.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Comprehensive status line with context usage, API rate limits, and cost tracking