Skip to main content
Glama
jtxmp
by jtxmp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENROUTER_API_KEYYesYour OpenRouter API key (required). Can also be passed via --api-key flag.
OPENROUTER_IMG_CACHE_TTLNoCache TTL in milliseconds (default 5 minutes). Can also be set via --cache-ttl flag.300000
OPENROUTER_IMG_LOG_LEVELNoLog level (e.g., warn, info, debug). Can also be set via --log-level flag.warn
OPENROUTER_IMG_DEFAULT_MODELNoDefault model for image generation. Can also be set via --default-model flag.google/gemini-3-pro-image-preview
OPENROUTER_IMG_BATCH_CONCURRENCYNoMaximum number of concurrent batch operations. Can also be set via --batch-concurrency flag.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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a distinct purpose: listing models, generating, editing, checking balance, and batching. The only mild overlap is batch_images, which subsumes both generate_image and edit_image, so an agent might occasionally debate between batch and single-call tools.

Naming Consistency5/5

All five tools follow a clean verb_noun snake_case pattern (list_image_models, generate_image, edit_image, check_balance, batch_images). The convention is applied uniformly with no style deviations.

Tool Count5/5

Five tools is well-scoped for an image generation/editing server, covering discovery, generation, editing, batching, and account state without redundancy. Each tool clearly earns its place.

Completeness4/5

The surface covers the core lifecycle: model discovery, single and batch generation, editing, and balance checking. Minor gaps like image upscaling, variation, or history/retrieval operations are absent but not essential to the stated purpose.

Maintenance

ActivityInactive
ResponsivenessNo issues