Skip to main content
Glama

wan_generate_video_from_image

Generate AI video from a reference image. Specify motion and content, choose model, resolution, and duration to create customized video with optional audio.

Instructions

Generate AI video from a reference image using Wan image-to-video models.

This supports three models:
- wan2.6-i2v: Standard image-to-video generation
- wan2.6-r2v: Reference video-to-video with character/timbre extraction
- wan2.6-i2v-flash: Fast image-to-video generation

Returns:
    Task ID and generated video information including URLs and state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoThe size of the generated video (e.g., '1280x720').
audioNoWhether the generated video should include audio. Default is true.
modelNoModel to use. Options: 'wan2.6-i2v' (standard image-to-video), 'wan2.6-r2v' (reference video-to-video), 'wan2.6-i2v-flash' (fast image-to-video). Default: 'wan2.6-i2v'.wan2.6-i2v
promptYesDescription of the video motion and content. Describe what should happen in the video.
timeoutNoTimeout in seconds. Default is 1800.
durationNoVideo duration in seconds. Options: 5, 10, or 15.
audio_urlNoURL of reference audio to use in the video.
image_urlYesURL of the reference image for video generation. The video will be generated based on this image.
shot_typeNoShot type: 'single' for continuous shot, 'multi' for multi-cut editing.
resolutionNoVideo resolution. Options: '480P', '720P' (default), '1080P'.720P
callback_urlNoWebhook callback URL for asynchronous notifications.
prompt_extendNoEnable LLM-based prompt rewriting. Default is true.
negative_promptNoContent to exclude from the video. Maximum 500 characters.
reference_video_urlsNoJSON array of reference video URLs for character/timbre extraction. Used with the wan2.6-r2v model. Pass each URL as a separate array item; never join URLs with commas and never JSON-stringify the array. Legacy comma-separated strings are still accepted for backward compatibility.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It does mention that the tool returns a Task ID and video information including URLs and state, and it hints at async behavior via the 'callback_url' parameter. However, it does not explain polling workflows, typical generation times, timeout implications, or failure modes—gaps for a long-running generation tool.

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

Conciseness4/5

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

The description is front-loaded with a clear first sentence, followed by a structured list of models and a return value line. It is appropriately sized for the tool's complexity, though the model list slightly duplicates the schema's model enum, preventing a perfect score.

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

Completeness4/5

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

The description covers the return value format and model choices, and an output schema exists to handle structured return data. It falls short on explicitly guiding the user through the asynchronous nature and when to use this versus sibling tools, but it still provides enough context for a generation task with a rich schema.

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

Parameters3/5

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

The input schema covers 100% of the 14 parameters with descriptive text, so the description does not need to repeat parameter semantics. It adds value by explaining model options, but this does not go beyond what the schema already provides for individual parameters.

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 first sentence uses a specific verb ('Generate') and resource ('AI video from a reference image'), immediately clarifying the tool's core function. It also explicitly names 'Wan image-to-video models' and lists three distinct model variants, which differentiates it from the sibling 'wan_generate_video' (likely text-to-video).

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 provides clear context by listing the three model options with their intended use cases (standard, reference-video, fast). However, it does not explicitly state when to choose this tool over 'wan_generate_video' or other siblings, leaving that exclusion implicit.

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/AceDataCloud/WanMCP'

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