MiniMax H3 Motion Context ComfyUI: chain-aware video with carried motion and audio#
This workflow chains short clips into coherent sequences by passing motion and audio context from each generated segment into the next. It opens in FL2VA, where a first frame sets the opening and an optional last frame guides the ending. Switch to Ref2VA when you want to preserve a subject’s look from a reference image while a prompt describes the action and sound.
MiniMax H3 Motion Context ComfyUI keeps your camera, pacing, and ambience consistent across cuts. Low resolution clips are generated and refined, previewed with synced audio, trimmed for seamless chaining, then optionally upscaled into a final movie. The H3 Motion Context nodes and sample setups come from the project’s source workflows, and the models are available on Hugging Face:
- H3 Motion Context nodes and examples: ComfyUI-H3-Motion-Context
- MiniMax H3 model pack: Comfy-Org/MiniMax-H3
- Optional chain upscaler models and nodes: Comfyui-MMH3-UltimateUpscale
Key models in Comfyui MiniMax H3 Motion Context ComfyUI workflow#
- MiniMax H3 FL2VA U-Net. Drives first-frame and optional last-frame guided video synthesis so shots can start and land where you want. Model pack
- MiniMax H3 Ref2VA U-Net. Generates video that follows a provided reference image for subject identity and styling. Model pack
- MiniMax H3 Video VAE. Encodes and decodes the video latent stream used across the main and refine passes. Model pack
- MiniMax H3 Audio VAE. Encodes and decodes the synchronized audio latent so ambience and effects carry between clips. Model pack
- Qwen3‑VL 32B text encoder packaged for MiniMax H3. Interprets the prompt that describes action, camera, and sound for both FL2VA and Ref2VA. Model pack
- Optional NEXORA Latent Upscaler. Performs consistent, chain‑aware latent upscaling before final video assembly. Upscale nodes
How to use Comfyui MiniMax H3 Motion Context ComfyUI workflow#
The canvas contains two parallel authoring modes that you run one at a time. Right‑click a group’s header to bypass or enable it.
- FL2VA | First & Last Frame to Video. Active on open. Start from a first frame and optionally steer to a last frame.
- Ref2VA | Reference Image to Video. Starts bypassed. Uses a character reference while the prompt defines the action and sound.
FL2VA | References#
Load a first frame to establish the opening composition. Optionally load a last frame to set the shot’s landing pose or layout. For first‑frame‑only shots, bypass the last‑frame node. If you want to preserve a guided ending, keep the Geiru Drop toggle off so the tail is not trimmed away for chaining.
FL2VA | Prompt#
Write a concise prompt that states the on‑screen action, camera intent, and the audible scene (foley, ambience, silence). Clear phrasing helps MiniMax H3 align visuals with sound. If you use a last frame, include a short hint like “settles on the right orchid” so the model understands the target.
FL2VA | Conditioning#
MiniMaxH3ImageToVideo (#962) converts the first and optional last frame plus your prompt into H3 conditioning and an initial AV latent. Set the frame size in Resolution Selector (#961) and the clip length in Length in Frames (#700). Use the same resolution and frame rate across a chain.
FL2VA | Model loading and memory#
The Model Loader sets the FL2VA U‑Net, CLIP, and VAEs. MiniMaxChunkFeedForward (#677), ModelAttentionBackend (#681), and BlockSparseAttention (#877) improve long‑sequence efficiency and keep memory stable. An optional LoRA can be toggled inside the loader when you want a style or subject bias.
FL2VA | Main + Refine passes#
A main pass creates the coarse motion at low resolution, then a short refine pass sharpens details and audio alignment. MiniMaxH3StartNoise inside the refine subgraph sets the starting schedule so refinement adds detail without drifting from the plan.
FL2VA | Decode, trim, preview#
Video and audio are decoded for instant preview, then MiniMaxH3MotionContextTrim (#852) trims end frames for chaining. Use the preview to confirm timing and audibility of the described sounds before approving the clip.
FL2VA | Chain and save#
MiniMaxH3MotionContext (#873) emits trim guidance, passes motion/audio context onward, and works with MiniMaxH3MotionContextSaveLatent (#684) to store the clip. Use the H3 Motion Context Chain panel to Run or Re‑roll the current segment. Approve locks it in and generates the next clip using the carried context. Chain will batch the number of segments you set. Each clip saves to the chain folder for later upscale.
FL2VA | Upscale and build movie#
MiniMaxH3ChainUpscale (#921) reads saved clips, performs latent upscaling, and builds a movie with chained audio. Leave Follow off if you prefer to review low‑res clips before starting upscale. When ready, choose your upscaler and create the final video.
Ref2VA | Reference image#
Load a Character Reference that cleanly shows the subject you want to preserve. Face and hair clarity help. The image guides appearance while your prompt still controls motion and sound.
Ref2VA | Prompt#
Describe the action, camera, and audible scene. Keep identity descriptors out of the prompt if they are fully supplied by the reference image to avoid conflicts.
Ref2VA | Conditioning#
MiniMaxH3ReferenceToVideo (#1963) fuses the reference image and prompt into conditioning and an AV latent. Set the frame size in Resolution Selector (#1961) and the clip length in Length in Frames (#1700). Use the same resolution and frame rate across a chain.
Ref2VA | Model loading, passes, and preview#
The purple groups mirror FL2VA: Model Loader selects the Ref2VA U‑Net, the main and refine passes generate and clean the clip, then decode and trim prepare it for chaining. MiniMaxH3MotionContext (#1873) carries context forward, MiniMaxH3MotionContextSaveLatent (#1684) writes it, and MiniMaxH3ChainUpscale (#1921) assembles the upscaled movie when you are satisfied.
Key nodes in Comfyui MiniMax H3 Motion Context ComfyUI workflow#
MiniMaxH3MotionContext (#873, #1873)#
The heart of chaining. It reads the prior clip’s AV latent and outputs conditioning plus trim guidance so motion and audio roll naturally into the next segment. Tune context_length and audio_context_length to balance how much of the previous clip influences the next. Use hold to keep crucial frames stable at the cut, and toggle geiru_drop only when you want to trim some tail to improve continuity.
MiniMaxH3ImageToVideo (#962)#
Creates conditioning from a first frame, optional last frame, and your prompt. The conditioning node receives its dimensions from Resolution Selector and its frame count from Length in Frames. If you re-enable the last-frame input, a short landing cue in the prompt can reinforce the intended ending.
MiniMaxH3ReferenceToVideo (#1963)#
Builds conditioning from a reference image and your prompt. Keep the subject large and unobstructed in the reference. The conditioning node receives its dimensions from Resolution Selector and its frame count from Length in Frames.
MiniMaxH3SparseHold (#878, #1878)#
Works with BlockSparseAttention to keep attention focused during transitions. Increase hold_frames when you need steadier carries at a cut, and reduce it if you see freezing. Pair with the main sampler’s step count to avoid over‑holding that can stall motion.
MiniMaxH3MotionContextTrim (#852, #1852)#
Keep match_tail enabled to align the audio duration with the video duration so timing errors do not build up across clips. Geiru Drop controls the separate removal of the last 17 video frames. Leave Geiru Drop off in FL2VA when you need to preserve the guided last frame.
MiniMaxH3ChainUpscale (#921, #1921)#
Loads saved clips by index and performs latent upscaling before video assembly. Choose a scale and upscaler model, enable refine if you need extra crispness, and set sound to chain audio to preserve the carried ambience through the final encode.
Optional extras#
- Keep resolution and frame rate fixed across a chain for stable motion and audio hand‑off.
- When using a last frame in FL2VA, disable end trimming so the guided landing is kept.
- Write prompts that name the audible scene even when there is silence.
- Use Seed Management to lock a take for reproducibility or randomize between re‑rolls.
- Each workflow writes to its own chain folder; review low‑res clips first, then upscale the approved set.
Acknowledgements#
This workflow implements and builds upon the following works and resources. We gratefully acknowledge NikoDemon80 for the H3 Motion Context nodes and source workflows, Comfy-Org for the MiniMax H3 model files for ComfyUI, and bbaudio-2025 for the MMH3 Ultimate Upscale nodes for optional chain upscaling for their contributions and maintenance. For authoritative details, please refer to the original documentation and repositories linked below.
Resources#
- NikoDemon80/ComfyUI-H3-Motion-Context
- Comfy-Org/MiniMax-H3
- Hugging Face: Comfy-Org/MiniMax-H3
- bbaudio-2025/Comfyui-MMH3-UltimateUpscale
Note: Use of the referenced models, datasets, and code is subject to the respective licenses and terms provided by their authors and maintainers.



