Skip to main content
Glama
zK0G0w

gpt-image-mcp

by zK0G0w

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYYesOpenAI API key. Required.
IMAGE_GEN_MODELNoImage generation model.gpt-image-1
OPENAI_BASE_URLNoOpenAI API base URL.https://api.openai.com/v1
IMAGE_GEN_OUTPUT_DIRNoDirectory where generated images will be saved../output
IMAGE_GEN_TIMEOUT_MSNoRequest timeout in milliseconds.300000
IMAGE_GEN_RESPONSE_FORMATNoResponse format for image generation: 'b64_json' or 'url'.b64_json

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
check_endpointA

请求当前端点的模型列表,检查响应格式和模型是否在列表中。不会发送生图或编辑请求;即使检查通过,图片能力仍需实际调用验证。

generate_imageA

根据提示词调用 GPT Image 生成一张图片,保存到本机并返回绝对路径和文件 URI。调用会产生 API 费用。

edit_imageA

读取本机图片,按提示词编辑、替换背景,或参考风格和构图生成新图。请明确各参考图的作用和需要保留的内容;可传遮罩引导局部编辑。保存新文件并返回绝对路径,不覆盖原图。调用会产生 API 费用。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources