Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoListen port (default 8000).
MEDIA_DIRNoAsset storage dir (default /data/media in Docker).
MCP_BEARERYesStatic bearer required on /mcp (≥24 chars; openssl rand -base64 32).
PUBLIC_URLYesPublic base URL used to build the asset links returned by tools.
LITELLM_API_KEYYesKey for the gateway — prefer a virtual key scoped to the media models with a budget.
LITELLM_BASE_URLYesLiteLLM / OpenAI-compatible gateway base URL.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

Generate one or more images from a text prompt using Google's Nano Banana models (Gemini image generation). Returns public URLs to the generated PNGs — pass those URLs onward instead of re-downloading the bytes. Synchronous: the call returns when the images are ready (typically a few seconds). Models: 'nano-banana-pro' (Gemini 3 Pro Image — highest quality, default) and 'nano-banana-2' (Gemini 3.1 Flash Image — faster and cheaper, good for drafts and iterations).

generate_videoA

Start an ASYNCHRONOUS video generation job with Google's Veo models. Returns a video_id immediately — poll it with the get_video tool every ~10s until status is 'completed', which yields the final MP4 URL. Optionally pass image_url to animate a still image (image-to-video). Models and cost: 'veo-3.1' (flagship quality with native audio, $0.40 per second of video, default) and 'veo-3.1-lite' ($0.05 per second — use for drafts and iterations).

get_videoA

Check a video generation job started by generate_video. While the job is running it returns the current status; once completed it downloads the MP4, stores it, and returns its public URL. Safe to call repeatedly — completed videos are cached.

list_generationsA

Browse recently generated media (images and videos) with their public URLs, models, and prompts — newest first.

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/AriOliv/media-gen-mcp'

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