Generating Minute-Long Videos Locally with MiniMax H3: A ComfyUI Context Loop Workflow Guide

MiniMax H3 + ComfyUI context loop nodes enable local generation of coherent 1+ minute videos.
A Reddit user demonstrates generating coherent videos exceeding one minute locally using MiniMax H3 and ComfyUI's context loop nodes. The workflow passes 22 frames between segments for motion continuity, uses reference character sheets for consistency, and employs resolution-tiered debugging for efficiency. With LightX acceleration and Sage Attention, the full render takes ~70 minutes on consumer hardware.
A Local Breakthrough in Long-Form Video Generation
For a long time, AI video generation has been limited by duration — most models can only produce clips lasting a few seconds, and once you need to create coherent content exceeding one minute, character consistency, style continuity, and scene transitions all break down completely. However, a recent practical case shared by a Reddit user demonstrates that generating videos longer than one minute locally is entirely feasible using the MiniMax H3 model combined with context loop nodes in the ComfyUI ecosystem.

The core of this approach isn't some new closed-source model — it's a community-driven combination of open-source nodes. ComfyUI is a Node Graph-based Stable Diffusion graphical interface tool that, unlike traditional WebUI, abstracts every step of image/video generation (model loading, prompt writing, sampling, post-processing, etc.) into independent, drag-and-connect nodes. This design lets users assemble complex generation pipelines like building with Lego, and enables community developers to contribute custom nodes as plugins, dramatically lowering the barrier for developing and distributing advanced features. It's precisely this open architecture that allows third-party nodes like the H3 context loop to be quickly integrated into existing workflows.
The original author built upon the Comfyui-H3-Motion-Context node developed by Nikodemon, ultimately choosing ethanfel's fork ComfyUI-MiniMaxH3-Contex-Loop. These nodes achieve smooth transitions between segments by feeding the last 22 frames of the previous clip as context input for the next generation.
MiniMax is an AI company focused on multimodal large models, and its H3 video generation model supports both Text-to-Video and Image-to-Video capabilities. A notable characteristic of H3 is its high structural stability across different random seeds under the same prompt — meaning the composition and subject don't shift dramatically with seed changes. This makes iterative debugging highly efficient: users can first lock in a satisfactory prompt, then fine-tune details by switching seeds.
Context Looping: The Key to Long Video Coherence
Passing Motion Context Through Previous Frames
The most clever aspect of this node is its "context passing" mechanism. Traditional long video generation often simply stitches together independently generated segments, causing visible jumps at transitions. The H3 context loop node feeds 22 frames from the previous segment to the next generation, allowing the model to "remember" what's happening in the scene, thereby ensuring motion continuity.
From a technical perspective, in video generation models, the "context window" refers to the number of historical frames the model can reference when generating the current frame. Most video diffusion models have limited context windows (typically ranging from dozens to just over a hundred frames), and once generation exceeds the window length, the model "forgets" earlier visual information. The context loop node's approach is similar to a sliding window: it takes several frames from the end of the previous segment (22 frames in this case, corresponding to less than one second of footage) as conditional input for the next generation call, letting the model "see" the end state of the previous segment at the beginning of the new one, thereby maintaining coherence in motion trajectories, lighting direction, and character poses. This is essentially a local Markov assumption — current segment generation depends only on the tail state of the previous segment, not the entire history.
This leads to a practical creative technique: when planning shots, the author deliberately ends each scene with a "still transition beat" — such as a character standing still, or a close-up of an object. Since the ending shot of each segment needs to connect with the opening shot of the next, still frames significantly reduce transition difficulty. Of course, if shooting a single continuous long take with constant motion, such deliberate beats aren't necessary.
Locking Character and Style Consistency with Reference Images
In long videos or multi-shot generation, character consistency is a widely acknowledged challenge. Since diffusion models start from random noise each time, even with identical text descriptions, the same character's facial features, clothing details, and even body proportions can drift across different segments.
To maintain character and style consistency throughout the long video, the author used reference images (ref images). Specifically, he used GPT to generate two character sheets as visual anchors for the entire generation process. Character sheets typically include front, side, and back views of the character, along with key costume and color annotations, providing the model with more comprehensive visual anchoring information. The reference image approach works by injecting additional visual conditions into the model, causing it to continuously align with the visual features in the reference images during the denoising process, effectively suppressing inter-segment drift in character appearance.
Additionally, the node provides a global prompt input that is automatically prepended to every scene's prompt. The author used this to write overall style descriptions and rules for how to refer to each main character. To prevent "character bleed" (where features of different characters contaminate each other), he also detailed the appearance of all other characters in each scene's prompt, explicitly telling the model these are different individuals.
Workflow in Practice and Efficiency Optimization
Resolution-Tiered Debugging Strategy
The author shared a pragmatic efficiency optimization approach. Since MiniMax H3 produces highly stable results across different seeds with the same prompt, he first iteratively debugged prompts at 0.5–1MP low resolution, polishing out any odd details that needed fixing, then switched to 1.5MP for final rendering.
Video generation VRAM usage scales proportionally with resolution (total pixel count) and frame count. In megapixels (MP), 0.5MP roughly corresponds to 720×720 or similar dimensions, while 1.5MP approaches 1080p level. In diffusion models, latent space size is proportional to image resolution — higher resolution means larger latent tensors and more attention computation.
The final complete render took approximately 70 minutes, averaging about 10 minutes per 15-second segment. This speed is quite acceptable for minute-long videos. Notably, this segmented approach has another clever use: to increase resolution, you can split an 8-second segment into two 4-second segments generated separately, trading limited VRAM for higher image quality. This is essentially a classic time-space resource tradeoff — shortening single generation duration to free up VRAM for spatial resolution within a fixed VRAM budget.
Reviewable, Re-rollable, with Checkpoints
This node setup also demonstrates thoughtful engineering reliability. Each scene can be previewed individually after generation — if unsatisfied, you can re-roll or adjust the prompt without scrapping the entire sequence. Additionally, a checkpoint is generated after each accepted segment, so if the program crashes or you need to pause midway, you can resume from the breakpoint. Once all segments are complete, the node automatically concatenates all clips along with audio into a finished piece.
Hardware Requirements and Parameter Configuration
The author's test environment was an RTX 5090 with 96GB DDR4 RAM, but he explicitly stated that this approach is viable on lower-end GPUs as well. For generation configuration, he used LightX acceleration, 6-step sampling, 0.8 strength, euler basic sampler, and enabled Sage Attention optimization.
LightX is an acceleration scheme for diffusion model inference, typically combining distillation or consistency training techniques to enable models to produce high-quality results with fewer sampling steps. Traditional diffusion models might require 20-50 sampling steps for clear output, whereas after acceleration optimization, only 4-8 steps can achieve similar results. In this case, the author used 6-step sampling with 0.8 strength (meaning denoising starts from the 80% noise level, preserving some input condition information), achieving a good balance between speed and quality. The Euler sampler is one of the most basic ordinary differential equation solvers, with low computational overhead and good compatibility with few-step sampling schemes.
Sage Attention is an acceleration optimization technique targeting Self-Attention computation in Transformer architectures. Standard self-attention has O(n²) computational complexity, where n is the sequence length (corresponding to frames × spatial tokens in video models), which creates enormous VRAM and compute overhead when processing long sequences. Sage Attention uses quantization-aware approximation strategies to significantly reduce attention computation VRAM usage and latency with virtually no loss in generation quality, making it possible to run large video models on consumer-grade GPUs.
To facilitate community reproduction, the author also provided complete prompts and Claude-assisted setup instructions (Pastebin), as well as two workflow file versions created by a friend (hosted on HuggingFace). According to his feedback, this custom ComfyUI workflow is more approachable than the official example workflow.
Open-Source Ecosystem Drives Long Video Generation Forward
The value of this case lies not just in the result of "being able to produce minute-long videos," but in demonstrating how the open-source community can decompose complex long video generation into a reproducible, debuggable, and resumable engineering pipeline through node-based, modular approaches. Context frame passing, reference image locking, global prompt prepending, resolution-tiered debugging — each component is the product of accumulated experience.
For developers and creators looking to explore long-form video creation locally, MiniMax H3 combined with this context loop node provides a practical path that doesn't depend on cloud-based closed services and keeps costs manageable. As models continue to improve their understanding of context and concepts, generating high-quality long videos locally is gradually transitioning from "experimental attempt" to "usable tool."
Key Takeaways
Related articles

Free Unlimited Claude Code Solution: Agnes AI + CC Switch Setup Guide
No paid subscription needed — pair the free AI platform Agnes AI with the open-source tool CC Switch to provide a backend for Claude Code, enabling unlimited free calls to text, image, and video models. This guide covers the full setup, test results, and usage boundaries.

A Complete Zero-Cost Guide to Getting Started with Claude Code for Beginners in China
A beginner's guide to Claude Code for users in China: two installation methods (command line and IDE plugin), full configuration steps for replacing the official API with the free domestic LongCat model, and a hands-on demo of building a small tool with natural language, plus tips.

When the NSA Gets Involved: The AI Supply Chain Crisis Behind Open-Source CVEs and API Key Hijacking
Multiple open-source projects disclosed severe CVEs in one day, PHP flaws alarmed the FBI, and Railway and OpenCode were breached with API keys stolen. This article breaks down the vulnerability window, AI-accelerated exploitation, and the AI supply chain crisis behind the API key black market, with a developer defense checklist.