H3 Guide
把模糊创意转成可执行的 MiniMax H3 方案,并通过现有 opc skill 运行。本 skill 负责创意决策、素材分工、测试矩阵和质检;Prompt 的最终结构由 MiniMax 官方 h3-prompt-writing skill 负责。
前置规则
- 创建、改写或扩写 Prompt 时,先完整读取官方
h3-prompt-writing skill;Base 模式读取其 references/base-en.txt,Ref2VA 读取其 references/ref-en.txt。
- 需要真正生成或编辑视频时,再读取可用的
opc skill 及其 references/video.md,以当前 CLI 能力为准。
- 先检查用户提供的图片、视频和音频。视频至少读取时长、尺寸、帧率和音轨,并抽帧观察;图片实际查看后再分配角色。
- 用户只要求策划或 Prompt 时,不提交生成任务。用户要求生成、测试或继续迭代时,完成安全的生成、质检和交付。
- 不把风格词当方案。明确故事或功能、时间节拍、参考素材职责、镜头、声音、不变量和禁止项。
Prompt 格式归属
| OPC 工作流 |
官方模式 |
最终结构 |
h3-t2v |
T2VA |
integrated_multimodal_description、overall_soundscape、non_diegetic_music |
h3-i2v + 首帧 |
I2VA |
官方首帧对齐句 + Base 三字段 |
h3-i2v + 首尾帧 |
FL2VA |
官方首尾帧对齐句 + Base 三字段 |
h3-i2v + 尾帧 |
L2VA |
官方尾帧对齐句 + Base 三字段 |
h3-r2v |
Ref2VA |
subject_definitions、summary、retention_analysis、detailed_description、overall_soundscape、non_diegetic_music |
最终 Prompt 使用英文;对白、歌词和画面内文字保留原语言。官方字段、顺序、[Shot N]、时间戳、<Subject N>、<Picture N>、<Video N>、<Audio N>、(S1) 和 <d> 语法不得由本指南另行发明或改写。
工作流选择
| 目标 |
工作流 |
选择条件 |
| 从零生成完整场景 |
h3-t2v |
不要求固定角色、产品或构图 |
| 固定首帧,或规定首尾状态 |
h3-i2v |
构图/主体外观由首帧决定,或必须到达尾帧 |
| 多图联合、动作/镜头参考、视频编辑、声音参考 |
h3-r2v |
任意图片、视频、音频需要作为独立条件 |
默认采用两阶段生成。抽卡、试 Prompt、筛选 seed 时先做低分辨率 5 秒 Turbo 8 steps 预览;确定方案后保持 Prompt、参考素材顺序和 seed 不变,移除 --turbo,用 Base 20 steps 按用户目标分辨率最终出片。Turbo 是预览工具,不作为最终交付。H3 在 24 fps 的帧网格上会把 5 秒请求输出为约 5.167 秒;用户指定其他规格时遵从用户并用 opc video info 核实现时支持。
标准流程
1. 把需求拆成约束
提取并确认:
- 发布目标、观众、画幅、时长、分辨率。
- 主体、场景、动作、叙事或功能演示。
- 必须保持的身份、产品、构图、机位、声音和文字。
- 可以变化的部分,以及明确禁止变化的部分。
- 成功标准:观众看完应该感到什么、记住什么、相信什么。
2. 给参考素材分配单一职责
先写素材映射表,再写 Prompt。每份素材尽量只有一个主职责:
- 身份图:脸、发型、体型、服装或角色设定。
- 产品图:几何、材质、Logo、结构和颜色。
- 场景图:空间、色彩、光线和美术方向。
- 风格图:排版、材质、画面语言;不要让其覆盖身份。
- 分镜图:镜头顺序和构图变化。
- 视频:动作、表演节奏、运镜、剪辑或原场景。
- 音频:音色、台词、音乐结构或环境声。
h3-r2v 的媒体序号由命令行出现顺序决定,Prompt 必须使用完全一致的 <Picture 1>、<Video 1>、<Audio 1>。上限和音轨编号规则以 opc 当前文档为准。
3. 按官方骨架写 Prompt
先把输出合同、全局不变量、参考绑定、分秒动作、镜头、视觉、声音、文字和禁止项整理为创意约束,再按官方 h3-prompt-writing 对应模式写入固定字段。完整的创意拆解方法见 prompt-framework.md,但其中任何本地模板都不能覆盖官方字段名和顺序。
4. 选择风格语法
不要只写“电影感”“高级感”。从 style-cookbook.md 选择相应的构图、镜头、材质、剪辑、声音和反例。需要可复用视觉参考时,先读 reference-library.md,再用 view_image 查看具体资产。
涉及审美片、TVC、微距、材质转场、实拍融合或用户要求“惊艳”时,必须再读 aesthetic-mechanics.md。提交生成前把审美目标改写成可观察的光学、材料、空间、转场和停留机制;“电影感”“高级感”“丝滑”不能单独作为执行指令。
5. 执行编辑策略
角色/物体替换、背景和光影、动作/运镜迁移、多项同时修改、台词/音色编辑,按 editing-playbook.md 处理。编辑 Prompt 必须先声明原视频不变量,再列出唯一允许变化的部分。
6. 测试与迭代
先用 --turbo 抽卡并筛选 Prompt/seed,做六格抽帧和关键局部对比,再决定重试。选中方案后必须用相同 Prompt、参考素材顺序和 seed 去掉 --turbo 重跑 Base 20 steps,并以 Base 成片完成最终质检。按 qa-iteration.md 判断是改 Prompt、换参考、拆任务还是承认模型边界;不要仅凭首帧宣布成功。
# 抽卡:快速验证创意、Prompt 和 seed
opc video -w h3-t2v --prompt-file prompt.txt \
--width 608 --height 352 --duration 5 --seed 42 --turbo
# 最终出片:复用选中的 Prompt 和 seed,移除 --turbo
opc video -w h3-t2v --prompt-file prompt.txt \
--width 1376 --height 768 --duration 5 --seed 42 --steps 20
h3-r2v --turbo 可用于编辑方案预览,但必须重点检查身份、动作、镜头方向和时序保留;最终 Ref2VA 成片同样移除 --turbo。
每次运行前先记录一个“美感假设”和一个“最大风险”。技术规格通过不等于创意通过;失败运行保留为研究样本,下一轮只改变最可能的根因。
每次规划的交付格式
按下列顺序输出,缺少的项明确写“无”:
- 创意一句话与成功标准。
- 工作流、画幅、时长、分辨率、steps,以及当前属于 Turbo 抽卡还是 Base 最终出片。
- 参考素材映射表及命令行顺序。
- 可直接保存为文件的完整 Prompt。
- 可执行的
opc video 命令或 dry-run 命令。
- 首轮测试重点、失败判据和下一轮只改哪个变量。
完成标准
- Prompt 与命令中的媒体序号完全一致。
- 参考职责没有互相冲突。
- 声音、文字、镜头和动作都有明确时序或保持规则。
- 生成结果通过实际抽帧、音轨和解码检查。
- 若两次有针对性的迭代收敛到同一缺陷,报告边界并给出拆镜、遮罩合成或后期方案,不继续盲目烧算力。
Ver el texto completo de la licencia (Apache-2.0)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.