Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYNoYour AI Studio key. GOOGLE_API_KEY works too, since Google's own tools read that one
GOOGLE_API_KEYNoAlias for GEMINI_API_KEY; Google's tools read this one too
OPENAI_API_KEYNoYour OpenAI key. Reaches GPT Image 2 directly
AI_GATEWAY_API_KEYNoVercel AI Gateway. Reaches everything, and is the only route to Recraft, Seedream, Grok Imagine and Arrow
IMAGE_GEN_OUTPUT_DIRNoWhere images are written. Point it at your project's image folder and the paths come back ready to use
IMAGE_GEN_TIMEOUT_MSNoHow long to wait. Image models are slow; three minutes is not generous180000
IMAGE_GEN_MAX_PER_CALLNoCeiling on one request, whatever the assistant asks for4
IMAGE_GEN_MAX_PER_HOURNoImages per rolling hour. 0 removes the cap, knowing what that means for your bill60
IMAGE_GEN_PREFER_GATEWAYNoRoute through the gateway even when a direct key exists. Turn on to put all the billing in one placefalse
IMAGE_GEN_DEFAULT_PROVIDERNoWhich vendor runs when the assistant names none. Set to 'google' if your OpenAI account can't reach GPT Image 2openai

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
logging
{}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

Generate one or more images from a description and write them to disk, returning their paths. Optionally takes REFERENCE IMAGES (paths on this machine) and extra text context, both of which steer the result: use them to match an existing style, keep a character or product consistent, or edit an image you already have. Defaults to OpenAI GPT Image 2; pass style as gemini/nanobanana, gemini-pro, photoreal (Recraft), seedream, or grok. For a REAL editable SVG set svg: true, which routes to Arrow; the raster models can only imitate one. A billed call per image.

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/fledgeling-co/image-gen-pro-mcp'

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