بنقرة واحدة
seedance-video-local
用火山引擎 Ark 的 Seedance 2.0 系列做视频生成(文本+参考图/视频/音频),支持提交任务、轮询状态、下载结果,默认 480p 控成本。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
用火山引擎 Ark 的 Seedance 2.0 系列做视频生成(文本+参考图/视频/音频),支持提交任务、轮询状态、下载结果,默认 480p 控成本。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when generating PPT-style image slides, poetic presentation covers, quiet paper-texture visual pages, report pages, invitations, social cards, or slide-image sets with GPT-Image-2 via image_generate.
Use when generating high-readability hand-drawn knowledge diagrams, architecture diagrams, workflow maps, or consulting-style visual explanations with GPT-Image-2 via image_generate.
可独立运行的 GPT-Image 增强版 EPUB2Podcast:在本地把 EPUB 转成双人中文音频、GPT-Image/Smart Slide 视觉页、最终 MP4,并生成 YouTube 发布素材。
可独立运行的 standalone 版 EPUB2Podcast:用户只需下载当前项目本身,即可在本地把 EPUB 转成 Smart Slide + 双人中文音频 + 最终 MP4 视频播客。
【Ark Agent Plan 专用版本】EPUB 转双人中文播客视频流水线:使用火山引擎 TTS(与 Seedream/Seedance 共享技术栈),Smart Slide + 双人音频 + 最终 MP4 视频,无需额外 Google/OpenRouter API Key。
【Ark Agent Plan 专用版本】Manim 数学/算法讲解视频完整流水线,使用火山引擎 TTS 中文旁白(与 Seedream/Seedance 共享认证)。Plan → TTS → Code → Render → Stitch → Deliver. 适用于:Manim 动画 + 中文配音、音画同步讲解视频、3Blue1Brown 风格教学视频。
| name | seedance-video-local |
| description | 用火山引擎 Ark 的 Seedance 2.0 系列做视频生成(文本+参考图/视频/音频),支持提交任务、轮询状态、下载结果,默认 480p 控成本。 |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["volcengine","ark","seedance","video-generation","multimodal"]}} |
当用户想要:
就用这个 skill。
resolution=480p(控成本)ratio=16:9duration=5(更省)watermark=falsedoubao-seedance-2-0-260128profile=stable(质量与自由度平衡)strict:交付优先,强约束,最稳;非 timeline 场景仅保留一个主镜头运动。stable:默认档,稳定与表现力平衡;适合日常生产。cinematic:风格优先,约束更松;非 timeline 场景可保留最多两个镜头指令。批量模式可在每条 item 内单独覆盖 profile,用于同一批任务做 A/B 对比。
--api-key--api-key "$VOLCENGINE_API_KEY"ARK_BASE_URL(默认 https://ark.cn-beijing.volces.com/api/v3)scripts/seedance_video.pyscripts/seedance_prompt_generator.pyscripts/seedance_workflow.pyscripts/seedance_cost_estimator.pyseedance_video.py功能:
check:检查环境preview:只打印请求 JSON,不发请求submit:创建任务get:查询任务状态run:创建并轮询到结束(可选自动下载)cancel:取消/删除任务seedance_prompt_generator.py用途:把自然语言视频需求按 Seedance 方法论结构化。
固定方法:
subject > action > camera > style > constraints能力:
2-4 秒:... / [0-4s]: ... / [0.0-0.8s] ... / [00:00-00:04] ...)Core Subject / Main Action / Action Sequence / Cinematography / Visual Style / 【角色】 / 【风格】)subject / action 重复fast、glow/glimmer/glints、单独 cinematic、lots of movement)--profile strict|stable|cinematic 三档:
strict:交付优先,强约束,最稳stable:默认档,质量与自由度平衡cinematic:风格优先,约束更松示例:
python3 scripts/seedance_prompt_generator.py \
--brief '第一视角果茶广告,2-4 秒摇杯,4-6 秒成品特写,golden hour,避免抖动' \
--profile stable \
--json
seedance_workflow.py用途:一条命令完成「需求结构化 -> 生成 prompt -> 提交/轮询 Seedance 任务」。
模式:
preview:只生成结构化结果与最终 payload(不扣费)submit:生成并提交任务(默认)run:生成、提交并轮询到结束(可选下载)模板:
--template ./template.json 可给单条与批量任务提供默认参数(refs、duration、ratio、resolution 等)item 字段 > template 字段 > 命令行默认值(批量时)注意:
seedance_workflow.py 默认 mode 是 submit,会真实发起任务并产生费用。--mode preview 做结构化与 payload 校验,再提交。submit/run;480p 控成本。示例(推荐先 preview):
python3 scripts/seedance_workflow.py \
--mode preview \
--brief '第一视角果茶广告,2-4 秒摇杯,4-6 秒成品特写,golden hour' \
--ref-image-url 'https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg' \
--json
正式提交:
python3 scripts/seedance_workflow.py \
--mode submit \
--api-key "$VOLCENGINE_API_KEY" \
--brief '第一视角果茶广告,2-4 秒摇杯,4-6 秒成品特写,golden hour' \
--ref-image-url 'https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg' \
--ref-video-url 'https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4' \
--generate-audio \
--duration 11 \
--json
seedance_cost_estimator.py依据(与你给的图一致):
tokens = (宽 * 高 * 帧率 * 时长) / 1024 * 条数¥0.046 / 1000 tokens说明:
seedance_workflow.py 已内置成本估算输出到 cost_estimatecost_summary_human(示例:预计 ¥x.xx / 条,本次合计 ¥y.yy)summary 里额外包含:estimated_video_count 与 cost_summary_human(示例:预计 ¥x.xx / 条,批量总计 ¥y.yy)cost_summary: ...,方便快速看预算fps=24、video_count=1、token_price_cny_per_1k=0.046--fps、--video-count、--token-price-cny-per-1k、--width、--height--width/--height 不填时,会按 resolution + ratio 自动估算像素尺寸示例:
python3 scripts/seedance_workflow.py \
--mode preview \
--brief '第一视角果茶广告,2-4 秒:摇杯,4-6 秒:成品特写' \
--resolution 480p \
--ratio 16:9 \
--duration 5 \
--fps 24 \
--video-count 1 \
--json
批量模式(--auto-submit-from-file):
说明:
JSON 数组、{"items": [...]}、JSONL(每行一个 JSON 对象)。brief / brief_filemode(preview/submit/run)profile(strict/stable/cinematic)resolution / ratio / duration / seedfps / video_count / token_price_cny_per_1kwidth / heightref_image_url / ref_video_url / ref_audio_urlfirst_frame_url / last_frame_urlgenerate_audio / watermark / extra_json / download--continue-on-error 继续后续任务。[
{
"brief": "第一视角果茶广告,2-4 秒:摇杯,4-6 秒:成品特写",
"ref_image_url": ["https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg"],
"duration": 6
},
{
"brief": "第一视角举杯递给镜头,golden hour",
"ref_video_url": ["https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4"],
"resolution": "720p"
}
]
template.json(常用默认参数):
{
"ref_image_url": ["https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg"],
"ref_video_url": ["https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4"],
"ratio": "16:9",
"duration": 8,
"resolution": "480p",
"generate_audio": true
}
batch.json(只保留差异):
[
{"brief": "第一视角果茶广告,2-4 秒:摇杯,4-6 秒:成品特写"},
{"brief": "第一视角举杯递给镜头,golden hour", "duration": 11}
]
合并优先级:
python3 scripts/seedance_workflow.py \
--mode preview \
--auto-submit-from-file ./batch.json \
--template ./template.json \
--batch-output ./batch.preview.result.json \
--json
python3 scripts/seedance_workflow.py \
--mode submit \
--api-key "$VOLCENGINE_API_KEY" \
--auto-submit-from-file ./batch.json \
--template ./template.json \
--continue-on-error \
--batch-output ./batch.submit.result.json \
--json
subject > action > camera > style > constraints2-4 秒:...、[0-4s]: ...、[00:00-00:04] ...、[0.8-1.6s] ...(小数秒)后,优先生成 time-coded promptCore Subject / Main Action / Action Sequence / Cinematography / Visual Style / Camera Settings / Quality,也支持 【角色】/【风格】/【场景】;/;),可降低 subject 与 action 重复strict/stable 默认单主镜头运动,cinematic 可保留最多两个镜头指令fast → single fast element, keep all other elements steadyglow/glimmer/glints → steady intensity diffuse lightcinematic(单独)→ cinematic film tone, 35mmlots of movement → one primary movement onlyavoid jitteravoid bent limbsavoid temporal flickermaintain face consistencypython3 scripts/test_seedance_prompt_generator.py
python3 scripts/test_seedance_workflow.py
python3 scripts/test_seedance_cost_estimator.py
如果你改了关键词映射/正则、成本公式参数、或统一入口编排,先跑这组测试再提交。
python3 scripts/seedance_video.py preview \
--prompt '第一视角果茶广告,首尾帧清晰,节奏轻快' \
--ref-image-url 'https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg' \
--ref-image-url 'https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg' \
--ref-video-url 'https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4' \
--ref-audio-url 'https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3' \
--generate-audio
python3 scripts/seedance_video.py run \
--api-key "$VOLCENGINE_API_KEY" \
--prompt '第一视角果茶广告,镜头从摘果到成品递杯' \
--ref-image-url 'https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg' \
--ref-image-url 'https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg' \
--ref-video-url 'https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4' \
--ref-audio-url 'https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3' \
--generate-audio \
--duration 11 \
--download ./outputs/seedance_ad.mp4
python3 scripts/seedance_video.py get \
--api-key "$VOLCENGINE_API_KEY" \
--task-id cgt-xxxx
POST /contents/generations/tasksGET /contents/generations/tasks/{id}DELETE /contents/generations/tasks/{id}succeededqueued / runningfailed / expired / cancelledcontent.video_url(通常有时效,建议立刻下载)401/403:API Key 不对或没生效。first_frame/last_frame 不能与 reference_image/reference_video/reference_audio 混用;会报 InvalidParameter。InvalidAction.RunningTaskDeletion);通常只支持取消排队中的任务。python3 -u .../seedance_video.py run(unbuffered)或直接 get 查询 task_id。生成完成后,建议立刻上传飞书云盘并返回可打开链接:
lark-cli drive +upload 上传 mp4(注意 --file 必须是当前目录相对路径)drive metas batch_query 通过 file_token 取 urlhttps://*.feishu.cn/file/<token> 链接这一步建议作为默认交付收尾,避免只给本地路径。