
seedance-video-gen
基于 Seedance 2.0 模型的 AI 视频生成器,输入关键词/描述文案即可生成 MP4 视频。支持文生视频、分辨率/比例/时长控制、预置虚拟人像引用。使用 Seedance 视频生成、AI 视频、text-to-video 时调用此 Skill。
- Installs
- 310
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/redfox-data/redfox-community --skill seedance-video-gen- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads seedance-video-gen automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Seedance2.0
简介
Seedance2.0是一款基于火山方舟 Seedance 2.0 模型的 AI 视频生成工具。通过 redfox.hk 平台封装了复杂的 ARK API 鉴权流程,一行命令即可生成视频。
Skill 特色
- 支持命令行参数化控制分辨率、比例、时长
- 文生视频 + 虚拟人像引用双模式
为什么用这个 Skill?
- 对开发者:无需去火山方舟申请白名单、配置 AK/SK、对接 ARK 鉴权,一行命令搞定
- 对创作者:不用买会员、不用绑卡订阅,按次消费,用完即走
- 对所有人:极低门槛,注册即用,无需自行搭建 API 链路
适用对象
社交媒体创作者、产品经理、内容运营人员、AI 爱好者,以及任何需要快速将文案转化为视频的用户。
功能特性
核心功能
- 文生视频:输入一句中文或英文描述,Seedance 2.0 自动生成带有同步音频的 MP4 视频
- 参数控制:支持分辨率(480p/720p/1080p)、画面比例(16:9/9:16 等 7 种)、视频时长(4-15 秒)
- 虚拟人像:支持通过
asset://格式引用预置虚拟人像,无需上传真实人脸素材 - 任务管理:支持提交任务后获取 taskId,可随时查询任务进度和结果
- 自动轮询:脚本自动轮询任务状态(排队中/生成中/已完成),无需手动等待
技术亮点
- 底层模型:
doubao-seedance-2-0-260128 - 同步音频生成:视频画面与声音同步输出
- 尾帧提取:支持返回视频最后一帧,用于连续视频生成
- 随机种子:支持设置 seed 值,结果可复现
- HTTPS 安全传输:全链路 SSL 验证
参数速查
| 参数 | 说明 | 默认值 |
|---|---|---|
prompt | 视频提示词(必填,中英文均可) | — |
--resolution | 分辨率:480p / 720p / 1080p | 720p |
--ratio | 画面比例:16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive | 16:9 |
--duration | 视频时长(秒):4-15 或 -1(智能) | 5 |
--seed | 随机种子:-1 到 2147483647 | -1 |
--no-audio | 不生成声音 | 默认生成 |
--watermark | 添加水印 | 默认不添加 |
--return-last-frame | 返回尾帧图片 URL | 默认不返回 |
--image-url | 参考图 URL(asset:// 格式) | — |
-o, --output-dir | 输出目录 | ~/Downloads/QoderVideos |
--prefix | 文件名前缀 | video |
--no-download | 仅提交不等待 | — |
--task-id | 查询已有任务 | — |
使用场景
场景一:社交媒体内容创作
角色:短视频博主 / 小红书运营
需求:快速生成竖屏(9:16)视频素材,用于抖音/小红书/视频号发布
使用方式:
python3 "$SKILL_PATH/scripts/videogen.py" "美妆产品展示,柔和的灯光,产品缓缓旋转" --ratio 9:16
预期收益:降低素材制作成本,从数小时缩短到几分钟
场景二:产品功能演示
角色:产品经理 / 创业者
需求:快速生成产品概念视频,用于提案、路演或展示
使用方式:
python3 "$SKILL_PATH/scripts/videogen.py" "一款智能手表在桌面上展示,表盘切换不同功能界面" --resolution 1080p --duration 8
预期收益:无需专业视频制作能力,文案即视频
场景三:品牌内容运营
角色:内容运营 / 市场人员
需求:批量生成品牌配景视频,搭配文案制作品牌宣传短片
使用方式:
python3 "$SKILL_PATH/scripts/videogen.py" "品牌主题色背景,文字渐变浮现,专业大气" --ratio 16:9 --no-audio
预期收益:提升内容产出效率,统一品牌视觉风格
场景四:创意灵感快速验证
角色:设计师 / 创意人员
需求:将脑中的画面用自然语言快速变成可视化视频,验证创意方向
使用方式:
python3 "$SKILL_PATH/scripts/videogen.py" "赛博朋克风格的城市夜景,霓虹灯闪烁,雨滴落在镜头上的效果" --duration 6
预期收益:降低创意门槛,想法到视频只需一行命令
场景五:教育培训可视化
角色:教师 / 培训师
需求:将抽象知识点转化为可视化短片,提升教学效果
使用方式:
python3 "$SKILL_PATH/scripts/videogen.py" "太阳系行星围绕太阳旋转的动画,标注每颗行星的名称" --duration 10
预期收益:无需动画制作技能,知识可视化零门槛
首次使用
配置 API Key 后即可使用:
# 设置环境变量
export REDFOX_API_KEY=ak_你的密钥
# 运行
python3 "$SKILL_PATH/scripts/videogen.py" "一只橘猫在窗台上打哈欠,阳光温暖地照在它的毛上"
前往 redfox.hk 注册获取 API Key。
后续使用
可前往 redfox.hk 注册账号获取自己的 API Key,三种配置方式任选其一:
| 配置方式 | 说明 | 命令 |
|---|---|---|
| 环境变量(推荐) | 设置一次,全局生效 | export REDFOX_API_KEY=ak_你的密钥 |
| 命令行参数 | 临时使用,单次生效 | python3 "$SKILL_PATH/scripts/videogen.py" "prompt" --api-key ak_你的密钥 |
| 配置文件 | 持久化存储,跨会话保留 | mkdir -p ~/.qoder/apis && echo '{"api_key":"ak_你的密钥"}' > ~/.qoder/apis/redfox.json |
一键安装
依赖安装
pip3 install requests
环境变量
| 变量名 | 必填 | 说明 |
|---|---|---|
REDFOX_API_KEY | — | redfox.hk 平台的 API 访问密钥 |
使用指南
基础使用
1. 输入提示词生成视频
python3 "$SKILL_PATH/scripts/videogen.py" "一只橘猫在窗台上打哈欠,阳光温暖地照在它的毛上"
脚本会自动提交任务、轮询等待(约 3-15 分钟),完成后下载到 ~/Downloads/QoderVideos/。
2. 查看结果
生成成功后会显示视频信息和文件路径:
[✓] Video ready: 5s, 720p, 16:9
[✓] Token usage: 108900
[→] Downloading video: video.mp4
[✓] Done!
/Users/you/Downloads/QoderVideos/video.mp4 (2.5 MB)
高级使用
竖屏短视频(适配抖音/小红书)
python3 "$SKILL_PATH/scripts/videogen.py" "时尚都市夜景,霓虹灯闪烁" --ratio 9:16
高清长视频
python3 "$SKILL_PATH/scripts/videogen.py" "海浪拍打岩石的慢动作" --resolution 1080p --duration 10
使用预置虚拟人像
python3 "$SKILL_PATH/scripts/videogen.py" "一位年轻女性在图书馆安静阅读" --image-url "asset://female_student_01"
更多预置虚拟人像 ID 请参考火山方舟「素材&虚拟人像库」文档。
任务管理
# 仅提交任务,返回 taskId 后立即退出
python3 "$SKILL_PATH/scripts/videogen.py" "复杂场景" --no-download
# 稍后用 taskId 查询结果
python3 "$SKILL_PATH/scripts/videogen.py" "ignored" --task-id vg_abc123def456
多段连续视频生成
# 1. 生成第一段,获取尾帧
python3 "$SKILL_PATH/scripts/videogen.py" "开场画面" --return-last-frame
# 2. 将返回的 lastFrameUrl 作为下一段的首帧
python3 "$SKILL_PATH/scripts/videogen.py" "转场到第二个场景" --image-url "上一步的lastFrameUrl"
命令速查
| 命令 | 功能 |
|---|---|
python3 videogen.py "提示词" | 基础文生视频 |
--ratio 9:16 | 竖屏比例 |
--resolution 1080p | 高清分辨率 |
--duration 10 | 指定时长 |
--no-audio | 静音视频 |
--watermark | 添加水印 |
--seed 42 | 固定种子可复现 |
--image-url "asset://..." | 引用虚拟人像 |
--no-download | 仅提交任务 |
--task-id <id> | 查询已有任务 |
--api-key <key> | 指定 API Key |
-o ~/Desktop | 指定输出目录 |
项目架构
目录结构
seedance-video-gen/
├── SKILL.md # Skill 定义与文档
└── scripts/ # 工具脚本
└── videogen.py # 视频生成主程序
技术栈
| 组件 | 技术 |
|---|---|
| 运行环境 | Python 3.6+ |
| HTTP 库 | requests |
| API 平台 | redfox.hk |
| 底层模型 | 火山方舟 Seedance 2.0 (doubao-seedance-2-0-260128) |
| 输出格式 | MP4 |
核心模块
| 模块 | 职责 |
|---|---|
get_api_key() | 三级优先级获取 API Key:CLI > 环境变量 > 配置文件 |
submit_video_task() | 构建 content 数组,提交视频生成任务 |
poll_video_result() | 轮询任务状态(queued/running/succeeded/failed/expired),最多 20 分钟 |
download_video() | 流式下载 MP4 视频,带进度条显示 |
main() | CLI 入口:参数解析、API Key 校验、双分支(提交/查询)流程 |
数据流转
用户输入提示词 → submit_video_task() → redfox.hk API → 火山方舟 Seedance 2.0
↓
用户获得 MP4 ← download_video() ← poll_video_result() ← 任务完成回调
常见问答
安装相关问题
Q1:需要 API Key 吗?
A:需要。前往 redfox.hk 注册获取自己的 API Key,通过环境变量 REDFOX_API_KEY 或 --api-key 参数配置。
Q2:配置文件放在哪里?
A:放在 ~/.qoder/apis/redfox.json,内容格式为:{"api_key": "ak_你的密钥"}。
Q3:如何验证 API Key 是否配置成功?
A:运行 python3 videogen.py "测试" --no-download,如果能返回 taskId 则配置成功。
使用相关问题
Q4:生成一个视频需要多久?
A:通常 3-15 分钟,复杂场景可能更长。脚本会自动轮询等待,最多等待 20 分钟。
Q5:支持上传自己的参考图吗?
A:Seedance 2.0 不支持直接上传含真人人脸的参考图/视频。如需指定人物外观,可在提示词中描述(如"一位戴眼镜的亚洲女性"),或使用预置虚拟人像库的 asset:// URL。更多信息请参考火山方舟「素材&虚拟人像库」文档。
Q6:支持哪些提示词语言?
A:中英文均可,API 内部会自动处理。
Q7:输出文件保存在哪里?
A:默认保存到 ~/Downloads/QoderVideos/video.mp4,可通过 -o 参数指定目录。
故障排除
Q8:任务超时了怎么办?
A:脚本最多等待 20 分钟。超时后会打印 taskId,你可以稍后通过 --task-id 参数重新查询并下载结果。
Q9:提示"API request failed"?
A:检查网络连接是否正常,确认 redfox.hk 服务可访问。如果持续失败,可能是 API Key 已过期或余额不足。
Q10:视频下载失败?
A:确认输出目录有写入权限,磁盘空间充足。如果 OSS 链接过期,可以用 --task-id 重新查询获取新的下载链接。
获取帮助
如有其他问题,可前往 redfox.hk 查看平台文档或联系客服。
FAQ
What does the seedance-video-gen skill do?
基于 Seedance 2.0 模型的 AI 视频生成器,输入关键词/描述文案即可生成 MP4 视频。支持文生视频、分辨率/比例/时长控制、预置虚拟人像引用。使用 Seedance 视频生成、AI 视频、text-to-video 时调用此 Skill。
How do I install seedance-video-gen?
Run npx skills add https://github.com/redfox-data/redfox-community --skill seedance-video-gen in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/seedance-video-gen/ (personal) or .claude/skills/seedance-video-gen/ (project).
Which AI agents can use seedance-video-gen?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is seedance-video-gen safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains seedance-video-gen?
It is published by redfox-data in redfox-data/redfox-community. It has 310 recorded installs.
More from redfox-data/redfox-community
wechat-10w-hot
redfox-data/redfox-community
全网持续收录每日超过1000+公众号10w+文章内容,向用户推送公众号达到10w+阅读的热门文章;当用户需要获取全领域的公众号热门文章、或订阅每日10w+文章推送、特定领域爆款文章时使用
douyin-search
redfox-data/redfox-community
抖音作品查询工具。根据关键词搜索抖音热门爆款作品,支持按日期范围筛选,结果以结构化表格展示。当用户查找抖音热门内容、搜索抖音爆款视频、查询抖音作品数据时使用。触发词:抖音作品查询、抖音爆款、抖音热门、抖音热榜、抖音搜索、爆款视频、热门视频。当接口返回积分不足(code=3210)时,自动唤起支付宝完成充值后继续查询。
xiaohongshu-search
redfox-data/redfox-community
小红书热门笔记搜索工具,支持关键词搜索获取热门内容数据,基于数据评分排序推荐热门笔记,助力创作者发现热门趋势、获取创作灵感。仅在主Agent中执行,不派发给子Agent。当接口返回积分不足(code=3210)时,自动唤起支付宝完成充值后继续查询。
douyin-hot-trend
redfox-data/redfox-community
专注于获取抖音最新的热榜数据,每小时更新,包含热点事件、热度值和跳转链接;支持查询近7天、近30天历史热榜,并支持订阅定时推送。
douyin-account-diagnosis
redfox-data/redfox-community
一键诊断抖音账号运营健康度。基于红狐数据服务获取账号画像与近期作品数据,从账号基础画像、内容生产力、互动健康度、内容质量、内容趋势、粉丝质量六个维度进行量化诊断,输出100分制综合评分、维度得分明细、六类风险预警和针对性优化建议。触发词:当用户提到'诊断抖音账号'、'抖音账号分析'、'抖音体检'、'抖音账号评估'、'查看XX抖音数据'、'分析这个抖音号'时使用
gzh-search-crawler
redfox-data/redfox-community
公众号搜索爬虫 — 通过关键词搜索微信公众号文章,终端表格展示(标题/作者/阅读/点赞/分享/收藏/发布时间/文章链接),自动导出 CSV 并生成交互式 HTML 报告。当用户需要搜索、爬取或浏览公众号文章时使用;也适用于行业热点追踪、竞品内容分析、素材灵感搜集等场景。
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image
ai-avatar-video
101-skills/superpowers
Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc