Skip to main content
Glama

generate_video

Generate a playable MP4 video from a text prompt. Converts raw frames and optional soundtrack into an H.264 file with AAC audio for playback anywhere.

Instructions

Generate a short video from a text prompt; returns a local MP4 path.

mlx-serve answers with raw frames (+ optional soundtrack); this tool encodes them into an H.264 MP4 (AAC audio when present) locally via ffmpeg, so the returned file is playable anywhere. Generation is slow — minutes per clip depending on frame count and resolution.

Args: prompt: Scene description for the video. model: Video model id. Defaults to MLX_SERVE_VIDEO_MODEL. num_frames: Frame count. LTX backends use an 8N+1 ladder (default 9; e.g. 9/25/33/49/57/81...); MiniMax-H3 uses 17k+5 (default 56). width: Pixel width (defaults: LTX 384, H3 256). Two-stage pipelines need both dimensions divisible by 64. height: Pixel height (defaults: LTX/H3 256). steps: Sampling steps (backend-specific defaults). turbo: Use the distilled 4-step turbo path where the model pack provides it. seed: Optional seed. cfg_scale: Guidance scale. first_frame_image_path: Optional local image to condition the first frame. last_frame_image_path: Optional local image to condition the final frame. audio_path: Optional local WAV to mix as soundtrack (must match frame duration).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
modelNo
stepsNo
turboNo
widthNo
heightNo
promptYes
cfg_scaleNo
audio_pathNo
num_framesNo
last_frame_image_pathNo
first_frame_image_pathNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full transparency burden and does so well. It reveals the ffmpeg/H.264 encoding step, local MP4 output, optional AAC audio, slowness, backend-specific frame ladders, default resolutions, and the 64-divisibility constraint for two-stage pipelines. This is substantial behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and output, then briefly explains the pipeline and performance, and ends with a well-organized Args list. Despite covering many details, every sentence adds information and the structure makes it scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter video generation tool with no annotations and no output schema, this description is remarkably complete. It covers output format, generation behavior, performance expectations, parameter rules, defaults, and optional inputs. An agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the Args section compensates fully for all 12 parameters. It gives defaults, backend-specific rules (LTX 8N+1, MiniMax-H3 17k+5), divisibility requirements, optional first/last frame conditioning, and audio duration matching. This is far beyond what the bare schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: "Generate a short video from a text prompt; returns a local MP4 path." This clearly distinguishes it from sibling generation tools like generate_image or generate_music while stating the output format.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The intended use is obvious from the purpose statement and the media-specific wording, but the description never explicitly contrasts this tool with alternatives or states when not to use it. It also warns that generation is slow, which faintly implies a speed tradeoff, but no exclusions or alternative routing are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/Congenital/mlx-serve-mcp'

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