Nodes/ComfyUI-M3-IRContext/MiniMax H3 Context IR (OpenAI) - leoleexh
ComfyUI Node

MiniMax H3 Context IR (OpenAI) - leoleexh

Analyzes connected text/image/video/audio context and renders a validated MiniMax H3 Base or Ref2VA prompt. AI connection settings are editable on the node. Warning: a node-entered API key may be saved in workflow JSON. Connect the same media to the native H3 generation node.

By leoleelxh·Created 14 days ago·Updated 13 days ago· 0
MiniMax H3 Context IR (OpenAI) - leoleexh
  • creative_profile
  • first_frame
  • last_frame
  • ref_images
  • ref_videos
  • ref_video_audios
  • ref_audios
  • h3_prompt
  • context_ir_json
  • analysis_report
  • warnings
  • usage_json
user_prompt
modeauto
width
height
length
model_presetgpt-5.6-sol
custom_model
api_key
base_urlhttps://api.openai.com/v1
api_modeauto
reasoning_effortmedium
output_languageen
strictnessbalanced
generate_background_musictrue
generate_dialoguetrue
generate_subtitlesfalse
privacy_modecloud
cache_enabledtrue
max_visual_inputs40
max_video_frames32
transcription_modelgpt-4o-transcribe
timeout_seconds120
max_retries2
generate_narrationfalse
dialogue_languageauto
Categoryleoleexh/MiniMax H3

Inputs (32)

NameTypeDefaultDescription
user_promptSTRINGOriginal intent in natural language. Common forms such as `she says: Hello. English dialogue` are converted automatically; explicit <d>[Language] text</d> is also supported.
modeCOMBOauto6 options: auto, t2va, i2va, fl2va, l2va, ref2va
widthINTConnect the same width INT used by the native H3 node, normally from the official Resolution Selector.
heightINTConnect the same height INT used by the native H3 node, normally from the official Resolution Selector.
lengthINTConnect the exact same H3-aligned frame-count INT used by the native H3 node. In the official workflow this is the integer output of the duration Math Expression.
model_presetCOMBOgpt-5.6-sol5 options: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, custom
custom_modelSTRINGUsed when model_preset is custom. Any compatible provider model ID is accepted.
api_keySTRINGType the key here, or leave blank to use an environment variable. ComfyUI's standard string widget shows this value and may save it in workflow JSON. Never share a workflow or screenshot containing a real key.
base_urlSTRINGhttps://api.openai.com/v1OpenAI-compatible API base URL. This is stored in workflow JSON; never put a key here.
api_modeCOMBOautoAuto tries Responses first and falls back only when the endpoint does not implement it.
reasoning_effortCOMBOmedium3 options: low, medium, high
output_languageCOMBOen3 options: en, zh, auto
strictnessCOMBObalanced3 options: conservative, balanced, creative
generate_background_musicBOOLEANtrueON asks for a fitting non-diegetic score unless the user explicitly requests no music. OFF forces the final prompt to prohibit background music.
generate_dialogueBOOLEANtrueON allows natural dialogue when the scene supports it and preserves extracted or explicit lines. OFF forces no character dialogue or vocal performance. Narration is controlled separately.
generate_subtitlesBOOLEANfalseON asks H3 to burn in synchronized subtitles for actual dialogue. OFF prohibits dialogue captions. Generated-video text may still be imperfect.
privacy_modeCOMBOcloudCloud sends selected media derivatives/audio/text to the endpoint. local_only uploads nothing.
cache_enabledBOOLEANtrue
max_visual_inputsINT401–64Global cloud-analysis budget: still images count as 1 each; the remaining slots are used for timestamped sampled frames from the single reference video. It must be at least the number of connected visual assets.
max_video_framesINT322–32Hard cap for AI video frames. Actual sampling is adaptive at about 2 fps and is also limited by max_visual_inputs; the full frame batch is never uploaded.
transcription_modelSTRINGgpt-4o-transcribe
timeout_secondsINT12010–900
max_retriesINT20–6
generate_narrationBOOLEANfalseOFF prohibits narration, voice-over, spoken descriptions, and reading prompt text aloud. ON only permits narration when the user_prompt explicitly requests it.
dialogue_languageCOMBOautoAuto only permits context-appropriate dialogue. Selecting a language requires cloud planning to author at least one line in that language. Natural input such as `她说:你好。中文对白` is converted automatically; explicit <d>[Language] ...</d> also remains supported.
creative_profileoptM3_CREATIVE_PROFILEOptional connection from MiniMax H3 Creative Director. The structured profile is expanded against this node's exact duration, aspect ratio, mode, and connected references.
first_frameoptIMAGE
last_frameoptIMAGE
ref_imagesoptCOMFY_AUTOGROW_V3
ref_videosoptCOMFY_AUTOGROW_V3
ref_video_audiosoptCOMFY_AUTOGROW_V3
ref_audiosoptCOMFY_AUTOGROW_V3

Outputs (5)

NameTypeDescription
h3_promptSTRING
context_ir_jsonSTRING
analysis_reportSTRING
warningsSTRING
usage_jsonSTRING