aliyun-cosyvoice-voice…
Use when creating cloned voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or…
Use when generating videos with DashScope Vidu models. Use when implementing text-to-video, image-to-video (first frame), keyframe-to-video (first+last frame), or reference-to-video generation via the video-synthesis async API.
$ npx -y skills add cinience/alicloud-skills --skill aliyun-vidu-video --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/aliyun-vidu-videoContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when generating videos with DashScope Vidu models. Use when implementing text-to-video, image-to-video (first frame), keyframe-to-video (first+last frame), or reference-to-video generation via the video-synthesis async API.
name: aliyun-vidu-video description: Use when generating videos with DashScope Vidu models. Use when implementing text-to-video, image-to-video (first frame), keyframe-to-video (first+last frame), or reference-to-video generation via the video-synthesis async API.
mkdir -p output/aliyun-vidu-video python -m py_compile skills/ai/video/aliyun-vidu-video/scripts/generate_vidu_video.py && echo "py_compile_ok" > output/aliyun-vidu-video/validate.txt
Pass criteria: command exits 0 and `output/aliyun-vidu-video/validate.txt` is generated.
| Capability | Description | Model suffix | Required input | |---|---|---|---| | Text-to-video | Generate video from text prompt only | `_text2video` | `prompt` | | Image-to-video | Generate video from a single image + optional prompt | `_img2video` | `media[image]` | | Keyframe-to-video | Interpolate video between first and last frame images | `_start-end2video` | `media[image x2]` + `prompt` | | Reference-to-video | Embed reference subject(s) into prompted scene | `_reference2video` | `media[image 1-7]` + `prompt` |
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
Required headers:
| Resolution | Aspect ratio | Size (width*height) | |---|---|---| | 540P | 16:9 | 960*528 | | 540P | 9:16 | 528*960 | | 540P | 1:1 | 720*720 | | 540P | 4:3 | 816*608 | | 540P | 3:4 | 608*816 | | 720P | 16:9 | 1280*720 | | 720P | 9:16 | 720*1280 | | 720P | 1:1 | 960*960 | | 720P | 4:3 | 1104*816 | | 720P | 3:4 | 816*1104 | | 1080P | 16:9 | 1920*1080 | | 1080P | 9:16 | 1080*1920 | | 1080P | 1:1 | 1440*1440 | | 1080P | 4:3 | 1674*1238 | | 1080P | 3:4 | 1238*1674 |
| Resolution | Aspect ratio | Size (width*height) | |---|---|---| | 540P | 16:9 | 960*540 | | 540P | 9:16 | 540*960 | | 540P | 1:1 | 540*540 | | 540P | 4:3 | 720*540 | | 540P | 3:4 | 540*720 | | 720P | 16:9 | 1280*720 | | 720P | 9:16 | 720*1280 | | 720P | 1:1 | 720*720 | | 720P | 4:3 | 960*720 | | 720P | 3:4 | 720*960 | | 1080P | 16:9 | 1920*1080 | | 1080P | 9:16 | 1080*1920 | | 1080P | 1:1 | 1080*1080 | | 1080P | 4:3 | 1440*1080 | | 1080P | 3:4 | 1080*1440 |
**Images** (type=image):
**Videos** (type=video, reference-to-video only):
import os
import json
import time
import requests
API_KEY = os.getenv("DASHSCOPE_API_KEY")
BASE_URL = "https://dashscope.aliyuncs.com/api/v1"
def create_vidu_task(req: dict) -> str:
"""Create a Vidu video generation task and return task_id."""
payload = {
"model": req["model"],
"input": {},
"parameters": {
"resolution"Use when creating cloned voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or…
Use when designing custom voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus…
Use when low-latency realtime speech recognition is needed with Alibaba Cloud Model Studio Qwen ASR Realtime models, including…
Use when transcribing non-realtime speech with Alibaba Cloud Model Studio Qwen ASR models (`qwen3-asr-flash`, `qwen-audio-asr`,…
Use when live speech translation is needed with Alibaba Cloud Model Studio Qwen LiveTranslate models, including bilingual…
Use when real-time speech synthesis is needed with Alibaba Cloud Model Studio Qwen TTS Realtime models. Use when low-latency…