Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAGE_RELAY_API_KEYYesAPI key for the relay
IMAGE_RELAY_API_MODENoAPI mode: 'responses' or 'images'responses
IMAGE_RELAY_BASE_URLYesBase URL of the relay server, e.g. https://relay.example.com/v1
IMAGE_RELAY_OUTPUT_DIRNoDirectory to save generated images./outputs
IMAGE_RELAY_TEXT_MODELNoText model used by the relay
IMAGE_RELAY_IMAGE_MODELNoImage model used by the relay
IMAGE_RELAY_DEFAULT_SIZENoDefault image sizeauto
IMAGE_RELAY_SHOW_PROGRESSNoWhether to show progress in CLItrue
IMAGE_RELAY_CLI_OPEN_IMAGENoWhether to open image after generation in CLItrue
IMAGE_RELAY_REQUEST_POLICYNoRequest policy: 'openai' or 'compat'openai
IMAGE_RELAY_DEFAULT_QUALITYNoDefault image qualityhigh
IMAGE_RELAY_DEFAULT_BACKGROUNDNoDefault backgroundauto
IMAGE_RELAY_SHOW_DEBUG_SUMMARYNoWhether to show debug summarytrue
IMAGE_RELAY_DEFAULT_OUTPUT_FORMATNoDefault output format (e.g. png)png
IMAGE_RELAY_DEFAULT_PARTIAL_IMAGESNoDefault partial images setting0
IMAGE_RELAY_DEFAULT_NEGATIVE_PROMPTNoDefault negative prompt
IMAGE_RELAY_DEFAULT_PROMPT_TEMPLATENoDefault prompt template with {prompt} placeholder{prompt}。请根据主题自动判断最合适的画幅与构图:风景、城市空间、室内环境、多人关系或需要展示背景层次时优先横向;单人肖像、单主体海报、垂直建筑或手机壁纸场景优先竖向;构图不确定或主体与环境同等重要时使用方形。优化主体比例、景深、光线、材质、空间层次和细节密度;保持画面清晰、主体明确、边缘干净,避免低清晰度、过度柔焦、文字水印和无关元素。
IMAGE_RELAY_DEFAULT_OUTPUT_COMPRESSIONNoDefault output compression level (0-100)100

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/qa594741/image-relay-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server