Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAGE_API_KEYYesYour API Key (required)
IMAGE_BASE_URLNoCustom API URL for custom provider
IMAGE_MCP_HOSTNoSSE listen host0.0.0.0
IMAGE_MCP_PORTNoSSE listen port8000
IMAGE_PROVIDERNoSelect provider: siliconflow, openai, or customsiliconflow
DEFAULT_IMAGE_SIZENoDefault image size1024x1024
DEFAULT_IMAGE_MODELNoDefault model to useblack-forest-labs/FLUX.1-dev
IMAGE_MCP_TRANSPORTNoTransport mode: stdio or ssestdio

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

根据文字描述生成一张或多张图片。

向图片生成模型发送文字描述(prompt),模型会生成对应的图片并返回图片 URL。 支持多个提供商,默认使用硅基流动(免费额度)。

model 参数不传时使用默认模型。不同提供商默认模型不同:

  • siliconflow: black-forest-labs/FLUX.1-dev(高质量开源模型)

  • openai: dall-e-3

  • custom: 由部署者自定

你也可以传入自己熟悉的任意模型名称(只要在你的提供商平台可用)。

size 参数控制图片尺寸:

  • siliconflow 推荐: 1024x1024(默认)

  • openai DALL-E 3: 1024x1024 / 1792x1024 / 1024x1792

适用于:

  • 根据描述生成插图、海报、概念图

  • 为文章、演示生成配图

  • 创意设计、头脑风暴视觉化

  • 生成社交媒体图片

注意:生成的图片 URL 通常有有效期(数小时到数天),请及时保存。

list_image_modelsB

列出当前提供商推荐使用的图片生成模型列表及使用说明。

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/Doctor-Pan-code/image-gen-mcp'

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