Reverse-engineer any video, shot by shot: filmed, AI-generated or coded, and how to remake it. Breakdowns in the open VIDEO.md format. 逆向一切视频,逐个镜头看是拍的、AI 生成的还是代码做的,再告诉你怎么复刻;拆解结果按 VIDEO.md 格式输出。
Python agent-skillsai-videoaigc-detectionclaude-codecodexffmpegprompt-engineeringremotionreverse-engineeringshort-videoshot-detectionsubtitlesvideo-analysisvideo-breakdownvideo-editingvideo-generationvideomdvlm
Add per-model prompt notes
june3056b7f8b833
diff --git a/docs/cli.md b/docs/cli.mdindex 9858064..d2d4502 100644--- a/docs/cli.md+++ b/docs/cli.md@@ -106,6 +106,7 @@ rea-video capsule-draft out/ref/breakdown.json --capsule-root $CC --capsule-name| `tiles VIDEO --start --end --every` | 按时间抽帧拼图,近距离复核 || `eval labels.yaml` | 在带标注的样本上评测准确率和切点 F1 || `capsule breakdown.json` | 导出 capsule-cinema 的视频分析 JSON |+| `models [ID] [--plan OUT_DIR]` | 列出能力地图里的生成模型;带 id 时打印这个模型的提示词写法和关键帧要求(`models keyframes` 是关键帧通用做法);`--plan` 把已有拆解的复刻方案改按该模型重出 || `remake-plan` / `assemble` | 生成复刻任务、拼回成片 || `remake-run JOBS [--dry-run] [--only 2,5\|shot_002] [--capsule-root]` | 用 capsule-cinema 执行复刻任务(会计费);有镜头没生成出视频时退出码非 0 || `capsule-draft breakdown.json` | 生成 capsule-cinema 胶囊草稿 |diff --git a/rea_video/capabilities/MATRIX.md b/rea_video/capabilities/MATRIX.mdindex b5ea938..08ac0f4 100644--- a/rea_video/capabilities/MATRIX.md+++ b/rea_video/capabilities/MATRIX.md@@ -22,13 +22,13 @@| `image.tryon` | 虚拟试穿 | ◐ `fashn-v1.6`、◐ `kling-kolors-tryon` || `video.t2v` | 文生视频 | ◐ `gemini-omni-flash`、◐ `hailuo-2.3`、◐ `hunyuanvideo-1.5`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `ltx-2.5`、○ `luma-ray3.2`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `runway-gen-4.5`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `vidu-q3`、● `wan-2.2`、◐ `wan-3.0` || `video.i2v_first_frame` | 图生视频(首帧) | ◐ `gemini-omni-flash`、◐ `hailuo-2.3`、◐ `hunyuanvideo-1.5`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `ltx-2.5`、○ `luma-ray3.2`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `runway-gen-4.5`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `vidu-q3`、● `wan-2.2`、◐ `wan-3.0` |-| `video.i2v_first_last` | 首尾帧生成 | ◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1` |+| `video.i2v_first_last` | 首尾帧生成 | ◐ `gemini-omni-flash`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `wan-3.0` || `video.keyframes` | 多关键帧控制 | ◐ `kling-4.0`、◐ `runway-gen-4.5` |-| `video.multi_reference` | 多参考生视频(主体一致) | ◐ `gemini-omni-flash`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `vidu-q3` |-| `video.reference_video` | 参考视频生成(动作/运镜/特效迁移) | ◐ `gemini-omni-flash`、◐ `kling-4.0`、◐ `kling-o3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5` |-| `video.reference_audio` | 参考音频生成 | ◐ `gemini-omni-flash`、◐ `ltx-2.5`、◐ `seedance-2.0`、● `seedance-2.5` |-| `video.multi_shot` | 单次多镜头 | ◐ `kling-3.0`、◐ `kling-o3`、◐ `ltx-2.5`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5` |-| `video.extend` | 续写延长 | ● `seedance-2.5`、◐ `veo-3.1` |+| `video.multi_reference` | 多参考生视频(主体一致) | ◐ `gemini-omni-flash`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `vidu-q3`、◐ `wan-3.0` |+| `video.reference_video` | 参考视频生成(动作/运镜/特效迁移) | ◐ `gemini-omni-flash`、◐ `kling-4.0`、◐ `kling-o3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `wan-3.0` |+| `video.reference_audio` | 参考音频生成 | ◐ `ltx-2.5`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `wan-3.0` |+| `video.multi_shot` | 单次多镜头 | ◐ `gemini-omni-flash`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `kling-o3`、◐ `ltx-2.5`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `wan-3.0` |+| `video.extend` | 续写延长 | ◐ `gemini-omni-flash`、● `seedance-2.5`、◐ `veo-3.1` || `video.edit_v2v` | 视频编辑(保留运动) | ◐ `gemini-omni-flash`、◐ `kling-4.0`、◐ `kling-o3`、◐ `ltx-2.5`、○ `luma-ray3.2`、○ `runway-aleph-2`、◐ `runway-gen-4.5`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `wan-2.2-animate`、○ `wan-2.7-edit` || `video.camera_control` | 运镜与镜头参数控制 | ◐ `gemini-omni-flash`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `pixverse-v6`、○ `runway-aleph-2`、◐ `runway-gen-4.5`、● `seedance-2.5` || `video.native_audio` | 音画同出 | ◐ `gemini-omni-flash`、◐ `kling-3.0`、◐ `kling-4.0`、◐ `ltx-2.5`、○ `luma-ray3.2`、◐ `minimax-h3`、◐ `pixverse-v6`、◐ `runway-gen-4.5`、◐ `seedance-2.0`、● `seedance-2.5`、◐ `veo-3.1`、◐ `vidu-q3`、◐ `wan-3.0` |@@ -109,7 +109,7 @@| Hunyuan 3D(3.x) | Tencent | threed | ga | | | 是 | third-party 2026-10-29 || Rodin Gen-2.5 | Hyper3D / Deemos | threed | ga | | | 是 | third-party 2026-10-29 || Tripo P1 | Tripo | threed | ga | | | 是 | third-party 2026-10-29 |-| Gemini Omni Flash | Google | video | ga | 8 | 是 | 是 | third-party 2026-10-29 |+| Gemini Omni Flash | Google | video | ga | 15 | 是 | 是 | vendor 2026-11-12 || Hailuo 2.3 / 2.3 Fast(海螺) | MiniMax | video | ga | 10 | 是 | 是 | third-party 2026-10-29 || HunyuanVideo 1.5(开源) | Tencent | video | ga | | | 有条件 | third-party 2026-10-29 || Kling 3.0(含 Turbo) | Kuaishou | video | ga | 15 | 是 | 是 | third-party 2026-10-29 |diff --git a/rea_video/capabilities/README.md b/rea_video/capabilities/README.mdindex d7a68cb..164d3bb 100644--- a/rea_video/capabilities/README.md+++ b/rea_video/capabilities/README.md@@ -26,6 +26,10 @@ models(具体模型/工具,带边界、价格、许可、来源)- `threed`:3D 生成- `analysis`:拉片用的 VLM 和确定性工具- `render-post`:代码渲染、合成、超分、补帧+- **prompting.yaml**:各模型的提示词写法和关键帧要求,按模型 id 索引:+ - 结构、语言、长度、多镜头和时间怎么写、参考素材怎么指代、台词和声音、不想要的内容怎么写、运镜、首帧 / 首尾帧模式下写什么、对帧图的要求、自动改写开关、已知问题+ - `basis` 标主要来源,`unverified` 列没核实或来源互相矛盾的地方;开头的 `keyframes` 是所有模型通用的关键帧做法+ - 查看:`rea-video models <id>`;复刻方案按哪个模型规划,就带上哪个模型的写法- **routing.yaml**:包含以下几部分- 信号定义- 两级拆分规则(剪辑镜头 → 生成单元 → 分层)@@ -49,7 +53,7 @@ models(具体模型/工具,带边界、价格、许可、来源)## 维护流程-1. **新增或更新模型**:编辑对应的 `models/*.yaml`,写明来源链接和 `verified.date`。+1. **新增或更新模型**:编辑对应的 `models/*.yaml`,写明来源链接和 `verified.date`;视频模型同时在 `prompting.yaml` 里补它的提示词写法。2. **校验**:运行 `python3 scripts/validate_capabilities.py --matrix`。脚本检查 schema、引用完整性、"首选模型是否真的支持该原语"、原语空缺和过期条目(超过 90 天)。3. **用户实测结论**(例如"GPT Image 2.5 的中文字最好"):写进 `strengths`,并把 `basis` 标为 `user`。4. **模型下线**:把 `status` 改成 `shutdown`,条目保留,同时从路由规则里移除。diff --git a/rea_video/capabilities/models/video.yaml b/rea_video/capabilities/models/video.yamlindex 743d426..784bf3e 100644--- a/rea_video/capabilities/models/video.yaml+++ b/rea_video/capabilities/models/video.yaml@@ -76,7 +76,7 @@ models:release: 2026-10status: previewaccess: [app, api, api-aggregator]- primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.keyframes, video.multi_reference, video.reference_video, video.edit_v2v, video.camera_control, video.native_audio]+ primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.keyframes, video.multi_reference, video.reference_video, video.multi_shot, video.edit_v2v, video.camera_control, video.native_audio]limits:duration_s: {min: 3, max: 30}resolutions: [720p, 1080p, 4K]@@ -90,12 +90,14 @@ models:- 视频编辑:表情、肢体、机位、风格、背景、角色均可改(最多 5 段输入、合计 30 秒)- 立体声,多语种对白与口音;屏幕文字支持多语种和 emoji- 画幅 21:9 / 16:9 / 1:1 / 9:16+ - 默认自动分镜,镜头按时间直接写在提示词里weaknesses:- Flash 版 3–20 秒、仅 720p、8-bit SDR;10-bit HDR 与续写(最长 2 分钟)为 coming soon- 音频参考只能当声音参考license: {commercial: true, note: 以平台条款为准}sources:- https://fal.ai/learn/tools/what-is-kling-4-0+ - https://kling.ai/quickstart/kling-4-model-user-guideverified: {date: 2026-10-29, basis: third-party}confidence: mediumnotes: Flash 于 2026-09-28 开放有限早期访问;正式版预计 2026-10 上线,需上线后复核@@ -158,9 +160,9 @@ models:release: 2025-10status: gaaccess: [app, api]- primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.multi_reference, video.extend, video.native_audio]+ primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.multi_reference, video.multi_shot, video.extend, video.native_audio]limits:- duration_s: {max: 8}+ duration_s: {min: 4, max: 8}resolutions: [720p, 1080p, 4K]refs: {image: 4}audio: {native: true}@@ -177,8 +179,11 @@ models:- https://tech-insider.org/best-ai-video-generator-2026/- https://templix.app/blogs/best-ai-motion-control-and-animation-models-in-2026- https://help.artlist.io/hc/en-us/articles/33139656414877-Veo-3-1+ - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/veo/3-1-generate+ - https://cloud.google.com/blog/products/ai-machine-learning/ultimate-prompting-guide-for-veo-3-1verified: {date: 2026-10-29, basis: third-party}confidence: medium+ notes: 预览版已从 Gemini API 下线,API 走 Vertex AI 上的正式版;一段里可以按时间戳写多个镜头- id: gemini-omni-flashname: Gemini Omni Flash@@ -187,17 +192,20 @@ models:release: 2026-05status: gaaccess: [app, api]- primitives: [video.t2v, video.i2v_first_frame, video.multi_reference, video.reference_video, video.reference_audio, video.edit_v2v, video.camera_control, video.native_audio]+ primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.multi_reference, video.reference_video, video.multi_shot, video.extend, video.edit_v2v, video.camera_control, video.native_audio]limits:- duration_s: {max: 8}- resolutions: [1080p]+ duration_s: {min: 3, max: 15}+ resolutions: [720p, 1080p, 4K]+ refs: {image: 6}audio: {native: true}strengths:- 文本、图像、音频、视频任意组合输入;草图可作为动作引导- 对话式多轮编辑,场景状态延续不重置- 第三方榜单中文生视频(含音频)排名第一(Elo 约 1233)weaknesses:- - 单段 8 秒+ - 单段 3–15 秒,首尾帧和续写每次 3–10 秒+ - 默认会自己切镜,要单镜头得在提示词里写明+ - 不收音频参考- 物理一致性仍有瑕疵- 输出带 SynthID 和 C2PA 标记cost: {usd_per_s: 0.10}@@ -205,9 +213,10 @@ models:sources:- https://www.datacamp.com/blog/gemini-omni- https://tech-insider.org/best-ai-video-generator-2026/- verified: {date: 2026-10-29, basis: third-party}+ - https://aistudio.google.com/docs/omni+ verified: {date: 2026-11-12, basis: vendor}confidence: medium- notes: API ID 为 gemini-omni-1.1-flash;Omni Pro 尚未发布+ notes: API ID 为 gemini-omni-1.2-flash;Omni Pro 尚未发布- id: vidu-q3name: Vidu Q3@@ -262,15 +271,18 @@ models:release: 2026-06status: gaaccess: [api, api-aggregator, open-weights]- primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.multi_reference, video.native_audio]+ primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.multi_reference, video.multi_shot, video.native_audio]limits:duration_s: {min: 4, max: 15}resolutions: [768p, 1080p, 2K]+ # 首帧 / 首尾帧 和 参考素材 不能放在同一个请求里+ exclusive_inputs: [[video.i2v_first_frame, video.i2v_first_last], [video.multi_reference]]audio: {native: true}strengths:- 第三方榜单前三(H3 Max Elo 约 1227),且列价最低- 权重开放(H3-Base 可在本地跑 768p)- Hypit 与 video-replicate-studio 均已接入+ - 一次可出多个镜头:提示词里按 [Shot N] 加切镜时间点写weaknesses:- 企业配套弱;1080p 下时长受限- 2K 需要托管模块@@ -279,6 +291,8 @@ models:sources:- https://tech-insider.org/best-ai-video-generator-2026/- https://www.turingpost.com/p/6-opensource-video-generation-models+ - https://huggingface.co/MiniMaxAI/MiniMax-H3/raw/main/docs/VIDEO_PROMPT_WRITING_GUIDE_base_en.md+ - https://platform.minimax.io/docs/api-reference/video-generation-v2-createverified: {date: 2026-10-29, basis: third-party}confidence: mediumnotes: 发布月份为估计值@@ -314,19 +328,26 @@ models:release: 2026-07status: gaaccess: [api]- primitives: [video.t2v, video.i2v_first_frame, video.native_audio]+ primitives: [video.t2v, video.i2v_first_frame, video.i2v_first_last, video.multi_reference, video.reference_video, video.reference_audio, video.multi_shot, video.native_audio]limits:duration_s: {max: 10}resolutions: [1080p]+ refs: {image: 10, video: 5, audio: 5}+ # 首帧 / 首尾帧 和 参考素材 不能放在同一个请求里+ exclusive_inputs: [[video.i2v_first_frame, video.i2v_first_last], [video.multi_reference, video.reference_video, video.reference_audio]]audio: {native: true}strengths:- 第三方榜单第二(Elo 约 1229)+ - 一次可出多个镜头:按「第 N 个镜头[起-止秒]」写,每段 2–5 秒+ - 参考图、参考视频、参考音频(音色)都可以用weaknesses:- 只有 API,不开源cost: {usd_per_s: 0.20, note: 约 12 美元/分钟}license: {commercial: true}sources:- https://tech-insider.org/best-ai-video-generator-2026/+ - https://help.aliyun.com/zh/model-studio/wan3-video-generation-guide+ - https://help.aliyun.com/zh/model-studio/wan3-video-generation-prompt-guideverified: {date: 2026-10-29, basis: third-party}confidence: mediumdiff --git a/rea_video/capabilities/prompting.yaml b/rea_video/capabilities/prompting.yamlnew file mode 100644index 0000000..12c0c3e--- /dev/null+++ b/rea_video/capabilities/prompting.yaml@@ -0,0 +1,623 @@+# 各模型的提示词写法和关键帧要求+# 按模型 id 索引(id 见 models/*.yaml)。给某个模型写复刻提示词时照这里改写:`rea-video models <id>`。+# 内容来自厂商提示词指南和第三方指南,没有逐条实测;basis 标明主要来源,unverified 列出没核实或来源互相矛盾的地方。+# 字段:structure 结构 / language 语言 / length 长度 / multi_shot 多镜头和时间 / references 参考素材怎么指代 /+# dialogue 台词和声音 / negatives 不想要的内容怎么写 / camera 运镜 / frame_mode 首帧、首尾帧模式下文字写什么 /+# frames 对帧图和参考图的要求 / rewriter 自动改写开关 / pitfalls 已知问题 / unverified 待核实 / sources 来源++# ---------------------------------------------------------------- 关键帧通用做法+keyframes:+ - 首帧模式下文字只写运动和运镜,不重复描述画面里已有的东西;重复描述会削弱运动(Runway、Google、Wan、混元、Kling、海螺的指南一致;Wan 3.0 例外,可以带剧情和台词)+ - 首帧决定输出画幅的模型(Seedance 2.5、Wan):帧图先裁到目标比例;首尾帧尺寸保持一致,否则尾帧会被拉伸或裁切+ - 帧图分辨率不低于输出分辨率;避开淡入淡出、转场和运动模糊的帧;模糊的手和脸会在生成里被放大+ - 帧里的字幕、花字、Logo、水印先擦掉再用,字和 Logo 后期再叠;小字一动就会变形+ - 首帧选一个能接着动的姿势,动作到顶点的那一帧没有余地;镜头要推近就把首帧取宽一点,主体要往哪边走就在哪边留空+ - 首尾帧保持同一构图和主体、只变一处;差得太远会被当成切镜或变形(Kling 官方:两帧尽量相似)。差别大的拆成两段+ - 上一段尾帧接下一段首帧会逐次变糊,人脸最明显:接力次数尽量少,能回到原始清晰帧就回;接缝处前一段去掉末尾约 6 帧、后一段去掉第 1 帧(Seedance 官方)+ - 人物参考:一张正脸特写加一张全身;Seedance 官方不建议用三视图 / 多视图+ - 真人脸:Seedance 2.x 不收带真人脸的参考图和视频,原片抽出的真人帧不能直接用;Google Omni 不收部分可识别人物。按各平台的授权人像、虚拟人像或风格化角色的路走+ - 分镜九宫格:先出一张网格图再逐格裁开放大,各自做图生视频;整张网格当首帧效果不稳,当参考图可以(Seedance 全能参考有官方示例)++# ---------------------------------------------------------------- 视频模型+models:+ seedance-2.5:+ basis: vendor+ structure: >-+ 四块:素材指代 → 一句话概述(主体 + 地点 + 事件 + 题材 / 风格 + 特殊运镜)→ 具体情节(按时间戳或「镜头 N」分段,逐段写画面、运镜、动作、台词、音效)→ 结尾写全程不变的东西(机位、环境、声音、氛围)+ language: 中文、英文都支持,官方没说哪个更好;台词语言要统一+ length: 中文 500 字以内,英文 1000 词以内,超出会丢细节+ multi_shot: >-+ 「镜头 N」或整数秒时间戳都可以:「0-3 秒…3-7 秒…」,首尾相接不留空;也认「第 2 秒…」「3 秒后…」。不要用时间戳写频率(「一秒摇头 3 次」)。转场写触发点和方式。时间戳是节奏参考,不是逐帧精确+ references: >-+ 素材按类型和上传顺序编号:方舟 API 写「图片1 / 视频1 / 音频1」,即梦 App 用 @图片1,fal 用 @Image1。每个素材都要用文字说明它管什么,人多时列清单;可以写明不取什么(「不采用图片背景」)。资产库素材在提示词里仍写「图片1」,不写资产 ID。1–5 个主体最稳+ dialogue: >-+ 「角色台词(情绪):"内容"」,例如 男主播:"…";背景音乐写「背景音乐:…」。台词后面不要再跟语气、表情、动作说明,也不要复述台词,否则容易出字幕。中英文以外的台词先写语言(「女孩用日语轻声说:…」)。多人时写明谁说、谁闭嘴+ negatives: >-+ 没有负面提示词字段。尽量正面描述;字幕和声音可以直接写「不要字幕」「无 bgm,只生成环境音和动作音」「不要任何声音」。BGM 禁令会漏,开头和结尾各写一遍,并列出同义词(BGM、配乐、氛围铺底音)+ camera: >-+ 直接用标准术语:大全景到特写;推、拉、摇、移、跟、环绕、俯冲、手持晃动;低角度、俯视、第一人称;一镜到底、希区柯克变焦、FPV、子弹时间。写明镜头是固定还是运动;固定写「固定镜头」。运镜和主体动作分成两句+ frame_mode: >-+ 要帧严格一致就用首帧 / 首尾帧模式(role=first_frame / last_frame),这时 ratio 只能是 adaptive,输出比例跟首帧,且不能再传参考图、视频、音频。要同时用参考素材就走全能参考,写「图片 3 为首帧,图片 5 为尾帧」,结果只是近似。多关键帧开头写「以图片 1 至图片 7 的顺序作为关键帧」。文字写接下来的运动、运镜和声音+ frames: 宽高比 0.4–2.5,边长 300–6000 px,30 MB 以内;参考图分辨率不要高于输出分辨率;分镜图用简单线稿,图上少放文字+ rewriter: API 没有改写开关+ pitfalls:+ - 全能参考下,提示词里出现「编辑视频、增加、加上、删除、去掉、修改、替换、改成、延长、延续、续写」会被判成编辑或续写任务;普通复刻避开这些词,或设 omni_reference_task_type=reference+ - 参考视频带字幕时生成结果容易出字幕+ - 画面里的英文单词会拼错,把字母拆开写;中文错字就把文字做成参考图传入+ - 强烈情绪词会让眼睛发光,换成温和的词+ - 参考素材按角色出场顺序上传,否则角色会对错+ - 30 秒的长镜头里,开头说一次的特征保持不住,在主要段落重复一遍;时间线留空的段落不受控+ - 水、回声一类的词会让声音里出现水波噪声+ unverified:+ - 2.5 是否还认 2.0 的四种声音符号,各来源说法不一+ - 最多能写几个镜头没有说明+ sources:+ - https://ark.volcengine.com/region:cn-beijing/docs/seedance-2-5-prompt-guide+ - https://docs.volcengine.com/docs/82379/2607689+ - https://docs.volcengine.com/docs/ark/seedance-2-5?lang=zh+ - https://docs.volcengine.com/docs/ark/create-video-generation-task-api?lang=zh+ - https://docs.volcengine.com/docs/ark/seedance-portrait-asset-guide?lang=zh+ - https://fal.ai/learn/devs/seedance-2-5-prompting-guide+ - https://runway.com/resources/seedance-2-5-prompt-guide++ seedance-2.0:+ basis: vendor+ structure: 精准主体 + 动作细节 + 场景环境 + 光影色调 + 镜头运镜 + 视觉风格 + 画质 + 约束条件+ language: 中文、英文;台词语言统一,不要中英混用;不要整段贴剧本+ length: 中文 500 字以内,英文 1000 词以内+ multi_shot: >-+ 用「镜头 1 / 镜头 2 / 镜头 3」,每个镜头写运镜、动作、地点、声音。不要给镜头写秒数:官方说对精确时间的支持不稳定,硬限时长可能出异常。对话戏适合一镜到底,快动作拆成几段再拼+ references: >-+ 先定义再复用:「将图片1中的…定义为主体1」,或简写「张三@图片1」,每个主体带 2–3 个稳定特征;最重要的参考放最前面。模板:「参考图片N中的主体N,生成…」「参考视频N中的动作 / 运镜 / 风格 / 音效,生成…」「参考音频N中的音色,生成…」。即梦全能参考可以写「@图片1 作为首帧,@视频1 参考镜头语言,@音频1 用于配乐」。建议 1–2 张人物图、1 张场景图、1 段运镜视频、1 段音频,不要塞满+ dialogue: >-+ 四种符号:音乐(背景中播放着…),音效 <远处传来狗叫声>,台词 {你好,世界},字幕【第一章:启程】。其他语言写「用日语说道{…}」。指定音色写「使用@音频1…的音色说」,音色会有偏差+ negatives: >-+ 没有负面提示词字段,约束写在末尾:「保持无字幕」「避免生成任何文字或字幕」「不要生成Logo」「不要生成水印」。官方承认做不到完全不出字幕,横屏比竖屏出得少+ camera: 直接用标准运镜术语(中景、特写、全景、缓慢推镜、平稳横移、固定镜头);一个镜头只指定一种运镜+ frame_mode: >-+ 要严格保住首尾帧就用首尾帧模式(role=first_frame / last_frame),不能和参考素材同传;写「首帧为图片1」是宽松的替代。编辑或延长视频时直接写「视频N」,不要写「参考视频N」,否则会被当成参考任务+ frames: 人物参考用大头照加全身照,不建议多视图;脸在图里太小会掉脸+ rewriter: API 没有改写开关+ pitfalls:+ - 容易出分身 / 双胞胎,末尾加一句全局禁止+ - 多音字、生僻字、形近字会读错+ - 写实参考图会把风格化画面拉回实拍+ - 参考超过 4 个人时稳定性下降+ - 反复续写后人脸会劣化+ sources:+ - https://docs.volcengine.com/docs/82379/2222480+ - https://docs.volcengine.com/docs/ark/seedance-2-0?lang=zh+ - https://docs.volcengine.com/docs/ark/create-video-generation-task-api?lang=zh++ kling-4.0:+ basis: vendor+ structure: >-+ 四块:[Asset Roles] 每个素材管什么 → [Overall Settings] 整体设定 → [Sequence of Events] 按时间写事件,再写运镜 → [Audio] 声音。先用一句话写清主体、场景、动作、情绪,再只补运镜、时间、声音和要保持不变的东西+ language: 没有指定提示词语言;台词和画面文字支持中、英、日、韩、西、葡、德、法、印地语,中文方言和英语口音+ length: 最多 8000 token+ multi_shot: >-+ 默认自动分镜,没有开关。镜头直接写在提示词里:「Shot 1 (5s): …」或「0–3 seconds: …」。要一镜到底必须写明 No cuts。不收 3.0 那种结构化分镜字段+ references: >-+ 素材按上传顺序编号:@Image1、@Video1、@Element1。每个素材配一句职责("@Image1 defines the scene. Preserve its spatial layout, furnishings, and lighting."),只写编号不写职责结果不稳。学运镜和节奏写 "Use @Video1 as the reference for camera movements and shot pacing."。要改原视频写 "Edit @Video1",并加 "Keep everything else unchanged"+ dialogue: 台词用引号,按目标语言原文写,并描述说话人的年龄、语气、语速、情绪;声音放在 [Audio] 块里,分台词 / 旁白、环境声、音乐、音效。字幕只有明确要求才出+ negatives: 官方说负面指令会增加出错;只保留两条必要的:不要字幕、不要背景音乐(要单镜头时再加不要切镜)+ camera: 自然语言描述(push-in、pull-out、pan、tracking、orbit、handheld);没有单独的运镜参数;可以从参考视频取运镜+ frame_mode: >-+ 关键帧模式最多 10 张(首、尾、中间任意时间):"Use @Image1 as the first frame and @Image2 as the last frame.",中间帧写「X–Y sec | Keyframe 1: 发生什么」。文字只写帧与帧之间的运动。关键帧模式不能加参考素材,和 Omni Reference 不能同用。昼夜这类大跳变拆成两段+ frames: 画幅跟第一张关键帧;图片 30 MB 以内,宽高比 2:5–5:2。Flash 版只收首帧+ rewriter: 没有开关;很短的提示词会被模型自动扩写+ pitfalls:+ - 抽象词(premium look)没有效果+ - 不写保持项,其他元素会跟着变+ - 帧图里有字时加一句 "Do not redraw the letters."+ unverified:+ - 官方 API 文档没读到,字段名和关键帧最小分辨率待核实+ sources:+ - https://kling.ai/quickstart/kling-4-model-user-guide+ - https://www.krea.ai/models/kling-4/prompt-guide+ - https://fal.ai/learn/tools/what-is-kling-4-0++ kling-3.0:+ basis: third-party+ structure: 没有固定公式;按 主体、动作、场景、运镜、光线、情绪 来写,示例顺序是 场景 → 主体 → 运镜 → 动作 → 台词+ language: 中文、英文都可以;台词支持中、英、日、韩、西和方言口音+ length: 整体 2500 字符以内;自定义分镜每个镜头 512 字符以内,超出被截断+ multi_shot: >-+ API 用结构化分镜:shot_type=customize,multi_prompt 里每镜一条 {index, prompt, duration},1–6 镜,时长加起来等于总时长(3–15 秒),这时顶层提示词不起作用。shot_type=intelligence 是模型自己分镜,可能只出一个镜头。写在提示词里用「[Shot 1: Wide shot] …」,先交代场景再按顺序列镜头+ references: 主体(Element)在界面上绑定到首帧,首帧和首尾帧模式下最多 3 个;主体带了声音就不要在提示词里再设音色+ dialogue: >-+ 「名字(语气,语言):"台词"」,例如 Mom (softly, in a surprised tone): "…";旁白写 Voiceover (…):;方言写 said in Cantonese:。每个角色用固定的名字,不用代词;动作写在台词前;用 Immediately 这类连接词避免两句台词粘在一起。环境声写进场景句+ negatives: 有独立的 negative_prompt 字段(2500 字符以内);Turbo 版不认,写进提示词+ camera: 自然语言(slow push-in、pan、tilt、tracking、dolly-in、handheld),一个镜头一种运镜+ frame_mode: 把图当锚点,只写画面怎么变化;身份、布局、图里的文字会被保留+ frames: JPEG / PNG 不带透明通道,边长 300–8000 px,宽高比 1:2.5–2.5:1,10 MB 以内;输出画幅跟输入图。Turbo 版不收尾帧和主体+ rewriter: 没有改写开关;cfg_scale(默认 0.5)是唯一的遵循度控制+ pitfalls:+ - 动作没有绑定到具名角色时会说错人+ - 自动分镜可能塌成一个镜头+ unverified:+ - 声音参考的写法(<<<voice_1>>>)只在非官方镜像里见到+ - 自定义分镜能否和尾帧同用+ sources:+ - https://kling.ai/blog/kling-ai-prompt-guide+ - https://kling.ai/quickstart/klingai-video-3-model-user-guide+ - https://blog.fal.ai/kling-3-0-prompting-guide+ - https://help.aliyun.com/en/model-studio/kling-video-generation-api-reference/++ kling-o3:+ basis: vendor+ structure: >-+ 参考生成:[主体的细节描述] + [主体之间的互动 / 动作] + [环境或背景] + [光线、风格等视觉方向]+ language: 中文、英文都可以+ length: 2500 字符以内+ multi_shot: >-+ 「Shot 1 (2s): Wide shot, @Boxer A and @Boxer B face off…」或「[00:00 - 00:02] Medium shot: … Audio: …」,总长 15 秒以内。带参考视频时只能用自动分镜;视频编辑不支持多镜头+ references: >-+ App 里用 @Image1 或 @主体名("@Alan walks in holding @Samoyed");官方 API 用 <<<image_1>>>、<<<element_1>>>、<<<video_1>>>,按数组顺序编号;fal 用 @Image1 / @Element1。模板:"Take @Image1 as the start frame, take @Image2 as the end frame, 描述两帧之间的变化";"Take @Image as the start frame. Generate a new video following the camera movement of the @Video";"Based on @Video, generate the next shot: …"。同一份提示词里标记写法保持一种+ dialogue: >-+ 台词写「@角色 says with a barely contained smile, "…"」或「Goro: "…"」;音效单独一行 Audio:。主体绑定了声音就不用再指定+ negatives: API 有 negative_prompt 字段+ camera: 自然语言;可以从参考视频取运镜+ frame_mode: 用上面的首尾帧模板,文字写两帧之间的变化;只给尾帧不支持;超过 2 张图时不支持尾帧+ frames: 图片 300 px 以上,10 MB 以内;不带视频时图片加主体最多 7 个,带视频时 4 个;视频 1 段,3–10 秒+ rewriter: 没有找到开关+ pitfalls:+ - 传了参考视频就不能开原生音频+ - 编辑模板:"Add @Element to @Video" "Remove … from @Video" "Change @Video to … style",和生成提示词是两种写法+ sources:+ - https://kling.ai/quickstart/klingai-video-3-omni-model-user-guide+ - https://kling.ai/quickstart/klingai-video-o1-user-guide+ - https://help.aliyun.com/en/model-studio/kling-video-generation-api-reference/++ veo-3.1:+ basis: vendor+ structure: >-+ [Cinematography 镜头] + [Subject 主体] + [Action 动作] + [Context 环境] + [Style & Ambiance 风格氛围];短片一条提示词只写一个集中的瞬间+ language: 提示词用英文+ length: 官方没给上限;经 Runway API 调用时 1000 字符+ multi_shot: >-+ 每个镜头一行时间戳:「[00:00-00:02] …」,官方示例是 8 秒里 4 个 2 秒镜头,行内可带 SFX: 和 Emotion:。单段只能 4 / 6 / 8 秒+ references: >-+ 没有标记语法,用句子说明:"Using the provided images for the detective, the woman, and the office setting, create a medium shot of…"。最多 3 张,同一个人物 / 角色 / 商品;用参考图时只出 8 秒。Flow 里用 @ 指代+ dialogue: >-+ 「A woman says: My name is Clara.」——说话动作后加冒号、不加引号,官方把这个写法和避免画面出字绑在一起。声音单独成句:「SFX: thunder cracks in the distance」「Ambient noise: …」。一个镜头一个人说话,台词短,说话人面向镜头;多人对话拆成几段+ negatives: 有独立的 negativePrompt 字段:只列名词(subtitles, captions, on-screen text),不写 no / don't+ camera: >-+ static、pan、tilt、dolly、truck、pedestal、zoom、crane、aerial / drone、handheld、whip pan、arc;镜头语言 wide-angle、telephoto、shallow depth of field、rack focus+ frame_mode: 图已经给了主体、场景、风格,文字只写运动;首尾帧模式写两帧之间的过渡和声音+ frames: JPEG / PNG,20 MB 以内;画幅 16:9 或 9:16+ rewriter: 有 enhancePrompt,默认开;3.1 能否关掉没核实+ pitfalls:+ - 有台词时容易烧出乱码字幕:用冒号写法,并把 subtitles, captions 放进 negativePrompt+ - 中文台词的口型成功率低(社区实测),这类镜头建议后期配音或口型重配+ unverified:+ - 官方两份文档对台词用冒号还是引号说法相反,这里取冒号+ - 预览版已从 Gemini API 下线,只剩 Vertex 上的正式版+ sources:+ - https://cloud.google.com/blog/products/ai-machine-learning/ultimate-prompting-guide-for-veo-3-1+ - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/video/video-gen-prompt-guide+ - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/video/best-practice+ - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/veo/3-1-generate++ gemini-omni-flash:+ basis: vendor+ structure: 没有公式,自然语言写清场景、运镜、光线、氛围+ language: 英文(其他语言官方未评估)+ length: 官方没给上限+ multi_shot: >-+ 默认会自己切镜;要单镜头必须写 "In a single continuous shot" 或 "No scene cuts"。时间码写「[0-5s] … [5-10s] …」,或自然语言 "After 3 seconds, …"。单段 3–15 秒。续写时 0 秒从续写部分开始算+ references: >-+ 用自然语言说明每张图的用途:"The person shown in the reference image enters the scene" "Use the image as the first frame"。不要写 <FIRST_FRAME> 这类控制串(Google 已弃用;fal 上仍用 <IMAGE_REF_0>,按平台来)。最多 6 张参考图(每个角色 3 张、2 个角色),参考视频每段 3 秒以内,不收音频参考+ dialogue: >-+ 台词同 Veo,用冒号不加引号;声音用句子描述:"Sound design: gentle breeze… No dialogue." "Include calm background music"。画面里的文字用引号+ negatives: 没有负面字段,直接在提示词里写短句:"No dialogue" "No extra sound effects" "No scene cuts"+ camera: 自然语言+ frame_mode: 两张图是插值(3–10 秒),文字写过渡;首帧模式只写运动。编辑时提示词越短越好,加 "Keep everything else the same."+ frames: 用高分辨率图;输出 16:9 或 9:16+ rewriter: 没有找到开关+ pitfalls:+ - 不收部分可识别人物的上传+ - 描述过细的编辑提示词会带来额外改动+ sources:+ - https://aistudio.google.com/docs/omni+ - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/video/best-practice++ vidu-q3:+ basis: third-party+ structure: 主体 / 场景 + 场景描述 + 环境描述 + 画风 / 媒介;用自然的句子,主体少一点,关键风格词可以重复+ language: 没有指定;语音输出支持中、英、日+ length: 文生、图生、首尾帧 20000 字符以内(Turbo 文生 5000);参考生视频 5000+ multi_shot: 支持智能切镜,没有分镜字段也没有官方写法,用句子说明在哪里切+ references: >-+ 主体模式:每个主体有名字和最多 3 张图,提示词里用 @主体名 指代,最多 7 个主体。直接传图时按顺序说明:"Image 1 is [scene]; Image 2 is [character]; Image 3 is [prop]"+ dialogue: >-+ 没有官方格式。第三方建议:台词每句 5–9 个词,标点干净;音效写 "SFX: …";配乐写节奏或风格+ negatives: 没有负面字段+ camera: pan、tilt、zoom、static、orbit、FPV、aerial;一个镜头一种运镜+ frame_mode: 只写运动和运镜+ frames: 首尾帧分辨率之比要在 0.8–1.25 之间;图片 50 MB 以内,宽高比不超过 1:4 / 4:1;参考图 128×128 以上+ rewriter: 图生视频的 is_rec 保持 false,开了模型会忽略你的提示词自己写+ pitfalls:+ - 一口气的长台词或嘴被遮挡时口型会漂+ unverified:+ - 没有官方的 Q3 提示词指南,结构和台词建议来自第三方+ sources:+ - https://platform.vidu.com/docs/api-reference/video-models/vidu-q3/reference-to-video+ - https://platform.vidu.com/docs/api-reference/video-models/vidu-q3/image-to-video+ - https://platform.vidu.com/docs/api-reference/video-models/vidu-q3/start-end-to-video+ - https://help.aliyun.com/en/model-studio/vidu-video-generation-prompt-guide++ pixverse-v6:+ basis: vendor+ structure: 三句:第一句 主体 + 动作 + 地点;第二句 运镜 + 风格;第三句 约束。核心动作放最前+ language: 什么语言都收,建议英文+ length: 50–80 个词起步;fal 上限 2048 字节(中文一个字占 3 字节)+ multi_shot: 多镜头是一个开关(generate_multi_clip_switch),没有分镜字段;提示词用 "Start with… Cut to… Shift to… End with…" 分段,最后加一句一致性约束("Preserve the same warm color grade across all shots")。首尾帧过渡、续写、融合模式下不能开+ references: 融合模式用 @Subject1–8、@Background1–2、@Video1–2,每个标记都要对应一份传入的参考,否则请求被拒;带参考视频时输出长度跟视频+ dialogue: >-+ 没有官方台词格式;音效和环境声用简短的 "Audio: …" 行。第三方认为它的声音以环境音为主,台词放后期+ negatives: App 里所有文字都当正面指令,写 no X 反而强化 X,改成正面约束("camera stays steady");部分 API 平台有 negative_prompt 字段+ camera: 自然语言,一个主运镜加一个质感词;叠多个运镜会抖+ frame_mode: 不重复描述图,写运动、运镜和一条一致性规则;首尾帧过渡加一句什么保持不动,两帧要是同一个连续主体+ rewriter: thinking_type(enabled / disabled / auto)是提示词优化开关,按需要显式选+ pitfalls:+ - cinematic、fast、epic 这类词没有控制作用+ - 长提示词靠后的细节会丢+ unverified:+ - 官方平台文档打不开,参数来自第三方+ sources:+ - https://pixverse.ai/en/blog/ai-video-prompt-guide-7-tested-fixes+ - https://runware.ai/docs/models/pixverse-v6/guides/multi-shot-storytelling+ - https://docs.comfy.org/built-in-nodes/PixverseV6FusionVideoNode.md++ minimax-h3:+ basis: vendor+ structure: >-+ 分字段写:integrated_multimodal_description:(画面和动作)→ overall_soundscape:(环境声和音效,1–4 句)→ non_diegetic_music:(配乐的乐器和速度,1–3 句,没有写 N/A)。两个声音字段不要留空,留空容易出多余的人声+ language: 提示词用英文;台词和画面文字保留原语言+ length: 7000 字符以内+ multi_shot: >-+ 「[Shot 1] …」不带时间;后面的镜头写「[Shot 2] At 00:03.500, the camera cuts to...」,用单个递增的时间点,不用时间段。叠化和淡入淡出只在需要时写+ references: >-+ 标记 <Subject N>、<Picture N>、<Video N>、<Audio N>;参考生成的提示词分六段:subject_definitions、summary、retention_analysis、detailed_description、overall_soundscape、non_diegetic_music,并标明保留程度(fully_preserved / partially_preserved / attribute_transfer / weak_reference)。托管 API 也收白话写法("following the motion in reference video 1")+ dialogue: >-+ 说话人编号 (S1)、(S2),台词放在 <d>[English] I get off at the next station.</d> 里,语气和动作写在标签外;旁白写 "says in an off-screen voiceover" 并说明嘴闭着。英文双引号在这里表示画面上的文字,不是台词。台词里不要用省略号+ negatives: 没有负面字段;列禁止项会把这些概念带进画面,用正面描述+ camera: 自然语言+ frame_mode: >-+ 第一行写对齐句,再空一行:图生视频 "For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced.";首尾帧把 <Picture N> 对到具体秒数。帧模式和参考模式不能混用+ frames: 图片边长 256–5760 px,宽高比 0.4–2.5,30 MB 以内;参考最多 9 图、3 段视频(共 15 秒)、3 段音频+ rewriter: 只有 H3 Max 有 prompt_expansion_mode(disabled / balanced / quality),要精确控制就设 disabled+ pitfalls:+ - 带音频参考时容易说错人,把台词绑到看得见的动作上+ unverified:+ - 托管 API 是否必须用分字段格式(fal 的示例是普通段落)+ sources:+ - https://huggingface.co/MiniMaxAI/MiniMax-H3/raw/main/docs/VIDEO_PROMPT_WRITING_GUIDE_base_en.md+ - https://huggingface.co/MiniMaxAI/MiniMax-H3/raw/main/docs/VIDEO_PROMPT_WRITING_GUIDE_ref_en.md+ - https://platform.minimax.io/docs/api-reference/video-generation-v2-create+ - https://docs.comfy.org/tutorials/video/minimax/minimax-h3-prompt-guide.md++ hailuo-2.3:+ basis: vendor+ structure: 官方没有公式;常用顺序是 景别 / 运镜 → 主体 → 动作 → 场景 / 光线,一段 6 秒只写一个动作节拍+ language: 没有说明+ length: 2000 字符以内+ multi_shot: 不支持,一次一个镜头,多镜头拆成多次生成+ references: 不支持参考素材+ dialogue: 没有音频,台词和音效不要写进提示词+ negatives: 没有负面字段+ camera: >-+ 用方括号指令,拼写固定:[Truck left] [Truck right] [Pan left] [Pan right] [Push in] [Pull out] [Pedestal up] [Pedestal down] [Tilt up] [Tilt down] [Zoom in] [Zoom out] [Shake] [Tracking shot] [Static shot]。同一个括号里的指令同时生效([Pan left,Pedestal up],最多 3 个),分开的括号按顺序执行+ frame_mode: 不重复描述图,只写运动和运镜,并写明什么保持不动+ frames: 只收首帧,没有尾帧;JPG / PNG / WebP,20 MB 以内,短边 300 px 以上,宽高比 2:5–5:2+ rewriter: prompt_optimizer 默认开,用方括号指令或要精确控制时设为 false+ pitfalls:+ - 时长只有 6 或 10 秒(1080P 只有 6 秒)+ sources:+ - https://platform.minimax.io/docs/api-reference/video-generation-t2v+ - https://platform.minimax.io/docs/api-reference/video-generation-i2v+ - https://www.eachlabs.ai/blog/how-to-write-better-hailuo-2-3-prompts++ wan-3.0:+ basis: vendor+ structure: >-+ [总体描述] + [参考素材引用:图 N / 视频 N / 音频 N] + [分镜 N(起-止秒):主体 + 场景 + 运动 + 美学控制] + [台词:xx 说:"xxxx"] + [音效 / BGM] + [风格 / 情绪] + [负向清单],写不到的板块直接跳过+ language: 中文、英文+ length: 官方没给 3.0 的上限(2.7 是 5000 字符)+ multi_shot: >-+ 「第1个镜头[0-3秒]… 第2个镜头[4-6秒]硬切转场,固定机位,…」;[起-止] 和(起-止)都可以,全篇用一种;各镜头首尾相接,每段 2–5 秒。段尾写「硬切转场」「叠化转场」,或下一段开头写「从上一分段的最后一帧无缝衔接」。要单镜头写「生成单镜头」。不要写模型控制不了的高频动作+ references: >-+ 「图1 / 视频1 / 音频1」(英文 Image 1 / Video 1,字母和数字之间有空格),图和视频分开编号。说明各自管什么:「将军形象参考图1,面部神态参考图2…音色参考音频1」「参考视频的运镜方式」「仅参考图2的色调与光影,不参考人物」。最多 10 图、5 段视频、5 段音频+ dialogue: >-+ 「角色 + 说话动词 + 冒号 + 引号内容」:图1说:"…";图2回答:"…";画外音:"…"。可以加情绪、语调、语速、音色、口音。不写台词模型会自己加,不要就写「无台词」「无背景音乐」。音色参考写一次对该角色全部台词生效;要对口型写「口型同步」+ negatives: 写在提示词末尾的「负向清单:无字幕水印…」,只写不想出现的,没有就留空,不要重复正向已经写明的+ camera: >-+ 说大白话:推近、拉远、环绕、手持跟拍;固定写「固定镜头,摄影机静止,机位不变」;镜头写「85mm 长焦,浅景深」「24mm 广角,深焦」;慢动作写「高速摄影(1000fps 慢动作)」+ frame_mode: 首帧 / 首尾帧模式下可以写动态过程、剧情、台词和运镜,也可以分时间段;两帧差别大时写清变化过程。首尾帧和参考素材不能同传+ frames: 输出画幅跟首帧,要 3:4 就传 3:4 的首帧+ rewriter: prompt_extend 是自动改写;已经按上面结构写好的提示词建议关掉+ pitfalls:+ - 编辑视频是另一种写法:「编辑视频,视频1中的 xxx 改为 yyy,画面其余部分保持不变」,一次改一项最稳+ unverified:+ - 切镜是否精确落在写的时间上没有说明+ sources:+ - https://help.aliyun.com/zh/model-studio/wan3-video-generation-prompt-guide+ - https://help.aliyun.com/zh/model-studio/wan3-video-generation-guide+ - https://help.aliyun.com/zh/model-studio/text-to-video-prompt++ wan-2.7-edit:+ basis: vendor+ structure: 编辑指令:说清改什么、改成什么,其余保持不变;一次改一项+ language: 中文、英文+ length: 5000 字符以内;negative_prompt 500 字符以内+ references: 「视频1」「图1」(英文 Video 1 / Image 1);1 段视频(2–10 秒)加最多 4 张参考图+ dialogue: audio_setting 选 origin 保留原声,auto 由模型处理+ negatives: 有独立的 negative_prompt 字段+ rewriter: prompt_extend 默认开;指令已经写清楚时关掉+ sources:+ - https://help.aliyun.com/zh/model-studio/wan-video-editing-api-reference+ - https://help.aliyun.com/zh/model-studio/text-to-video-prompt++ wan-2.2:+ basis: vendor+ structure: >-+ 主体 + 场景 + 运动 + 美学控制(光源、光线、景别、视角、镜头、运镜)+ 风格化。有风格就放最前,美学词用标签,后面接主体、动作过程、背景。不写氛围、感受一类的文学描写+ language: 中文、英文都可以(官方负面词和改写默认是中文)+ length: 文生视频 60–200 字,图生视频 100 字以内;百炼上限 800 字符+ multi_shot: 不支持,一次一个镜头+ references: 文生 / 图生不支持参考标记+ dialogue: 没有音频,不写台词和音效+ negatives: >-+ 独立字段,官方标准负面词:色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走。用加速 LoRA(CFG=1)时负面词不生效+ camera: >-+ 官方词表——景别:特写、近景、中近景、中景、中全景、全景、极端全景;机位:过肩、低角度、高角度、俯视、航拍、平拍、仰拍;构图:中心构图、左 / 右侧重构图、对称构图;光线:柔光、硬光、侧光、顶光、边缘光、背光;运镜:镜头推进、镜头拉远、镜头左移、镜头上摇、环绕运镜、固定镜头。提示词里已经写了运镜就不要再加拍摄角度标签+ frame_mode: 提示词 = 运动 + 运镜;画面里已经有的东西从提示词里删掉;要镜头不动写「固定镜头」+ frames: 输出画幅跟首帧;首尾帧分辨率可以不同+ rewriter: 开源版默认关(官方建议开);百炼的 prompt_extend 默认开,已经按结构写好时关掉+ pitfalls:+ - 加速 LoRA 会压掉运动,画面像动态壁纸;社区做法是高噪阶段降低 LoRA 强度并把 CFG 提到 2–3.5+ sources:+ - https://help.aliyun.com/zh/model-studio/text-to-video-prompt+ - https://github.com/Wan-Video/Wan2.2/blob/main/wan/utils/system_prompt.py+ - https://github.com/Wan-Video/Wan2.2/blob/main/wan/configs/shared_config.py++ ltx-2.5:+ basis: vendor+ structure: >-+ 一整段英文,按时间顺序、现在时:主要动作 → 细节动作 → 外观 → 环境 → 运镜 → 光线 → 变化。不用 "Audio:" "Visual:" 这类标签;景别、运镜、视角写进句子里,不要写成 "medium shot, static camera —" 这样的前缀;不写推测出来的情绪,写看得见的动作+ language: 英文;台词保留原语言,原样放在引号里+ length: 150–220 个词,视频越长提示词越长+ multi_shot: >-+ 仍然是一段话,不用镜头列表、编号或剧本格式;在句子里点明剪辑("A hard cut transitions to…"),切后重新交代景别,沿用同一套称呼,说明声音是否延续。建议 2–4 个镜头+ references: 没有参考标记+ dialogue: 台词放引号里,写明语言或口音;长台词拆成短句,句间插一个表演提示(眼神、停顿、嗓音、动作)。有音频输入时,音频决定时间结构,提示词只写画面+ negatives: 有默认的英文负面词;蒸馏版(CFG=1)没有负面输入+ camera: >-+ follows、tracks、pans across、circles around、tilts upward、pushes in、pulls back、overhead view、handheld movement、over-the-shoulder、static frame;"slow dolly in" 和 "handheld tracking" 最稳。镜头不动要明说 "the camera remains static";写出运镜之后主体看起来什么样。数字规格(每秒 2 度)无效+ frame_mode: 开头如实对上首帧画面,写成一个连续镜头("Single continuous take");描述和图不符会引起切镜+ frames: 宽高都要能被 32 整除,帧数是 8k+1+ rewriter: enhance_prompt 默认关+ pitfalls:+ - 画面里可读的文字和 Logo、混乱的物理、很多角色、互相矛盾的光线都容易出问题+ unverified:+ - 声音描述放句中还是放末尾,官方不同版本的说法不一+ sources:+ - https://ltx.io/blog/ltx-2-5-prompt-guide+ - https://ltx.io/blog/prompting-guide-for-ltx-2+ - https://ltx.io/blog/directing-dialogue-and-acting+ - https://github.com/Lightricks/LTX-2/blob/main/README.md++ hunyuanvideo-1.5:+ basis: vendor+ structure: >-+ 文生视频:主体 + 运动 + 场景 + [景别] + [运镜] + [光线] + [风格] + [氛围]。复杂动作:场景设定 + 按顺序拆动作(First… then… next… meanwhile… finally…)+ 关键细节。情绪词换成动作细节;方向用画面坐标(画面左侧 / 右侧、前景 / 背景);多个角色用属性或位置区分+ language: 中文、英文都可以+ length: 可以写长(改写后约 350 个词)+ multi_shot: 没有多镜头写法,一次一个镜头+ references: 没有参考标记+ dialogue: 没有音频。引号在这里表示画面上的文字:中文提示词用“”,英文用 ""+ negatives: negative_prompt 默认是空的,没有官方负面词;蒸馏版 CFG=1+ camera: >-+ The camera moves upward / downward、moves to the left / right、moves forward、moves back、tilts up / down、pans to the left / right、circles around、follows、remains static;中文:镜头向前推进、镜头缓缓拉远、镜头跟随、镜头环绕、镜头静止不动、手持镜头+ frame_mode: 图生视频:主体的运动 + 场景的运动 + [运镜];不加用户没要求的运镜+ rewriter: rewrite 默认开;已经按上面结构写好时可以关+ sources:+ - https://github.com/Tencent-Hunyuan/HunyuanVideo-1.5/blob/main/assets/HunyuanVideo_1_5_Prompt_Handbook_EN.md+ - https://github.com/Tencent-Hunyuan/HunyuanVideo-1.5/blob/main/README.md++ runway-gen-4.5:+ basis: vendor+ structure: >-+ 文生视频:"[Camera] shot of [subject] [action] in [environment]. [补充描述]";图生视频:"The camera [运镜] as the subject [动作]. [补充描述]"。不认 JSON 格式+ language: 什么语言都收,英文最稳+ length: 1000 字符以内,不要写成多段长文+ multi_shot: >-+ 一次当作一个场景。时间戳只用来排动作顺序:文生「[00:00 through 00:02] …」,图生「[00:01] X occurs. [00:03] Y occurs.」或 "X occurs, then Y occurs. Finally, Z occurs.",不保证精确。出现多余切镜时加长时长或写 "Continuous, seamless shot"+ references: Gen-4.5 生视频不收参考图;要保持角色一致,先用 Gen-4 References 出首帧(提示词里用 @名字 指代保存的参考),再拿首帧生视频+ dialogue: 没有原生音频,提示词里的台词和音效去掉;要口型用 Act-Two(输入一段表演视频,不用文字)+ negatives: 不支持否定,可能得到相反结果;改写成正面("sharp focus" 而不是 "not blurry","The locked-off camera remains perfectly still.")+ camera: 标准运镜词都认;镜头不动写 "Locked camera. The camera remains still."+ frame_mode: 几乎只写运动,不描述图里已有的东西;主体用 "the subject" 或位置("The subject on the left")指代。只在引入新元素、明显变化或互动时才描述画面+ frames: 只收首帧,没有尾帧;带运动模糊或动作中段的帧会和提示词打架,先处理干净;图生画幅 1280:720、720:1280、1104:832、960:960、832:1104、1584:672+ rewriter: Enhance Prompt 是界面上的可选按钮,API 没有改写+ sources:+ - https://help.runwayml.com/hc/en-us/articles/47313737321107+ - https://help.runwayml.com/hc/en-us/articles/48324313115155+ - https://help.runwayml.com/hc/en-us/articles/47313698911891+ - https://docs.dev.runwayml.com/api/++ runway-aleph-2:+ basis: vendor+ structure: 动词 + 想要的改变,短而具体:add、remove、change、replace、re-light、re-style("Change the outfit and bag to soft yellow")。不是镜头描述+ language: 英文最稳+ references: 改一帧,模型把改动带到整段;Extra motion 只写原片里没有的运动+ frames: 原视频 2–30 秒,480p–1080p,24–30 fps+ sources:+ - https://help.runwayml.com/hc/en-us/articles/52150503729171+ - https://help.runwayml.com/hc/en-us/articles/51683104370451++ luma-ray3.2:+ basis: vendor+ structure: 运镜放最前,再写场景、发生什么、光线和风格;加一个速度词(slowly、smoothly)。动词用进行中的动作(running,不用 begins to run),现在时+ language: 英文+ length: 100 个词左右(上限 6000 字符)+ multi_shot: 没有时间戳和多镜头写法,一次一个镜头;一条提示词一种运镜+ references: 没有标记语法;有角色参考时提示词只写场景和动作,身份交给参考图+ dialogue: 没有音频,台词和音效不要写+ negatives: 只写正面,没有负面字段;避免 vibrant、whimsical、hyper-realistic 这类词+ camera: pan、tilt、dolly、zoom、tracking、crane、orbit、drone、whip pan;叠多个运镜结果会乱+ frame_mode: 用关键帧时只写变化的部分,不写静止的元素+ frames: 首尾帧只能出 5 秒;10 秒要用带帧序号的关键帧,且不能和首尾帧同用;图片 50 MB 以内,边长 8000 px 以内+ pitfalls:+ - 多主体的密集动作弱+ - 尾帧对上了,中间的运动也不一定连贯+ sources:+ - https://lumalabs.ai/news/ai-camera-movement-prompts+ - https://lumalabs.ai/learning-hub/luma-video-models-guide-ray3.14-veo-sora-kling-compared+ - https://docs.agents.lumalabs.ai/guides/video-generation++ # -------------------------------------------------------------- 图像模型(出首帧 / 关键帧)+ gpt-image-2.5:+ basis: vendor+ structure: >-+ 背景 / 场景 → 主体 → 关键细节 → 约束,并写明用途;复杂提示词分成带标签的短段或分行。相机参数只当观感参考,不会精确模拟+ language: 英文为主;中文文字的渲染官方没有说明+ references: >-+ 按序号和职责标注输入图:"Image 1: product photo… Image 2: style reference…",再写它们怎么组合("apply Image 2's style to Image 1")。改图写「只改 X,其余保持不变」,保留清单每一轮都重复一遍("Do not change her face, facial features, skin tone, body shape, pose, or identity in any way.")+ negatives: 没有负面字段,直接写 "no watermark" "no extra text"+ frames: 画面里的文字放引号里或全大写,写明字体,难拼的品牌名逐字母拼;尺寸的边长是 16 的倍数,长宽比不超过 3:1+ pitfalls:+ - 出一组关键帧:先出一张定妆图,再基于它改,只变场景和动作,每次带上 "Same facial features, proportions, and color palette" "Do not redesign the character"+ - 同一个会话里连出几张后会累积噪点,换新会话+ unverified:+ - 官方指南是按 gpt-image-2 写的+ sources:+ - https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide++ nano-banana-2.1:+ basis: vendor+ structure: >-+ [主体] + [动作] + [地点 / 环境] + [构图] + [风格],写成完整的叙述句,用一个明确的动词开头,不要堆关键词。带参考图:[参考图] + [关系说明] + [新场景]+ language: 英文为主;画面文字放引号里并写明字体风格+ references: >-+ 用白话说明每张图的职责;锁身份写 "Keep the person's facial features exactly the same as Image 1.";多人写 "Make sure to only have one of each character in each image."。最多 14 张(10 个物体、4 个角色)。改图要写明什么保持完全不变,不需要蒙版+ negatives: 不写否定,换成正面描述("empty street" 而不是 "no cars")+ frames: 分辨率 1K / 2K / 4K;不指定时输出跟输入图同尺寸;一组关键帧一张一张出,把前面出的图带进后面的提示词,并写明人物和服装不变+ pitfalls:+ - 图已经对了八成就提具体修改,不要整张重出+ - 多轮修改后画质下降+ - 偶尔不按指定比例出图+ sources:+ - https://cloud.google.com/blog/products/ai-machine-learning/ultimate-prompting-guide-for-nano-banana+ - https://aistudio.google.com/docs/image-generation+ - https://dev.to/googleai/nano-banana-pro-prompting-guide-strategies-1h9n++ seedream-5.0:+ basis: vendor+ structure: 简洁连贯的自然语言:主体 + 行为 + 环境,风格、色彩、光线、构图用短语补充;简洁准确比堆砌形容词好,可以写明用途+ language: 中文、英文+ length: 中文 300 字以内,英文 600 词以内+ references: >-+ 用「图一 / 图二」指代并写明职责:「将图一的主体替换为图二的主体」「让图一人物穿上图二的服装」「参考图二的风格,对图一进行风格转换」。要保持不变的部分必须明说(「并保持动作不变」),不用「它」这类代词。5.0 pro / flash 可以用 <bbox> 坐标指定区域+ negatives: 官方指南没有提到负面提示词+ frames: >-+ 画面里的文字放双引号里。出一组关键帧:5.0 lite / 4.x 用「一系列」「一套」「组图」或直接写数量触发组图(最多 15 张);5.0 pro / flash 不支持组图,带同一组参考图逐张出。保持人物一致:上传参考图并写「参考图中的人物形象」加新场景+ rewriter: optimize_prompt_options.mode 只有 standard(默认)和 fast,没有关闭选项+ pitfalls:+ - 细小文字渲染弱:文字要短,写明位置+ - 皮肤过度光滑,可以写「没有美颜滤镜」这类瑕疵描述+ sources:+ - https://docs.volcengine.com/docs/ark/seedream-4-0-5-0-prompt-guide?lang=zh+ - https://docs.volcengine.com/docs/ark/image-generation-api?lang=zh+ - https://docs.volcengine.com/docs/ark/seedream-5-0-pro?lang=zh++ qwen-image-3.0-pro:+ basis: vendor+ language: 只支持中文和英文+ length: 提示词 800–1300 token;negative_prompt 500 字符以内+ references: 按数组顺序用「图1 / 图2」指代:「图1中的女生穿着图2中的黑色裙子按图3的姿势坐下」;3.0 收 1–3 张输入图。要保留的部分明说(保持服装、发型、表情不变)+ negatives: >-+ 3.0 有 negative_prompt 字段。官方示例:低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲。+ frames: 中文多行和段落文字渲染强,文字放在中文引号“”里;尺寸写 宽*高,16:9 推荐 2688*1536,9:16 推荐 1536*2688;输入图边长 384–3072 px,10 MB 以内+ rewriter: prompt_extend 默认开,会改写提示词;要精确控制时关掉+ sources:+ - https://help.aliyun.com/zh/model-studio/qwen-image-edit-guide+ - https://help.aliyun.com/zh/model-studio/qwen-image-api++ flux-3:+ basis: vendor+ structure: 主体 + 动作 + 风格 + 环境,重要的放前面(越靠前权重越高);30–80 个词+ language: 英文最准;中文没有说明+ references: 按位置指代并给职责:"subject from image 1, style from image 2, background from image 3";1–10 张。改图只说要变的部分,要保留的明说("while maintaining the same facial features and hairstyle"),用具体的动词+ negatives: 不支持负面提示词,也没有 seed、guidance、prompt_upsampling 字段(多传会报错);改写成正面("sharp focus throughout")+ frames: >-+ 文字放引号里、靠前写、要短;色值前加 color 或 hex 并绑定到具体物体("in color #0047AB");auto 模式下输出画幅跟第一张输入图+ pitfalls:+ - 一组分镜里每一格都要重复完整的角色描述+ unverified:+ - JSON 结构化提示词是 FLUX.2 的文档写的,FLUX 3 没有提+ sources:+ - https://docs.bfl.ai/guides/prompting_guide_flux2+ - https://docs.bfl.ml/guides/prompting_unified_reference.md+ - https://docs.bfl.ml/guides/prompting_editing_overview.md++ kling-o3-image:+ basis: vendor+ structure: 自然语言+ references: >-+ 用 Image 1 / Image 2 指代:"Use Image 1 as the base. Dress the person in Image 1 with the dress from Image 2 and the handbag from Image 3.";保留项写 "keeping all facial features, poses, and lighting the same" "leaving everything else untouched";一次只改一个元素+ frames: 有组图模式,可以按一张图续出分镜("Predict the next part of the story based on this image and generate six storyboard frames.");原生 2K / 4K+ sources:+ - https://kling.ai/quickstart/klingai-image-3-omni-user-guide++ # -------------------------------------------------------------- 人物驱动(文字能管的很少)+ kling-motion-control:+ basis: third-party+ structure: 提示词可选:写身份、环境、光线、风格;不要描述动作,动作由参考视频决定+ length: 2500 字符以内+ frames: >-+ 图片 300 px 以上、10 MB 以内,主体占画面 5% 以上、不被遮挡、露出头部;参考视频是一个连续镜头、只有一个人、没有切镜。character_orientation=image 保持图里的朝向(视频 3–10 秒),=video 跟视频的朝向和运镜(3–30 秒)+ sources:+ - https://apidoc.cometapi.com/api/video/kling/motion-control.md+ - https://fal.ai/learn/devs/kling-video-2-6-motion-control-prompt-guide++ kling-avatar-v2:+ basis: vendor+ structure: 提示词可选,只写表情、动作和运镜,不写外貌("Smiling warmly at the camera, she gently touches her necklace… stationary shot.")+ length: 2500 字符以内+ dialogue: 台词文本里用逗号控制停顿+ frames: 图片 300×300 以上,宽高比 1:2.5–2.5:1;音频 2–300 秒+ sources:+ - https://kling.ai/quickstart/kling-ai-avatar-2-user-guide+ - https://kling.ai/document-api/api/video/avatar.md++ wan-2.2-animate:+ basis: vendor+ structure: 百炼接口没有提示词参数,只收图、视频和模式;开源版用一句默认提示词(「视频中的人在做动作」)即可+ sources:+ - https://help.aliyun.com/zh/model-studio/wan-animate-move-api+ - https://github.com/Wan-Video/Wan2.2/blob/main/generate.py++ omnihuman-2.0:+ basis: third-party+ structure: 提示词可选,一句话写表演(情绪、肢体、运镜);不描述外貌+ unverified:+ - 没有找到火山 / 即梦的官方说明,来自第三方平台+ sources:+ - https://fal.ai/models/fal-ai/bytedance/omnihuman/v1.5/llms.txt++ sync-3:+ basis: vendor+ structure: 口型模型不收文字;只有 react-1 收一个情绪词(happy、angry、sad、neutral、disgusted、surprised)+ frames: 输入最长 15 秒+ sources:+ - https://docs.sync.so/models/react++ ltx-2.3-lipsync:+ basis: vendor+ structure: >-+ 配音口型模板:[Speaker] is speaking [Language/Accent], saying: "[Dialogue]"。台词用原文字全文写出,只有一个说话人,音节数接近原句+ language: 验证过的语言是英、法、西、德、俄+ sources:+ - https://ltx.io/blog/ltx-2-5-prompt-guidediff --git a/rea_video/capabilities/routing.yaml b/rea_video/capabilities/routing.yamlindex 9de7291..139a1ec 100644--- a/rea_video/capabilities/routing.yaml+++ b/rea_video/capabilities/routing.yaml@@ -287,6 +287,7 @@ confirm_gates:G4: 超分成片与 scorecard# ---------------------------------------------------------------- 提示词纪律+# 通用规则;各模型的具体写法在 prompting.yaml,两边不一致时以那边为准prompting_rules:- 只写想要的内容;不写否定句(写 "no phone" 反而会画出手机)- 写清"动作过程 + 结束状态"diff --git a/rea_video/cli.py b/rea_video/cli.pyindex 8208a94..d31490a 100644--- a/rea_video/cli.py+++ b/rea_video/cli.py@@ -409,6 +409,56 @@ def cmd_correct(args) -> int:return 0+def cmd_models(args) -> int:+ """List the generation models the capability map knows, or print how to write prompts for one of them."""+ from .plan import Planner+ from .production import _norm, prompting_md++ pl = Planner()+ live = {k: m for k, m in pl.models.items() if m.get("status") not in ("shutdown", "deprecated")}+ if not args.model:+ for cat, title in (("video", "视频"), ("image", "图像(出首帧 / 关键帧)"), ("character", "人物驱动")):+ print(f"{title}:")+ for mid, m in live.items():+ if m["category"] == cat:+ lim = (m.get("limits") or {}).get("duration_s") or {}+ extra = [f"≤{lim['max']:g}s" if lim.get("max") else "", "一次多镜头" if "video.multi_shot" in m["primitives"] else "",+ "有提示词写法" if mid in pl.prompting else ""]+ print(f" {mid:22s} {m['name']}" + (" · " + " · ".join(x for x in extra if x) if any(extra) else ""))+ print("\n看某个模型的提示词写法:rea-video models <id>;关键帧通用做法:rea-video models keyframes")+ return 0+ if args.model == "keyframes":+ print("关键帧通用做法:\n" + "\n".join(f"- {x}" for x in pl.keyframe_notes))+ return 0+ m = next((x for x in live.values() if _norm(x["id"]) == _norm(args.model)), None)+ if not m:+ print(f"rea-video: 能力地图里没有 {args.model};rea-video models 列出全部", file=sys.stderr)+ return 2+ lim = m.get("limits") or {}+ d = lim.get("duration_s") or {}+ facts = [f"单次 {d.get('min', 0):g}–{d['max']:g}s" if d.get("max") else "", "可一次多镜头" if "video.multi_shot" in m["primitives"] else "",+ "首帧" if "video.i2v_first_frame" in m["primitives"] else "", "首尾帧" if "video.i2v_first_last" in m["primitives"] else "",+ "多参考" if "video.multi_reference" in m["primitives"] else "", "参考视频" if "video.reference_video" in m["primitives"] else "",+ "原生音频" if (m.get("audio") or {}).get("native") else ""]+ print(f"{m['id']} · {m['name']}" + (" · " + " · ".join(x for x in facts if x) if any(facts) else ""))+ if args.plan: # re-plan an existing breakdown for this model: units, inputs and report are rewritten, the measurements stay+ from .pipeline import finalize++ out = Path(args.plan)+ b = read_json(out / "breakdown.json")+ set_lang(b.get("lang", "zh"))+ b = finalize(b, out, engine=m["id"])+ print(T("已按 {m} 重出复刻方案:{p}", "Remake plan redone for {m}: {p}", m=m["id"], p=b["summary"].get("production", "")))+ notes = pl.prompting.get(m["id"])+ if not notes:+ print("这个模型还没有记录提示词写法,按通用规则写。")+ return 0+ print("\n".join(prompting_md(notes, full=True)))+ if m["category"] == "video":+ print("\n关键帧通用做法:rea-video models keyframes")+ return 0++def cmd_prefs(args) -> int:from .memory import PREF_KEYS, add_note, load_prefs, remove_note, set_pref@@ -469,7 +519,7 @@ def main(argv: list[str] | None = None) -> int:d.add_argument("--lang", choices=LANGS, help="报告、结论和 VLM 描述的语言:zh(默认)/ en;按用户提问的语言选,也可用 prefs lang 设成默认")d.add_argument("--workers", type=int, default=3)d.add_argument("--max-vlm-shots", type=int, default=60, help="最多发给 VLM 的调用数(默认 60;镜头更多时优先看最拿不准的,其余只靠确定性取证)")- d.add_argument("--engine", help="复刻计划使用的 capsule-cinema 视频引擎(默认 prefs 里的 engine,否则 seedance2.0)")+ d.add_argument("--engine", help="复刻方案按哪个视频模型规划(rea-video models 列出的 id;默认 prefs 里的 engine,否则 seedance2.0)")d.add_argument("--meta", help='平台元数据 JSON,例如 {"music": {"title": "xx", "author": "yy", "is_original": false, "popular": true}}')d.add_argument("--no-asr", action="store_true", help="不做本地语音识别(装了 rea-video[asr] 才会做:在人声干声上识别台词和时间,首次使用下载约 160 MB 模型)")d.add_argument("--no-speakers", action="store_true", help="不区分说话人(装了 rea-video[asr] 才会做:在人声干声上分出谁在什么时候说话,多人时每人输出一条 stems/voice_S1.wav;首次使用下载约 35 MB 模型)")@@ -582,6 +632,11 @@ def main(argv: list[str] | None = None) -> int:co.add_argument("--note", help="用户的原话或理由,例如「这是定格动画,不是 AI」")co.set_defaults(func=cmd_correct)+ mo = sub.add_parser("models", help="列出能力地图里的生成模型;带模型 id 时打印这个模型的提示词写法和关键帧要求")+ mo.add_argument("model", nargs="?", help="模型 id(如 seedance-2.5、kling-3.0);keyframes 打印关键帧通用做法")+ mo.add_argument("--plan", metavar="OUT_DIR", help="把这个拆解目录的复刻方案改按该模型重出(不重新拆解)")+ mo.set_defaults(func=cmd_models)+pf = sub.add_parser("prefs", help="查看 / 设置用户偏好(默认引擎、是否开 VLM、VLM 配置文件、复核者、自由文字说明)")pf.add_argument("key", nargs="?")pf.add_argument("value", nargs="?")diff --git a/rea_video/plan.py b/rea_video/plan.pyindex 2e6f68a..1c9e0aa 100644--- a/rea_video/plan.py+++ b/rea_video/plan.py@@ -253,6 +253,9 @@ class Planner:for f in sorted((CAP / "models").glob("*.yaml")):for m in (yaml.safe_load(f.read_text(encoding="utf-8")) or {}).get("models", []):self.models[m["id"]] = m+ notes = _load("prompting.yaml") or {}+ self.prompting: dict[str, dict] = notes.get("models") or {} # how to write prompts for each model+ self.keyframe_notes: list[str] = notes.get("keyframes") or [] # frame-picking practice shared by all modelsdef edit_steps(self, edits: list | None) -> list[dict]:"""Image readers' list of AI edits on a filmed shot -> post-production steps with candidate models."""diff --git a/rea_video/production.py b/rea_video/production.pyindex bdbec67..792aeb2 100644--- a/rea_video/production.py+++ b/rea_video/production.py@@ -10,7 +10,7 @@ Edit shots (cut detection) are the facts; making them is organised differently:"""from __future__ import annotations-from .i18n import LangDict, T, join, model_name, semi, shot_ids+from .i18n import LangDict, T, join, lang, model_name, semi, shot_idsimport refrom pathlib import Path@@ -141,10 +141,11 @@ def code_motion_md(scenes: list[dict]) -> list[str]:# ---------------------------------------------------------------- model choicedef pick_model(planner: Planner, engine: str) -> tuple[dict | None, dict | None]:"""-> (the user's engine as a capability entry, the model the generation units are planned for).- Plan for the engine when it can do multi-shot; otherwise for the first live multi-shot model in R11."""+ Plan for the named model when the capability map has it as a video generator (shot by shot if it cannot do+ multi-shot); a name the map does not know falls back to the first live multi-shot model in R11."""live = {k: m for k, m in planner.models.items() if m.get("status") not in ("shutdown", "deprecated")}eng = next((m for m in live.values() if _norm(m["id"]) == _norm(engine)), None)- if eng and "video.multi_shot" in eng.get("primitives", []):+ if eng and eng.get("category") == "video" and {"video.t2v", "video.i2v_first_frame"} & set(eng.get("primitives", [])):return eng, engbest = Nonefor mid in (planner.rules.get("R11-recurring-character") or {}).get("prefer", []):@@ -155,6 +156,20 @@ def pick_model(planner: Planner, engine: str) -> tuple[dict | None, dict | None]return eng, best or eng+PROMPTING_FIELDS = (("structure", "结构"), ("language", "语言"), ("length", "长度"), ("multi_shot", "多镜头和时间"),+ ("references", "参考素材怎么指代"), ("dialogue", "台词和声音"), ("negatives", "不想要的内容"), ("camera", "运镜"),+ ("frame_mode", "首帧 / 首尾帧模式下写什么"), ("frames", "帧图和参考图"), ("rewriter", "自动改写"))+++def prompting_md(notes: dict, full: bool = False) -> list[str]:+ """One model's prompt-writing notes as bullet lines; full adds what is unverified and the sources."""+ L = [f"- **{zh}**:{notes[k]}" for k, zh in PROMPTING_FIELDS if notes.get(k)]+ for k, zh in (("pitfalls", "注意"),) + ((("unverified", "待核实"), ("sources", "来源")) if full else ()):+ if notes.get(k):+ L += [f"- **{zh}**:"] + [f" - {x}" for x in notes[k]]+ return L++def _limits(m: dict | None) -> dict:lim = (m or {}).get("limits") or {}d = lim.get("duration_s") or {}@@ -551,11 +566,13 @@ def production_plan(b: dict, out: Path, engine: str = "seedance2.0") -> dict:calls = sum(u["calls"] for u in units)plan["calls"] = callsplan["gen_shots"] = gen_shots- if eng and model and eng["id"] != model["id"]:- plan["engine_note"] = T("默认引擎 {e} 不支持一次多镜头,用它要逐镜生成 {n} 次;这里按 {m} 规划(单次 ≤{mx:.0f}s、可一次出多镜头),共 {c} 次",- "The default engine {e} cannot generate several shots in one call; with it you would generate shot by shot, {n} time{ns}. "- "This plan is for {m} (≤{mx:.0f}s per call, multi-shot in one call), {c} call{cs} in total",- e=model_name(eng["name"]), n=gen_shots, ns=_s(gen_shots), m=model_name(model["name"]), mx=lim["max"], c=calls, cs=_s(calls))+ if model and (not eng or eng["id"] != model["id"]):+ plan["engine_note"] = T("能力地图里没有可用来生成视频的 {e},这里按 {m} 规划(单次 ≤{mx:.0f}s),共 {c} 次;可选的模型用 `rea-video models` 查看",+ "The capability map has no video generator named {e}; this plan is for {m} (≤{mx:.0f}s per call), {c} call{cs} in total. "+ "`rea-video models` lists the models to choose from",+ e=model_name(eng["name"]) if eng else engine, m=model_name(model["name"]), mx=lim["max"], c=calls, cs=_s(calls))+ if model and planner.prompting.get(model["id"]):+ plan["prompting"] = planner.prompting[model["id"]]voice = ((b.get("audio") or {}).get("voice") or {}).get("present")vsrc = ((b.get("sound_sources") or {}).get("voice") or {}).get("source")if lim["native_audio"]:@@ -691,6 +708,13 @@ def report_md(plan: dict) -> list[str]:L.append(T("- 声音:{a}", "- Audio: {a}", a=plan["audio_note"]))if plan.get("overlay_note"):L.append(T("- 包装层:{a}", "- Packaging: {a}", a=plan["overlay_note"]))+ if plan.get("prompting"):+ L.append(T("- 下面的提示词是通用写法;用 {m} 生成前,按它的写法改写(时间和镜头怎么分、参考素材怎么指代、台词和不想要的内容怎么写):",+ "- The prompts below are written generically; before generating with {m}, rewrite them the way it expects "+ "(timing and shots, how references are addressed, dialogue, exclusions): `rea-video models {i}`",+ m=plan["model_name"], i=plan["model"]))+ if lang() == "zh":+ L += ["", "<details><summary>" + f"{plan['model_name']} 的提示词写法" + "</summary>", ""] + prompting_md(plan["prompting"]) + ["", "</details>"]L += ["", T("AI 视频模型能吃这几种输入,每个生成单元下面写了要喂哪些、从哪来:","A video model can take these inputs; each generation unit below lists which ones to feed and where they come from:"),T("- **文字提示词**:必需,描述画面、动作、运镜", "- **Text prompt**: always; describes the picture, action and camera"),diff --git a/scripts/validate_capabilities.py b/scripts/validate_capabilities.pyindex 06b42a0..38f744d 100644--- a/scripts/validate_capabilities.py+++ b/scripts/validate_capabilities.py@@ -12,6 +12,7 @@4. routing.yaml 中 signals/route/prefer/verify 引用都存在5. prefer 中的每个模型至少支持 route 链中的一个原语6. verified.date 超过 90 天给 warning(提示需要复核)+ 7. prompting.yaml(各模型的提示词写法)里的模型 id、字段和来源"""from __future__ import annotations@@ -134,6 +135,30 @@ def main() -> int:for r in routing.get(key, []):check_rule(r, key)+ # ---------- 提示词写法 ----------+ notes = load_yaml(CAP / "prompting.yaml") or {}+ text_keys = {"structure", "language", "length", "multi_shot", "references", "dialogue", "negatives", "camera", "frame_mode", "frames", "rewriter"}+ list_keys = {"pitfalls", "unverified", "sources"}+ if not all(isinstance(x, str) for x in notes.get("keyframes", [])):+ errors.append("prompting.yaml: keyframes 每一条都应是字符串")+ for mid, n in (notes.get("models") or {}).items():+ if mid not in models:+ errors.append(f"prompting.yaml: 未知模型 {mid}")+ if n.get("basis") not in ("probe", "user", "vendor", "third-party", "knowledge"):+ errors.append(f"prompting.yaml:{mid}: basis 缺失或取值不对")+ if not n.get("sources") or not all(str(u).startswith("http") for u in n["sources"]):+ errors.append(f"prompting.yaml:{mid}: sources 至少一个 http(s) 链接")+ for k, x in n.items():+ if k == "basis":+ continue+ if k in text_keys and not isinstance(x, str) or k in list_keys and not (isinstance(x, list) and all(isinstance(i, str) for i in x)):+ errors.append(f"prompting.yaml:{mid}: 字段 {k} 类型不对")+ elif k not in text_keys | list_keys:+ errors.append(f"prompting.yaml:{mid}: 未知字段 {k}")+ for mid, m in live.items():+ if m.get("category") == "video" and mid not in (notes.get("models") or {}):+ warnings.append(f"{mid}: 还没有提示词写法(prompting.yaml)")+# ---------- 输出 ----------print(f"原语 {len(primitives)} 个,指标 {len(metrics)} 个,模型 {len(models)} 个(可用 {len(live)}),"f"画面规则 {len(routing.get('rules', []))} 条,音频规则 {len(routing.get('audio_rules', []))} 条")diff --git a/skills/rea-video/references/remake.md b/skills/rea-video/references/remake.mdindex cd0378e..4f951f8 100644--- a/skills/rea-video/references/remake.md+++ b/skills/rea-video/references/remake.md@@ -2,6 +2,13 @@复刻可以用的工具和方式单独列在 `remake-tools.md`,告诉用户有哪些可选时看那个文件。+## 用哪个模型++- 用户指定了视频模型:拆解时加 `--engine <id>`(`rea-video models` 列出可选的 id);已经拆完的用 `rea-video models <id> --plan out/ref` 改按它重出方案。+- 用户没指定:不用问,直接用默认的那个。+- 把提示词交给用户之前,按 `rea-video models <id>` 打印的写法改写每个生成单元的提示词:时间和镜头怎么分、参考素材怎么指代、台词和不想要的内容怎么写;首帧 / 首尾帧模式下只留运动和运镜。要重画首帧时,图像提示词按所用图像模型的写法改(同一个命令)。+- 选帧、擦字、首尾帧怎么配:`rea-video models keyframes`。+## 各类镜头怎么复刻- **AI 类镜头**:用原镜头首尾帧加 VLM 提示词,通过 [capsule-cinema](https://github.com/JuneYaooo/capsule-cinema) 生成(会计费,先 `--dry-run`,并征得用户同意)。diff --git a/tests/test_production.py b/tests/test_production.pyindex 6de89c9..401e86d 100644--- a/tests/test_production.py+++ b/tests/test_production.py@@ -30,13 +30,29 @@ def _b(shots):return {"shots": shots, "source": {"aspect_ratio": "9:16"}, "audio": {"voice": {"present": True}}}-def test_engine_without_multishot_falls_back():+def test_named_model_is_planned_for():+ # a model the map knows is planned for as named, shot by shot when it cannot do multi-shoteng, model = pick_model(Planner(), "luma-ray3.2")- assert eng["id"] == "luma-ray3.2"- assert "video.multi_shot" in model["primitives"] and model["id"] != eng["id"]- # Seedance 2.0 writes several shots in one call (numbered shots in the prompt): plan for it directly+ assert eng["id"] == model["id"] == "luma-ray3.2" and "video.multi_shot" not in model["primitives"]+ # Seedance 2.0 writes several shots in one call (numbered shots in the prompt)eng, model = pick_model(Planner(), "seedance2.0")assert eng["id"] == model["id"] == "seedance-2.0"+ # a name the map does not have falls back to a multi-shot model+ eng, model = pick_model(Planner(), "no-such-model")+ assert eng is None and "video.multi_shot" in model["primitives"]+++def test_plan_carries_the_models_prompt_notes(tmp_path):+ from rea_video.production import report_md++ shots = [_shot(1, 0.0, 3.0, "ai_video", KITCHEN, tmp_path), _shot(2, 3.0, 3.0, "ai_video", KITCHEN, tmp_path)]+ plan = production_plan(_b(shots), tmp_path, engine="hailuo-2.3")+ assert plan["model"] == "hailuo-2.3" and [u["shots"] for u in plan["units"]] == [[1], [2]] # no multi-shot: one call per shot+ assert "[Push in]" in plan["prompting"]["camera"]+ plan["summary"] = ""+ assert "[Push in]" in "\n".join(report_md(plan))+ every = Planner()+ assert set(every.prompting) <= set(every.models) and every.keyframe_notesdef test_split_respects_hardcut_cap():@@ -130,11 +146,11 @@ def test_framing_goes_into_capsule_prompt():def test_english_engine_note_has_no_chinese(tmp_path):set_lang("en")try:- plan = production_plan(_b([_shot(1, 0.0, 3.0, "ai_video", KITCHEN, tmp_path)]), tmp_path, engine="luma-ray3.2")+ plan = production_plan(_b([_shot(1, 0.0, 3.0, "ai_video", KITCHEN, tmp_path)]), tmp_path, engine="no-such-model")finally:set_lang("zh")note = plan["engine_note"]- assert "shot by shot, 1 time." in note+ assert "no-such-model" in note and "1 call in total" in noteassert not re.search(r"[\u3000-\u303f\u4e00-\u9fff\uff00-\uffef]", note + plan["model_name"])