Generate videos from a text prompt or first-frame image using DashScope/Bailian (Wan video). Use when the user asks to create, generate, or make a video, animation, or text-to-video / image-to-video clip.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Generate Video?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dashscope-generate-video)
---
description: Generate videos from a text prompt or first-frame image using DashScope/Bailian (Wan video). Use when the user asks to create, generate, or make a video, animation, or text-to-video / image-to-video clip.
---
# Generate video (DashScope)
Use the `generate_video` MCP tool from the dashscope server to turn a text
prompt (optionally with a first-frame image) into a video.
## How
1. Call `generate_video` with:
- `prompt`: the user's description (translate to a clear visual prompt;
keep the user's intent).
- `model` (optional): default `wan2.2-t2v-plus`.
- `image_url` (optional): a first-frame image URL for image-to-video.
- `size` / `duration` / `resolution` / `ratio` (optional): only set what
the user asks for; otherwise let the model choose.
2. The tool blocks until the task finishes and returns `video_url`. Present
the URL to the user. **Video rendering is slow** (often minutes) and the
URL is temporary — download it if the user wants to keep the video.
## Long tasks / timeouts
Video renders easily exceed a host tool-call timeout. Prefer fire-and-forget:
- `submit_video_task(prompt, ...)` → returns `task_id` immediately.
- `get_video_task(task_id)` → poll until `status` is `SUCCEEDED` (then read
`video_url`), `FAILED`, or `CANCELED`.
- `cancel_video_task(task_id)` → cancel a task **while it is still PENDING**;
once rendering starts it may no longer be cancelable.
## Errors
- Missing/rejected key: ensure `DASHSCOPE_API_KEY` is set in the MCP server
environment (Claude Code: `/plugin configure dashscope`).
- Content moderation block: ask the user to rephrase the prompt.
- Throttling: wait briefly and retry.
- Timeout on the blocking call: switch to `submit_video_task` + polling.