Pixel Minion
AI-powered image and SVG generation inside VS Code
Generate images and svgs ( vector graphics ) directly in your editor using cutting-edge AI models like Flux, Nano Banana, Chat GPT, and more via OpenRouter.
---
📸 Screenshot Gallery (click to expand)
✨ Features at a Glance
Pixel Minion provides two powerful generation tabs in a dedicated sidebar panel:
Tip: For best experience, widen your sidebar to give Pixel Minion room to display all its features comfortably.
🚀 Getting Started
Installation
- Install from the VS Code Marketplace
- Open the Pixel Minion panel from the activity bar (icon in sidebar)
- Configure your OpenRouter API key in Settings (gear icon)
- Start generating!
Quick Start
- Choose a tab - Image or SVG generation
- Enter a prompt - Describe what you want to create
- Select options - Model, aspect ratio, seed (optional)
- Generate - Click the Generate button
- Refine - Use the chat input to iterate on results
Accessing Settings:
Click the gear icon in the Pixel Minion panel header to open settings.
🔑 OpenRouter API Key
Required: All features require an OpenRouter API key.
Setting Up OpenRouter
Get an API Key:
- Visit openrouter.ai
- Create a pay-as-you-go account
- Generate an API key
Add Your Key:
- Click the gear icon in Pixel Minion's panel header
- Paste your key in the "OpenRouter API Key" field
- Your key is securely stored in your OS keychain
- Changes save automatically
🖼️ Image Generation
Generate images from text prompts or refine existing images with AI.
Key Features:
- Text-to-Image - Describe what you want, get an image
- Image-to-Image - Upload reference images for context
- SVG Context - Attach SVG files in Image-to-Image
- Multi-Turn Conversations - Refine results through iterative prompts
- Aspect Ratio Control - Choose from 1:1, 16:9, 9:16, 4:3, 3:4
- Seed Control - Set a seed for reproducible results
- Enhance Prompt - AI-powered prompt enhancement button
- Token Usage - See tokens and cost per generation
Available Models:
| Model |
Description |
| Nano Banana 10/25 |
Recommended - Gemini 2.5 Flash Image |
| Nano Banana 8/25 |
Gemini 2.5 Flash Image Preview |
| Nano Banana Pro |
Gemini 3 Pro Image Preview |
| GPT-5 Image Mini |
OpenAI's efficient image model |
| GPT-5 Image |
OpenAI's premium image model |
| FLUX.2 Pro/Flex |
Black Forest Labs models |
Best Practices:
- Start with a clear, descriptive prompt
- Use reference images for style guidance
- Iterate with the chat input for refinements
- Try different seeds for variety
Refine your images through multi-turn conversations
Copy Randomly Generated Seed to Clipboard | Click To Save Image To Open Project
✏️ SVG Generation
Generate vector graphics as code using powerful text models.
Key Features:
- Text-to-SVG - Describe the vector graphic you want
- SVG-to-SVG - Make AI Edits to Existing SVGs: Colorize, Simplify, Animate, Remove Elements, etc.
- Reference Image - Upload an image for the AI to vectorize or reference. ( this is not perfect - ha )
- Multi-Size Preview - See your SVG at 32px, 64px, and 128px
- Code View - View and copy the raw SVG code
- Multi-Turn Conversations - Refine your SVG through iteration
- Token Usage - See tokens and cost per generation
- Easy Debug View - Click "Bug" in top right corner to launch output and view errors or console messages.
Available Models:
| Model |
Description |
| GPT-5.1 Codex |
Default - OpenAI's code-optimized model / Recommended |
| Gemini Pro 3.0 |
Google's latest text model / Runner up |
| Claude Opus 4.5 |
Anthropic's frontier model / Ok |
Best Practices:
- Be specific about colors, shapes, and style
- Do not attach large SVGs; SVGs with embedded images don't work.
- Reference standard SVG elements if you know them
- Use the preview sizes to check scalability
- Copy the code for use in your projects
[!WARNING]
⚠️ Not all SVGs are created equal!
Some SVGs are "fake" — they wrap bitmaps or embedded images that text models will attempt to extract and interpret. Results vary on these. Multi-turn conversations help refine the output.
Fun fact: I created, animated, and colored the Pixel Minion icon entirely in this tool! ✨
Preview your SVG at 32px, 64px, and 128px to verify scalability
Easily Review/Copy Code From Generated SVG
Animate SVGs
Edit / Colorize SVGs
⚙️ Settings
Click the gear icon in the Pixel Minion header for settings:
General Settings
- OpenRouter API Key - Securely stored in OS keychain
Model Selection
- Image Model - Model for image generation (recommended: Nano Banana 10/25)
- SVG Model - Model for SVG generation (recommended: GPT-5.1 Codex)
All settings save automatically and sync with your VS Code preferences.
Manually Override Model IDs from Dropdowns
View Debug Window by Clicking the Bug
Clear Output Logging
Keep Track of Tokens & Cost
Reset Token Usage In Settings
🎯 Use Cases
For Game Developers
- Generate sprites
- Create icons at multiple sizes
- Prototype visual concepts quickly
For Web Developers
- Generate SVG icons and illustrations
- Create placeholder images
- Prototype UI graphics
For Designers
- Quickly iterate on visual concepts
- Generate reference images
- Create scalable vector graphics
For Content Creators
- Generate images for articles and posts
- Create custom illustrations
- Prototype visual ideas
📖 Technical Details
Architecture
Built with Clean Architecture principles:
- Separation of concerns across layers
- Message-based communication
- Extensible provider system
Privacy & Security
- Secure API Key Storage - Keys stored in OS keychain (Keychain Access, Credential Manager, libsecret) via VS Code SecretStorage
- No Logging - Extension communicates directly with OpenRouter and does not log to any other parties.
- No Training - Configure OpenRouter models to opt-out of training data
Requirements
- VS Code 1.93.0 or higher
- OpenRouter API account
💡 Tips & Best Practices
- Widen your sidebar - Pixel Minion has rich UI elements; give it room to breathe
- Drag the sidebar edge to ~400-600px for optimal layout
Prompting Tips
- Be descriptive and specific
- Mention style, colors, composition
- Use reference images for better results
- Iterate with refinement prompts
Cost Management
- Use the token display to track costs
- Choose efficient models for prototyping
- Use premium models for final outputs
🤝 Contributing
We welcome contributions! See the codebase for:
- Clean Architecture with TypeScript
- React-based webview UI
- Jest testing framework
- ESLint for code quality
📄 License
AGPL-3.0 with Commons Clause - Source-available, no resale, no closed-source derivatives.
This means:
- Free to use for personal and open-source projects
- Full source code available
- Modify and share under the same terms
- Cannot resell or create proprietary derivatives
See LICENSE for complete terms.
☕ Support Development
If Pixel Minion helps your workflow, consider buying me a coffee!

🙏 Acknowledgments
Built with:
Development assisted by:
🎨 Part of the Minion Suite
Pixel Minion is part of the Minion Suite of VS Code extensions:
| Extension |
Description |
| Prose Minion |
AI-powered writing assistant for VS Code - grammar, style, and prose enhancement |
| Pixel Minion |
AI-powered image and SVG generation (you are here!) |
More minions coming soon...
Happy Creating!
Install from Marketplace •
Report Issue •
Support Development