vidu-skills
Generate video and images by calling the official Vidu API with curl. Use when the user wants text-to-image (文生图), text-to-video (文生视频), image-to-video (图生视频), head-tail-image-to-video (首尾帧生视频), reference-to-image (参考生图), reference-to-video (参考生视频), Create References (创建参考资料), or to submit or check Vidu tasks. Requires VIDU_TOKEN and optional VIDU_BASE_URL.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/calvinzhao/vidu-skillVidu Video and Image Generation Skill (Vidu 音视频/图像生成技能)
Generate AI videos and images with Vidu (生数) via direct API calls — text-to-image, text-to-video, image-to-video, start-end frame, reference-based generation, and material elements, up to 1080p/2K/4K. Use curl with VIDU_TOKEN.
Execution model: use curl (direct API)
All execution is done by calling the official Vidu API with curl (or any HTTP client). Base URL: $VIDU_BASE_URL (default https://service.vidu.cn for mainland China; https://service.vidu.com for overseas).
Required headers for all requests:
| Header | Value |
|---|---|
| Authorization | Token $VIDU_TOKEN |
| Content-Type | application/json |
| User-Agent | viduclawbot/1.0 (+$VIDU_BASE_URL) |
Main endpoints:
- Create upload: POST
$VIDU_BASE_URL/tools/v1/files/uploads→ getput_url,id - PUT image: PUT raw image bytes to
put_url→ get ETag - Finish upload: PUT
$VIDU_BASE_URL/tools/v1/files/uploads/{id}/finish→ getssupload:?id={id} - Submit task: POST
$VIDU_BASE_URL/vidu/v1/tasks→ gettask_id(responseid) - Get task result: GET
$VIDU_BASE_URL/vidu/v1/tasks/{task_id}→ getstate,creations[].nomark_uri - Task state (SSE): GET
$VIDU_BASE_URL/vidu/v1/tasks/state?id={task_id}withAccept: text/event-stream— return SSE stream to the user; do not wait for terminal state. Events includestate,estimated_time_left,err_code, queue_wait_time (排队预测时间, unit: minutes). - Pre-process reference: POST
$VIDU_BASE_URL/vidu/v1/material/elements/pre-process - Create reference: POST
$VIDU_BASE_URL/vidu/v1/material/elements - List elements: GET
$VIDU_BASE_URL/vidu/v1/material/elements/personal
Key Capabilities
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-calvinzhao-vidu-skill": {
"enabled": true,
"auto_update": true
}
}
}