openrouter-imgen-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openrouter-imgen-mcpGenerate a product photo of a ceramic mug on a wooden table, warm lighting"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openrouter-imgen-mcp
Give your AI assistant the ability to generate and edit images. One install, multiple models, no vendor lock-in.
Screenshots
Before | After |
|
|
Works with Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, and any MCP client.
Related MCP server: OpenRouter Image Generation MCP Server
Why This
One API key, every image model. Gemini, GPT-5, and more through OpenRouter. Switch models with a word, not a code change.
Generate, edit, and batch. Text-to-image, image editing with references, and batch operations (up to 20 parallel tasks).
Style presets. Say "in watercolor style" or "as pixel art" and get consistent results. 8 built-in styles.
Variations. Generate up to 4 takes from one prompt. Pick the best one.
Smart file output. Save to a path or a directory. Files get descriptive names automatically.
Pay for what you use. OpenRouter's per-token and per-image pricing means no subscriptions.
How to Install
Get an OpenRouter API key, then add the server to your client.
Claude Code
# macOS / Linux
claude mcp add openrouter-imgen-mcp -s user -e OPENROUTER_API_KEY=YOURAPIKEY -- npx -y openrouter-imgen-mcp@latest
# Windows
claude mcp add openrouter-imgen-mcp -s user -e OPENROUTER_API_KEY=YOURAPIKEY -- cmd /c npx -y openrouter-imgen-mcp@latestClaude Desktop / Cursor / VS Code / Windsurf
Add to your MCP config JSON:
{
"mcpServers": {
"openrouter-imgen-mcp": {
"command": "npx",
"args": ["-y", "openrouter-imgen-mcp@latest"],
"env": {
"OPENROUTER_API_KEY": "YOURAPIKEY"
}
}
}
}What You Can Do
Simply chat with your assistant:
Generate a product photo of a ceramic mug on a wooden table, warm lightingGenerate 3 variations of a logo concept for a coffee brand, pixel-art styleEdit /path/to/headshot.png: make the background a gradient, keep the subjectBatch generate 5 social media banners: summer sale, back to school, holiday promo,
new arrivals, free shipping. All in illustration style, 16:9, save to ./banners/List image models. What's cheapest for quick drafts?Quality Presets
Skip the model IDs. Just say "fast", "balanced", or "quality":
Preset | Model | When to use |
| Gemini 2.5 Flash | Drafts, iteration, keeping costs low |
| Gemini 3 Pro | Day-to-day use (default) |
| GPT-5 Image | Final deliverables, max fidelity |
Or pass any OpenRouter model ID directly:
Generate a cat using model google/gemini-2.5-flash-imageStyle Presets
Keywords modifies the style:
Style | What you get |
| Photorealistic, DSLR, natural lighting |
| Clean digital art, vibrant colors |
| Soft washes, paper texture |
| Retro 16-bit, limited palette |
| Studio-lit, physically based rendering |
| Cel-shaded, Japanese animation |
| Pencil on paper, monochrome |
| Brushstrokes, impasto, classical |
Tools Reference
Convenient tools:
Tool | What it does |
| Text-to-image with quality/style presets, variations (1-4), aspect ratio, file output |
| Transform images with a prompt + up to 12 reference images (files, URLs, data URIs) |
| Run up to 20 generate/edit tasks in parallel with concurrency control |
| Browse available models with pricing |
| Check your OpenRouter credit balance |
Supported output: 1:1, 2:3, 3:2, 16:9, 9:16, 4:3, 3:4 aspect ratios. 0.5K, 1K, 2K, 4K sizes. PNG, JPEG, WebP, GIF inputs.
Headless Configuration
Flag | Env Var | Default |
|
| (required) |
|
|
|
|
|
|
|
|
|
|
|
|
Security
API keys never appear in logs or error messages. File paths block directory traversal. Image URLs are validated against SSRF patterns. Batch operations are memory-capped at 200MB. All inputs are schema-validated.
For Developers
To build for devs:
pnpm install && pnpm build && pnpm test # 57 testsLicense
MIT
Made with <3 at Bitcoin.com
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Create images and videos from prompts, with options for image mixing, reference images, and start/…
Generate images with your own ChatGPT subscription (Plus, Pro or Team), without spending API credits
Generate and edit images and create short videos inside Claude. Prepaid credits, no subscription.
Related MCP Servers
- -licenseAqualityNot gradedmaintenanceEnables generating and editing images using OpenRouter's API with Gemini 2.5 Flash Image model. Supports custom aspect ratios, iterative editing, and reference images for style transfer.657
- AlicenseBqualityDmaintenanceEnables image generation via OpenRouter API, supporting models like Gemini 2.5 Flash Image Preview with options to save files locally.21Do What The F*ck You Want To Public
- AlicenseNot gradedqualityDmaintenanceEnables chat and image analysis through OpenRouter.ai models. Supports text chat, image generation, and analysis with multiple images and custom questions.678Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate and edit images using multiple models through OpenRouter, with features like style presets, batch operations, and variations.221MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jtxmp/openrouter-imgen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server

