Skip to main content
Glama

generate_video

Generate a video from a text description or an input image. Supports multiple models including MiniMax, HunyuanVideo, and Mochi 1.

Instructions

Generate a video from a text prompt (text-to-video) or from an input image (image-to-video) using Fal.ai video generation models. Supports models like MiniMax (Hailuo AI), HunyuanVideo, Mochi 1, and more. Returns the URL of the generated video. Note: video generation can take 1–5 minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe text prompt describing the video to generate.
model_idNoThe Fal.ai model ID to use for generation. Defaults to 'fal-ai/minimax-video/image-to-video' for image-to-video, or 'fal-ai/minimax-video/text-to-video' for text-to-video. Other options: 'fal-ai/hunyuan-video', 'fal-ai/mochi-v1'.
image_urlNoURL of an input image to animate (for image-to-video models). When provided, defaults to using 'fal-ai/minimax-video/image-to-video'.
durationNoDesired video duration in seconds (model-dependent, not all models support this).
Behavior3/5

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

Discloses generation time (1-5 minutes) and that it returns a URL. However, no details on error handling, rate limits, or cost. Since annotations are absent, the description partially fills the gap but could be richer.

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?

Extremely concise with three sentences, no redundancy. Each sentence serves a purpose: defining capability, listing models, and noting runtime.

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

Completeness3/5

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

Covers basic usage and output (URL) but lacks details on asynchronous behavior (e.g., polling vs. blocking), error states, or limitations beyond time. Adequate but not fully comprehensive.

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

Parameters4/5

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

Adds context beyond schema descriptions, such as default model selection based on image_url presence and examples of supported models. The duration parameter is noted as model-dependent, providing valuable usage insight.

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?

Clearly states the tool generates videos from text or image input using specific models. It distinguishes itself from siblings by focusing on video generation vs. image generation or general model running.

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?

Implied usage based on input type (text vs. image) but no explicit guidance on when to use this tool over generate_image or run_model. Missing when-not-to-use or alternative recommendations.

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/MohsenMousaviEyeline/MCP-Fal'

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