seedance-video▌
freestylefly/canghe-skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
使用字节跳动 Seedance-1.5-pro 模型 (doubao-seedance-1-5-pro-251215) 根据文本或图片生成视频。
Seedance 视频生成
使用字节跳动 Seedance-1.5-pro 模型 (doubao-seedance-1-5-pro-251215) 根据文本或图片生成视频。
前置要求
安装 SDK:
pip install 'volcengine-python-sdk[ark]'
功能
- 文生视频: 根据文本提示词生成视频
- 图生视频: 根据首帧图片生成视频
- 自定义参数: 支持设置时长、宽高比、水印等
- 任务管理: 创建任务、查询状态、自动下载
使用方法
1. 快速生成视频 (文生视频)
cd ~/.openclaw/workspace/skills/seedance-video
python3 scripts/generate_video.py "一只可爱的猫咪在草地上玩耍" --wait -o cat.mp4
2. 自定义参数
python3 scripts/generate_video.py "日落时分的海边" \
--duration 10 \
--ratio 16:9 \
--wait \
-o sunset.mp4
3. 图生视频
python3 scripts/generate_video.py "猫咪动起来" \
--image-url https://example.com/cat.jpg \
--duration 5 \
--wait
4. 仅创建任务(不等待)
python3 scripts/generate_video.py "星空下的城市" -o starry.mp4
# 返回任务ID
然后稍后查询状态并下载:
python3 scripts/generate_video.py --status <task_id> --wait -o starry.mp4
参数说明
| 参数 | 默认值 | 说明 |
|---|---|---|
prompt |
必填 | 视频描述提示词 |
-o, --output |
output.mp4 | 输出文件路径 |
-m, --model |
doubao-seedance-1-5-pro-251215 | 模型 ID |
-d, --duration |
5 | 视频时长(秒) |
-r, --ratio |
16:9 | 宽高比 (16:9, 9:16, 1:1, 4:3 等) |
--watermark |
false | 添加水印 |
--return-last-frame |
false | 返回最后一帧图片 |
--image-url |
无 | 首帧图片 URL (图生视频) |
--wait |
false | 等待视频生成完成并下载 |
--status |
无 | 查询指定任务ID的状态 |
API 密钥配置
需要设置 ARK_API_KEY 或 SEEDANCE_API_KEY 环境变量。
配置方式(推荐)
- 复制配置模板:
cp .canghe-skills/.env.example .canghe-skills/.env
- 编辑
.canghe-skills/.env文件,填写你的 API Key:
ARK_API_KEY=your-actual-api-key-here
或使用环境变量
export ARK_API_KEY="your-api-key"
# 或
export SEEDANCE_API_KEY="your-api-key"
加载优先级
- 系统环境变量 (
process.env) - 当前目录
.canghe-skills/.env - 用户主目录
~/.canghe-skills/.env
提示词优化建议
- 具体描述: 描述场景、主体、动作、环境等细节
- 风格明确: 指定摄影风格(如"电影感"、"纪录片风格")
- 光线描述: 说明光线条件(如"黄金时刻"、"柔和自然光")
- 镜头语言: 描述镜头运动(如"缓慢推进"、"稳定器拍摄")
示例提示词
一只金毛犬在秋天的公园里奔跑,金色落叶飘落,下午的阳光透过树叶,电影感镜头,稳定器拍摄,4K画质
一个机器人在未来城市的霓虹灯街道上行走,赛博朋克风格,雨夜,倒影,广角镜头,电影色调
Python API 使用
from volcenginesdkarkruntime import Ark
from scripts.generate_video import create_video_task, wait_for_video
# 初始化客户端
client = Ark(
base_url="https://ark.cn-beijing.volces.com/api/v3",
api_key="your-api-key"
)
# 创建视频任务
result = create_video_task(
client=client,
model="doubao-seedance-1-5-pro-251215",
prompt="一只鸟在天空中飞翔",
duration=5
)
task_id = result["task_id"]
# 等待并获取结果
final_status = wait_for_video(client, task_id)
video_url = final_status["video_url"]
注意事项
- 异步生成: 视频生成是异步过程,通常需要 30-60 秒
- 任务保存时间: 任务数据仅保留 24 小时
- 限流: 注意账号的 RPM 和并发数限制
- 视频比例: 建议视频宽高比与首帧图片比例接近
任务状态
queued: 排队中running: 生成中succeeded: 成功failed: 失败
How to use seedance-video on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add seedance-video
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches seedance-video from GitHub repository freestylefly/canghe-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate seedance-video. Access the skill through slash commands (e.g., /seedance-video) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★49 reviews- ★★★★★Ganesh Mohane· Dec 28, 2024
Registry listing for seedance-video matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Fatima Sethi· Dec 28, 2024
Registry listing for seedance-video matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Noah Srinivasan· Dec 16, 2024
Solid pick for teams standardizing on skills: seedance-video is focused, and the summary matches what you get after install.
- ★★★★★William Li· Dec 12, 2024
seedance-video is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Liam Thompson· Dec 8, 2024
seedance-video has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Rahul Santra· Nov 19, 2024
Solid pick for teams standardizing on skills: seedance-video is focused, and the summary matches what you get after install.
- ★★★★★Tariq Patel· Nov 19, 2024
Solid pick for teams standardizing on skills: seedance-video is focused, and the summary matches what you get after install.
- ★★★★★Michael Ndlovu· Nov 7, 2024
Registry listing for seedance-video matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Anika Sharma· Nov 3, 2024
Keeps context tight: seedance-video is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Noah Mensah· Oct 26, 2024
Useful defaults in seedance-video — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 49