openrouter-image-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENROUTER_API_KEY | Yes | OpenRouter API key. Required to authenticate with OpenRouter. | |
| OPENROUTER_IMG_CACHE_TTL | No | Cache TTL in milliseconds. Default: 300000 (5 minutes). | |
| OPENROUTER_IMG_LOG_LEVEL | No | Log level. Default: warn. | |
| OPENROUTER_IMG_DEFAULT_MODEL | No | Default image model to use. Default: google/gemini-3-pro-image-preview. | |
| OPENROUTER_IMG_BATCH_CONCURRENCY | No | Batch operation concurrency. Default: 3. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_image_modelsB | List available image generation models from OpenRouter with pricing and capabilities. |
| generate_imageA | Generate an image from a text prompt via OpenRouter. Supports quality presets (fast/balanced/quality) or explicit model IDs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal prompt. |
| edit_imageB | Edit or transform existing images using a text prompt and reference images. Supports local file paths, URLs, and data URIs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal prompt. |
| batch_imagesB | Generate or edit multiple images in a single call with concurrency control. Each task can be a generation (prompt only) or edit (prompt + reference images). |
| check_balanceA | Check your OpenRouter account balance — shows total credits, usage, and remaining balance. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
generate_image vs edit_image are clearly distinct (text-only vs reference-image inputs), and list_image_models/check_balance are unambiguous utilities. batch_images partially overlaps with both generate and edit since it wraps them, but its multi-task concurrency framing makes the intended use reasonably clear.
All five tools use snake_case verb_noun form: list_image_models, edit_image, generate_image, batch_images, check_balance. No camelCase or vague standalone verbs, so the pattern is fully predictable.
Five tools is a tight, well-scoped surface for an image generation/editing server: discovery, two core operations, a batch wrapper, and account balance. Nothing feels padded or missing at the count level.
The core lifecycle (list models, generate, edit, batch, check credits) is covered with no dead ends for typical workflows. Minor gaps exist around post-processing/inspection such as saving results to disk explicitly, upscaling, or retrieving previously generated images.