🦊H3视频提示词生成@炮老师的小课堂
Feeding MiniMax H3 the Context-IR prompts it actually wants
- 🧩 H3素材标记
- 🎬 首帧图
- 🏁 尾帧图
- 🖼️ 参考图1
- 🖼️ 参考图2
- 🖼️ 参考图3
- 🖼️ 参考图4
- 🖼️ 参考图5
- 🖼️ 参考图6
- 🖼️ 参考图7
- 🖼️ 参考图8
- 🖼️ 参考图9
- 🎞️ 参考视频1
- 🎵 参考音频1
- 🎞️ 参考视频2
- 🎵 参考音频2
- 🎞️ 参考视频3
- 🎵 参考音频3
- 🎬 H3最终提示词
- 🎛️ 识别模式
- 📑 素材与制作分析
- 📄 LLM完整响应
- ℹ️ 处理信息
MiniMax H3 is a closed video model that is picky about how you talk to it. Its official Context-IR spec wants prompts structured around material references - first frame, reference videos, audio - written in a specific form, and a plain English paragraph gets you a video that ignores half your references. DapaoH3VideoPromptNode is the dapaoAI pack's translator: it calls an LLM to rewrite your plain-language video idea into a proper H3 prompt, and it does the material analysis for you, handling up to 9 reference images, 3 videos, and 3 audio files.
What you feed it
- 🔑 API密钥 + 🤖 LLM模型 - dapaoAI key and the usual 11-model menu (default
gemini-3.7-flash). - 🎛️ H3生成模式 - the mode set, default auto-detect: T2VA (text-to-video-with-audio), I2VA (image-first-frame-to-video-with-audio), FL2VA (first+last frame), L2VA (last-frame continuation), and so on.
- 🎨 创作类型 - 31 creative types (general H3, character, product, cinematic…). Picking one shapes the prompt's tone and shot vocabulary.
- 🌐 输出中文提示词 - false by default, so English prompts come out unless you flip it. Note the defaults elsewhere: ⏱️ 目标时长(秒) 5, 📐 视频比例 16:9, 🔊 原生音频 true, 🌡️ 温度 0.4.
- 📝 原始视频需求 - your idea in plain words.
Optional inputs are where the reference handling lives: 🎬 首帧图 and 🏁 尾帧图 (for FL2VA), 🖼️ 参考图1–9, 🎞️ 参考视频1–3, 🎵 参考音频1–3, plus a 🧩 H3素材标记 typed input from DapaoH3PromptBoxNode, and an 🎧 参考音频原声直传LLM toggle for whether audio goes to the LLM as-is. The 🎞️ 每个视频采样帧数 (default 5) controls how many frames get pulled per reference video for analysis - the node doesn't upload whole videos to the LLM, it samples representative frames, which is the sane way to keep a vision model's context from exploding.
What comes out
The output to wire downstream is 🎬 H3最终提示词 - the structured prompt for your H3 video generation node. The rest are diagnostics: 🎛️ 识别模式 (which mode it picked), 📑 素材与制作分析 (its read of the materials), 📄 LLM完整响应, and ℹ️ 处理信息.
How it works
The node builds a Context-IR-shaped instruction set, sends your text plus the sampled reference frames to the dapaoAI LLM, and asks it to emit the H3 prompt complete with the <Picture/Video/Audio N> markers that H3's own node will honor. It's the "LLM as translator to a model's official prompt guide" pattern that llm-in-comfyui.md describes - the community's top advice for models like this is literally "read the official prompt guide, then have an LLM translate what you want into it."
Gotchas
- This node makes prompts, not video. Pair its output with an actual H3 generation node - the pack's RH and dapaoAI video nodes, or MiniMax's own.
- Marker discipline is on the LLM. A model that ignores a
<Video 2>tag will silently drop the reference. Scan the 素材与制作分析 output before paying for a generation. - Reference-heavy requests cost more tokens - 9 images + sampled video frames + audio can push a call well past a bare text prompt.
- No auto-retry of paid POSTs, per pack policy; a truncated response means re-running and paying again.
- Chinese-only UI.
Install: ComfyUI Manager → "dapaoAPI", or git clone https://github.com/paolaoshi/ComfyUI-dapaoAPI.git → pip install -r requirements.txt → restart. dapaoAI key from api.dapaoai.com (register → wallet → redeem code → apply key in the default group).
Inputs (37)
| Name | Type | Default | Description |
|---|---|---|---|
| 🔑 API密钥 | STRING | 密钥只用于请求 https://api.dapaoai.com,不会写入配置文件。 | |
| 🤖 LLM模型 | COMBO | gemini-3.7-flash | 11 options: gpt-5.5, gpt-5.6-luna, gpt-5.6-terra, gpt-5.6-sol, claude-fable-5, claude-opus-4-8, +5 |
| 🎛️ H3生成模式 | COMBO | 自动识别 | 6 options: 自动识别, T2VA-文生视频, I2VA-首帧生视频, FL2VA-首尾帧生视频, L2VA-尾帧生视频, Ref2VA-全能参考 |
| 🎨 创作类型 | COMBO | 通用H3 | 31 options: 通用H3, 极简产品广告, 3D动画短片, 纸艺定格科普, 品牌宣传短片, 音乐MV动态字幕, +25 |
| 🌐 输出中文提示词 | BOOLEAN | false | 默认关闭时输出英文H3提示词;开启后正文输出简体中文,H3固定字段和标签仍保留官方格式。 |
| 📝 原始视频需求 | STRING | 电影感镜头,主体动作自然,音画同步,画面稳定且细节丰富。 | — |
| 🧩 H3自动素材清单 | STRING | 由节点界面在H3最终提示词直连官方MiniMax H3节点时自动维护。 | |
| ⏱️ 目标时长(秒) | INT | 54–15 | — |
| 📐 视频比例 | COMBO | 16:9 | 6 options: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
| 🔊 原生音频 | BOOLEAN | true | — |
| 🌡️ 温度 | FLOAT | 0.400–2 | — |
| 📝 最大输出令牌 | INT | 4096512–65536 | — |
| 🎲 Top_P | FLOAT | 1.000–1 | — |
| 🎲 随机种 | INT | 00–18446744073709550000 | 仅控制ComfyUI缓存,不发送给接口。 |
| ⌛ 请求超时 | INT | 30030–1200 | — |
| 🧩 H3素材标记opt | DAPAO_H3_REFERENCES | 连接🧙♂️H3专用提示词框的素材标记输出,用官方H3节点的实际素材顺序锁定编号。 | |
| 🔗 外部文本输入opt | STRING | 可连接任意STRING文本节点;连接后执行时优先使用外部文本,未连接时使用本节点的大文本框。 | |
| 🎬 首帧图opt | IMAGE | I2VA/FL2VA 使用;在H3提示词中作为精确首帧锚点。 | |
| 🏁 尾帧图opt | IMAGE | L2VA/FL2VA 使用;在H3提示词中作为精确尾帧锚点。 | |
| 🎞️ 每个视频采样帧数opt | INT | 50–8 | 正常范围2–8,默认5;旧工作流异常恢复为0时会自动按5处理。 |
| 🎧 参考音频原声直传LLMopt | BOOLEAN | false | 只发送参考音频1/2/3接口接入的原始音频,不会自动提取参考视频音轨;要求所选LLM支持input_audio。 |
| 🚫 出错时跳过opt | BOOLEAN | false | — |
| 🖼️ 参考图1opt | IMAGE | Ref2VA源图片1;源图片总数最多9张。 | |
| 🖼️ 参考图2opt | IMAGE | Ref2VA源图片2;源图片总数最多9张。 | |
| 🖼️ 参考图3opt | IMAGE | Ref2VA源图片3;源图片总数最多9张。 | |
| 🖼️ 参考图4opt | IMAGE | Ref2VA源图片4;源图片总数最多9张。 | |
| 🖼️ 参考图5opt | IMAGE | Ref2VA源图片5;源图片总数最多9张。 | |
| 🖼️ 参考图6opt | IMAGE | Ref2VA源图片6;源图片总数最多9张。 | |
| 🖼️ 参考图7opt | IMAGE | Ref2VA源图片7;源图片总数最多9张。 | |
| 🖼️ 参考图8opt | IMAGE | Ref2VA源图片8;源图片总数最多9张。 | |
| 🖼️ 参考图9opt | IMAGE | Ref2VA源图片9;源图片总数最多9张。 | |
| 🎞️ 参考视频1opt | VIDEO | Ref2VA源视频1;每个2–15秒,视频总时长不超过15秒。 | |
| 🎵 参考音频1opt | AUDIO | Ref2VA源音频1;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。 | |
| 🎞️ 参考视频2opt | VIDEO | Ref2VA源视频2;每个2–15秒,视频总时长不超过15秒。 | |
| 🎵 参考音频2opt | AUDIO | Ref2VA源音频2;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。 | |
| 🎞️ 参考视频3opt | VIDEO | Ref2VA源视频3;每个2–15秒,视频总时长不超过15秒。 | |
| 🎵 参考音频3opt | AUDIO | Ref2VA源音频3;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| 🎬 H3最终提示词 | STRING | — |
| 🎛️ 识别模式 | STRING | — |
| 📑 素材与制作分析 | STRING | — |
| 📄 LLM完整响应 | STRING | — |
| ℹ️ 处理信息 | STRING | — |