Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAGE2_API_KEYYesRequired. API key for the relay.
IMAGE2_BASE_URLYesRequired. Relay root URL, without /images/...
IMAGE2_ENV_FILENoPath to an extra `.env` (useful for multi-environment setups)
IMAGE2_EDIT_FIELDNomultipart field name for `edit_image`image
IMAGE2_OUTPUT_DIRNoOutput directory; relative paths resolve against server root./output
IMAGE2_TIMEOUT_MSNoPer-request timeout (ms); max 2147483647300000
IMAGE2_DEFAULT_SIZENoDefault size1024x1024
IMAGE2_DEFAULT_MODELNoModel used when `model` is omitted — set this to a model your relay servesgpt-image-2
IMAGE2_MODEL_ALIASESNoYour own shorthands, `alias=model-id,alias2=id2`. Replaces the built-in aliases
IMAGE2_DEFAULT_QUALITYNoDefault qualityhigh

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
generate_imageA

根据文字描述生成图片并保存到本地磁盘,返回保存后的绝对路径。适合海报、插画、产品图、图标、场景概念图等。单次耗时约 40-180 秒。

edit_imageA

基于一张或多张已有图片生成新图。用于风格迁移、局部修改、换背景、扩图、多图融合(把多张参考图合成一张新图)等。输入为本地文件路径。

check_image_serviceA

探测中转站是否可达、API Key 是否有效,并列出服务端声明的模型清单。排障时先运行它。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 3 tools

Disambiguation5/5

Each tool maps to a distinct stage of the workflow: health/diagnostic check, text-to-image generation, and image-to-image editing. There is no overlap in inputs or purpose, and the descriptions make the boundaries explicit (local path output vs. local path input).

Naming Consistency5/5

All three names use consistent snake_case with a verb_noun shape (check_image_service, generate_image, edit_image). The pattern is predictable and readable, even if check_image_service is slightly longer.

Tool Count4/5

Three tools is on the thin side but each earns its place: one diagnostic plus the two core image operations. A single-purpose image generation server does not need more surface area, though a batch or list operation could justify one more.

Completeness4/5

The surface covers the main lifecycle: verify connectivity/credentials, generate from text, and edit from existing files including multi-image fusion. Minor gaps exist around batch generation, listing/cleaning previously generated outputs, or discovering model capabilities beyond what check_image_service reports.