Nodes/ComfyUI-dapaoAPI/🦊H3视频提示词生成@炮老师的小课堂
ComfyUI Node

🦊H3视频提示词生成@炮老师的小课堂

Feeding MiniMax H3 the Context-IR prompts it actually wants

By paolaoshi·Created 10 months ago·Updated a day ago· 217
🦊H3视频提示词生成@炮老师的小课堂
  • 🧩 H3素材标记
  • 🎬 首帧图
  • 🏁 尾帧图
  • 🖼️ 参考图1
  • 🖼️ 参考图2
  • 🖼️ 参考图3
  • 🖼️ 参考图4
  • 🖼️ 参考图5
  • 🖼️ 参考图6
  • 🖼️ 参考图7
  • 🖼️ 参考图8
  • 🖼️ 参考图9
  • 🎞️ 参考视频1
  • 🎵 参考音频1
  • 🎞️ 参考视频2
  • 🎵 参考音频2
  • 🎞️ 参考视频3
  • 🎵 参考音频3
  • 🎬 H3最终提示词
  • 🎛️ 识别模式
  • 📑 素材与制作分析
  • 📄 LLM完整响应
  • ℹ️ 处理信息
🔑 API密钥
🤖 LLM模型gemini-3.7-flash
🎛️ H3生成模式自动识别
🎨 创作类型通用H3
🌐 输出中文提示词false
📝 原始视频需求电影感镜头,主体动作自然,音画同步,画面稳定且细节丰富。
🧩 H3自动素材清单
⏱️ 目标时长(秒)5
📐 视频比例16:9
🔊 原生音频true
🌡️ 温度0.40
📝 最大输出令牌4096
🎲 Top_P1.00
🎲 随机种0
⌛ 请求超时300
🔗 外部文本输入
🎞️ 每个视频采样帧数5
🎧 参考音频原声直传LLMfalse
🚫 出错时跳过false

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.gitpip install -r requirements.txt → restart. dapaoAI key from api.dapaoai.com (register → wallet → redeem code → apply key in the default group).

Category🤖dapaoAPI/🍬大炮API常用工具🍬

Inputs (37)

NameTypeDefaultDescription
🔑 API密钥STRING密钥只用于请求 https://api.dapaoai.com,不会写入配置文件。
🤖 LLM模型COMBOgemini-3.7-flash11 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通用H331 options: 通用H3, 极简产品广告, 3D动画短片, 纸艺定格科普, 品牌宣传短片, 音乐MV动态字幕, +25
🌐 输出中文提示词BOOLEANfalse默认关闭时输出英文H3提示词;开启后正文输出简体中文,H3固定字段和标签仍保留官方格式。
📝 原始视频需求STRING电影感镜头,主体动作自然,音画同步,画面稳定且细节丰富。
🧩 H3自动素材清单STRING由节点界面在H3最终提示词直连官方MiniMax H3节点时自动维护。
⏱️ 目标时长(秒)INT54–15
📐 视频比例COMBO16:96 options: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
🔊 原生音频BOOLEANtrue
🌡️ 温度FLOAT0.400–2
📝 最大输出令牌INT4096512–65536
🎲 Top_PFLOAT1.000–1
🎲 随机种INT00–18446744073709550000仅控制ComfyUI缓存,不发送给接口。
⌛ 请求超时INT30030–1200
🧩 H3素材标记optDAPAO_H3_REFERENCES连接🧙‍♂️H3专用提示词框的素材标记输出,用官方H3节点的实际素材顺序锁定编号。
🔗 外部文本输入optSTRING可连接任意STRING文本节点;连接后执行时优先使用外部文本,未连接时使用本节点的大文本框。
🎬 首帧图optIMAGEI2VA/FL2VA 使用;在H3提示词中作为精确首帧锚点。
🏁 尾帧图optIMAGEL2VA/FL2VA 使用;在H3提示词中作为精确尾帧锚点。
🎞️ 每个视频采样帧数optINT50–8正常范围2–8,默认5;旧工作流异常恢复为0时会自动按5处理。
🎧 参考音频原声直传LLMoptBOOLEANfalse只发送参考音频1/2/3接口接入的原始音频,不会自动提取参考视频音轨;要求所选LLM支持input_audio。
🚫 出错时跳过optBOOLEANfalse
🖼️ 参考图1optIMAGERef2VA源图片1;源图片总数最多9张。
🖼️ 参考图2optIMAGERef2VA源图片2;源图片总数最多9张。
🖼️ 参考图3optIMAGERef2VA源图片3;源图片总数最多9张。
🖼️ 参考图4optIMAGERef2VA源图片4;源图片总数最多9张。
🖼️ 参考图5optIMAGERef2VA源图片5;源图片总数最多9张。
🖼️ 参考图6optIMAGERef2VA源图片6;源图片总数最多9张。
🖼️ 参考图7optIMAGERef2VA源图片7;源图片总数最多9张。
🖼️ 参考图8optIMAGERef2VA源图片8;源图片总数最多9张。
🖼️ 参考图9optIMAGERef2VA源图片9;源图片总数最多9张。
🎞️ 参考视频1optVIDEORef2VA源视频1;每个2–15秒,视频总时长不超过15秒。
🎵 参考音频1optAUDIORef2VA源音频1;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。
🎞️ 参考视频2optVIDEORef2VA源视频2;每个2–15秒,视频总时长不超过15秒。
🎵 参考音频2optAUDIORef2VA源音频2;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。
🎞️ 参考视频3optVIDEORef2VA源视频3;每个2–15秒,视频总时长不超过15秒。
🎵 参考音频3optAUDIORef2VA源音频3;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。

Outputs (5)

NameTypeDescription
🎬 H3最终提示词STRING
🎛️ 识别模式STRING
📑 素材与制作分析STRING
📄 LLM完整响应STRING
ℹ️ 处理信息STRING