Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Pixel Minion: AI Image & SVG Generator ToolkitNew to Visual Studio Code? Get it now.
Pixel Minion: AI Image & SVG Generator Toolkit

Pixel Minion: AI Image & SVG Generator Toolkit

Preview

Okey Landers

|
4 installs
| (0) | Free
AI-powered image and SVG generation inside VSCode. Generate images and vector graphics directly in your editor using Gemini ( Nano Banana ), GPT-5, Claude, and FLUX models via OpenRouter.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Pixel Minion

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.

VS Marketplace Version VS Marketplace Installs License Buy Me a Coffee


Image Generation

Image Generation

---

📸 Screenshot Gallery (click to expand)

Image Generation

SVG Colorize


✨ Features at a Glance

Pixel Minion provides two powerful generation tabs in a dedicated sidebar panel:

  • 🖼️ Image Generation - Text-to-image and image-to-image generation with seed control and prompt enhance.
  • ✏️ SVG Generation - Create vector graphics with multi-size preview and code extraction
  • 🎨 AI SVG Edits - Colorize, simplify, animate, or remove elements from existing SVGs
  • 💬 Multi-Turn Conversations - Refine your images and SVGs through iterative prompts
  • 📊 Token Usage Tracking - Real-time token and cost display per turn
  • 🔗 Reference Image Support - Use existing images and SVGs as context for generation
  • ⚙️ Settings - Model selection, API key management, and debugging

Tip: For best experience, widen your sidebar to give Pixel Minion room to display all its features comfortably.


🚀 Getting Started

Installation

  1. Install from the VS Code Marketplace
  2. Open the Pixel Minion panel from the activity bar (icon in sidebar)
  3. Configure your OpenRouter API key in Settings (gear icon)
  4. Start generating!

Quick Start

  1. Choose a tab - Image or SVG generation
  2. Enter a prompt - Describe what you want to create
  3. Select options - Model, aspect ratio, seed (optional)
  4. Generate - Click the Generate button
  5. 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

  1. Get an API Key:

    • Visit openrouter.ai
    • Create a pay-as-you-go account
    • Generate an API key
  2. 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 Controls


🛠️ Tools Overview

🖼️ Image Generation

Generate images from text prompts or refine existing images with AI.

Image Generation Controls

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

Multi-turn Refinement

Refine your images through multi-turn conversations

Multi-turn Refinement

Copy Randomly Generated Seed to Clipboard | Click To Save Image To Open Project


✏️ SVG Generation

Generate vector graphics as code using powerful text models.

SVG Generation

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! ✨

SVG Multi-Size Preview

Preview your SVG at 32px, 64px, and 128px to verify scalability

SVG Multi-Size Preview

Easily Review/Copy Code From Generated SVG

SVG Multi-Size Preview

Animate SVGs

SVG Colorize Before SVG Colorize After

Edit / Colorize SVGs


⚙️ Settings

Click the gear icon in the Pixel Minion header for settings:

Settings Panel

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.

SVG Multi-Size Preview

Manually Override Model IDs from Dropdowns

SVG Multi-Size Preview

View Debug Window by Clicking the Bug

SVG Multi-Size Preview

Clear Output Logging

SVG Multi-Size Preview

Keep Track of Tokens & Cost

SVG Multi-Size Preview

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

Sidebar Width

  • 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!

Buy Me a Coffee


🙏 Acknowledgments

Built with:

  • OpenRouter - AI model routing
  • VS Code Extension API - Platform
  • React - UI framework

Development assisted by:

  • Claude Code - AI pair programming
  • Cline - AI coding assistant for VS Code

🎨 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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft