Skip to content
Back to skills

Generate Video

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsapi

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add dashscope/dashscope-agent-tools-python --skill generate-video --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Video?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate Video
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dashscope-generate-video/badge)](https://www.skillsdirectory.com/skills/dashscope-generate-video)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.