用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aiqachat/openclaw-skill --skill doubao-video-generation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | doubao-video-generation |
| description | 集成豆包视频生成API,支持文生视频、图生视频、有声视频生成、任务查询等功能。使用时当用户需要调用豆包seedance模型生成视频,或者需要查询视频生成任务结果时触发。 |
This skill provides integration with the Doubao Seedance video generation API, enabling text-to-video, image-to-video, audio-enabled video generation, and async task status querying. It supports multiple models from Doubao with different capabilities.
Supports multiple generation modes:
Check the status of an async generation task and retrieve the finished video URL when complete.
Before using this API, create a .env file in the project root directory:
DOUBBAO_API_KEY=your_api_key_here
DOUBBAO_VIDEO_API_BASE=https://api.cozex.cn/v1/videos/generations
DOUBBAO_VIDEO_QUERY_BASE=https://api.cozex.cn/v1/videos/generations
Or copy from .env.example:
cp .env.example .env
# Edit .env and add your API key
The script will automatically load configuration from the .env file.
python scripts/generate-video.py --prompt "A cat playing piano" --resolution 1080p
python scripts/generate-video.py --prompt "A cat walking" --images "https://example.com/image.jpg"
python scripts/generate-video.py --prompt "Transition between scenes" --images "https://example.com/start.jpg,https://example.com/end.jpg"
python scripts/generate-video.py --prompt "Forest scene with birds" --generate-audio --model doubao-seedance-1-5-pro-251215
python scripts/generate-video.py --prompt "Test video" --draft --resolution 480p
python scripts/generate-video.py --task-id "task-xxx"
python scripts/generate-video.py --task-id "task-xxx" --poll --poll-interval 10
python scripts/generate-video.py --prompt "A sunset" --output result.json
| Argument | Required | Default | Description |
|---|---|---|---|
--model | No | doubao-seedance-1-5-pro-251215 | Model name |
--prompt | Yes* | - | Text prompt for video generation |
--resolution | No | 1080p | Video resolution (480p/720p/1080p) |
--ratio | No | 16:9 | Aspect ratio |
--duration | No | 12 | Duration in seconds (2-12) |
--images | No | - | Comma-separated image URLs |
--fps | No | - | Frame rate |
--seed | No | -1 | Random seed |
--watermark | No | False | Add watermark |
--camera-fixed | No | False | Fixed camera |
--generate-audio | No | False | Generate audio (model-specific) |
--draft | No | False | Draft mode |
--draft-task-id | No | - | Draft task ID for final generation |
--service-tier | No | - | Service tier (flex for offline) |
--task-id | No | - | Task ID to query |
--poll | No | False | Poll until completion |
--poll-interval | No | 10 | Poll interval in seconds |
--output | No | - | Output file for JSON response |
*Required unless --task-id or --draft-task-id is provided
| Model | Resolution | Text to Video | Image to Video (1 frame) | Image to Video (2 frames) | Audio |
|---|---|---|---|---|---|
doubao-seedance-1-0-pro-250528 | 480p/720p/1080p | ✅ | ✅ | ✅ | ❌ |
doubao-seedance-1-0-pro-fast-251015 | 480p/720p/1080p | ✅ | ✅ | ❌ | ❌ |
doubao-seedance-1-5-pro-251215 | 480p/720p/1080p | ✅ | ✅ | ✅ | ✅ |