Generate videos using Alibaba Cloud DashScope Wan (通义万相) text-to-video (t2v) API (e.g., wan2.6-t2v). Use when the user asks to create a short video from a te...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install qwen-video或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install qwen-video⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/qwen-video/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: qwen-video description: Generate videos using Alibaba Cloud DashScope Wan (通义万相) text-to-video (t2v) API (e.g., wan2.6-t2v). Use when the user asks to create a short video from a text prompt via 百炼/通义万相/wan 文生视频, and wants the agent to submit an async task, poll status, and download the mp4 locally (e.g., to Windows Desktop from WSL2). ---
This skill provides simple CLI scripts to: 1) submit an async Wan t2v job 2) poll task status until SUCCEEDED/FAILED 3) download the resulting mp4
export DASHSCOPE_API_KEY="sk-..."
Generate a video and download to Windows Desktop (WSL2):
bash {baseDir}/scripts/generate.sh \
--prompt "4秒赛博朋克雨夜城市镜头,霓虹反射,电影感镜头运动,高清" \
--duration 4 \
--size 1280*720 \
--out "/mnt/c/Users/<USERNAME>/Desktop/wan_video.mp4"
bash {baseDir}/scripts/submit.sh --prompt "..." --duration 4 --size 1280*720
bash {baseDir}/scripts/poll.sh --task-id "<task_id>"
仅 wan2.6 系列模型支持此功能。通过设置 prompt_extend: true 和 shot_type: "multi" 启用。
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'X-DashScope-Async: enable' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.6-t2v",
"input": {
"prompt": "史诗级战斗场景..."
},
"parameters": {
"size": "1280*720",
"prompt_extend": true,
"duration": 10,
"shot_type": "multi"
}
}'
仅 wan2.6 和 wan2.5 系列模型支持。若不提供 input.audio_url,模型将根据视频内容自动生成匹配的背景音乐或音效。
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'X-DashScope-Async: enable' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.5-t2v-preview",
"input": {
"prompt": "史诗级战斗场景..."
},
"parameters": {
"size": "832*480",
"prompt_extend": true,
"duration": 10
}
}'
仅 wan2.6 和 wan2.5 系列模型支持。通过 input.audio_url 参数传入自定义音频的 URL。
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'X-DashScope-Async: enable' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.5-t2v-preview",
"input": {
"prompt": "史诗级战斗场景...",
"audio_url": "https://example.com/audio.mp3"
},
"parameters": {
"size": "832*480",
"prompt_extend": true,
"duration": 10
}
}'
仅 wan2.2 和 wanx2.1 系列模型支持生成无声视频。默认生成无声视频,无需设置。
> wan2.6 及 wan2.5 系列模型默认生成有声视频。
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'X-DashScope-Async: enable' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.2-t2v-plus",
"input": {
"prompt": "低对比度,复古70年代风格地铁站..."
},
"parameters": {
"size": "832*480",
"prompt_extend": true
}
}'
通过 negative_prompt 排除不需要的元素。
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'X-DashScope-Async: enable' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.2-t2v-plus",
"input": {
"prompt": "一只小猫在月光下奔跑",
"negative_prompt": "花朵"
},
"parameters": {
"size": "832*480"
}
}'
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesisGET https://dashscope.aliyuncs.com/api/v1/tasks/Scripts print:
TASK_ID: ...VIDEO_URL: ... (when succeeded)MEDIA: (when downloaded)| 模型 | 多镜头叙事 | 自动配音 | 自定义音频 | 无声视频 | 反向提示词 | |------|-----------|---------|-----------|---------|-----------| | wan2.6-t2v | ✅ | ✅ | ✅ | - | ✅ | | wan2.5-t2v-preview | - | ✅ | ✅ | - | ✅ | | wan2.2-t2v-plus | - | - | - | ✅ | ✅ | | wanx2.1 | - | - | - | ✅ | - |
安装 Qwen Video (Wan) 后,可以对 AI 说这些话来触发它
Help me get started with Qwen Video (Wan)
Explains what Qwen Video (Wan) does, walks through the setup, and runs a quick demo based on your current project
Use Qwen Video (Wan) to generate videos using Alibaba Cloud DashScope Wan (通义万相) text-to-vi...
Invokes Qwen Video (Wan) with the right parameters and returns the result directly in the conversation
What can I do with Qwen Video (Wan) in my design & creative workflow?
Lists the top use cases for Qwen Video (Wan), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/qwen-video/ 目录(个人级,所有项目可用),或 .claude/skills/qwen-video/(项目级)。重启 AI 客户端后,用 /qwen-video 主动调用,或让 AI 根据上下文自动发现并使用。
Qwen Video (Wan) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Qwen Video (Wan) 可免费安装使用。请查阅仓库了解许可证信息。
Generate videos using Alibaba Cloud DashScope Wan (通义万相) text-to-video (t2v) API (e.g., wan2.6-t2v). Use when the user asks to create a short video from a te...
Qwen Video (Wan) 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Qwen Video (Wan)
Identifies repetitive steps in your workflow and sets up Qwen Video (Wan) to handle them automatically