Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoAlternative API key (low priority).
IMAGE_GEN_MODELYesThe model to use for image generation.
OPENAI_BASE_URLNoAlternative base URL (low priority).
IMAGE_GEN_API_KEYYesYour API key for the image generation provider.
IMAGE_GEN_BASE_URLNoBase URL for the provider API.
IMAGE_GEN_ENV_FILENoPath to a strict env file (KEY=value format).
IMAGE_GEN_PROVIDERNoProvider to use (default 'openai-images').openai-images
IMAGE_GEN_OUTPUT_DIRNoOutput directory for generated images (default '~/Pictures/Image Gen').~/Pictures/Image Gen
IMAGE_GEN_TIMEOUT_MSNoTimeout in milliseconds for API requests.
IMAGE_GEN_RESPONSES_MODELNoModel for Responses protocol (if using openai-responses).
IMAGE_GEN_ALLOW_PRIVATE_URLSNoAllow private URLs for image results (set to 'true' to allow).false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageC

Generate or edit one image using the configured provider, save it locally, and return image content.

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/tunshusama/image-gen-mcp'

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