Skip to main content
Glama

generate_video

Submit video generation jobs using a text prompt or reference images; automatically route to the appropriate AI service for asynchronous handling.

Instructions

提交视频生成任务(不等待)。grok-imagine-video* 走 /videos/generations;即梦 as-sd2.0-fast / video-ds-2.0* 走 /videos。自动按模型名路由。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageNo可选,图生视频:公网 URL、Data URL、Base64 或本地图片路径。
modelNo可选,默认取 AI_MEDIA_VIDEO_MODEL。
imagesNo可选,多张参考图生视频(最多 9 张):即梦 reference_image_urls / grok image_url 数组。无 image 时生效。
promptNo视频内容与运动描述。文生视频必填;图生视频可选。
secondsNo可选,即梦视频时长,字符串,例如 "15"。
durationNo可选,grok 视频时长(秒)。
resolutionNo可选,如 720p、1k、2k。
aspect_ratioNo可选,如 16:9、9:16、1:1。
Behavior3/5

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

It discloses two useful behavioral traits: the task is submitted without waiting, and model names map to different endpoints. Since no annotations are present, this behavior burden is only partially carried; it does not describe what the function returns, how to track the task, or side effects beyond creation.

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 text is one efficient block with no fluff. The most important distinction (no wait) is front-loaded, and routing details are placed exactly where they support the 'model' parameter. Every sentence earns its place.

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?

The description covers the key capabilty and routing behavior, but with no annotations and no output schema, it leaves gaps: return representation, subsequent status-check flow, and model restrictions/limitations. The agent can infer most call mechanics from a 100% schema, but the async feedback loop is not fully explained; it relies on the sibling tools to fill the gap.

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?

Schema descri completeness is 100%, so baseline is 3. The description adds meaning by explaining that the 'model' parameter determines routing, and that model families are routed to different endpoints. It also makes the image/prompt/video mode distinctions easier to reason about.

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?

The description uses a specific verb and resource combination ('提交视频生成任务' submit video generation task) and explicitly states that it is non-blocking ('不等待'). It also states the automatic route by model name, distinguishing it from both image generation and waiting variants.

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

Usage Guidelines4/5

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

The description clearly establishes that this is an asynchronous submission operation, which implies that callers needing a completed video should use the waiting sibling. It does not explicitly name 'generate_video_and_wait' or 'get_video_status' as alternatives, but the routeing logic gives practical guidance for model selection.

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/wojiaopanhaoran/ai-media-mcp'

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