Home Creators Posts Import Register Favorites Logout

Downloads

Content

Video - https://youtu.be/jkMf7IAcm7c

Overview

MiniMax H3 is awesome... and on top of even more speed and lower VRAM usage thanks to Turbo LoRAs and nodes from the amazing Kijai, we can now also make longer context videos and have Custom Keyframes!

Thankfully I've now had a day where using my 3090 in the UK doesn't result in cooking everything in the entire house. I think I've lost track of the number of heatwaves so far this summer. Phew!

When it comes to speeding things up, one of the many new Turbo LoRAs is the Lightx2v 4-step Turbo LoRA for MiniMax H3, which gives us videos in just 4 steps (down from 20). Combine that with some nodes from Kijai - Low Attention VRAM and Chunk FeedForward, and those with Nvidia 3060s (or better) will now be able to make their MiniMax H3 generations in around A FIFTH OF THE USUAL TIME! There also also a few other variants, all of which work in much the same way. Often a few more steps (6 or 8) can improve things, but either way they are great for prototyping.

These Turbo LoRAs are available for both First/Last and Reference models, with a wide variety to choose from.

If you found higher resolution videos were giving you Out Of Memory (OOM) errors, the new VRAM savers should make those issues a thing of the past. Try cranking up the resolution or length if you did get OOM before!

Faster & lower VRAM usage? What's not to like?

You want more? Ok. How about an INT8-ConvRot VAE that is not only faster, but half the size of the fp16?

Once again, Kijai has us covered - and you can have it all in one workflow!

Workflow Information

To open the workflow, either drag the .json file into ComfyUI, or use File -> Open (ctrl-o).

Update ComfyUI

An updated version of ComfyUI is required (at least ComfyUI: v0.31.0-8-gcbbc9dab), so make sure to update prior to use:

Model Downloads

There are a wide variety of model sizes available, but I've been using the INT8 / NVFP4 versions because they are smaller (and faster)!

Links are provided in-workflow:

Note the NEW Video VAE option and Turbo LoRAs. I've linked the smaller LightX2V LoRA as an example, but there are other versions too. I've tested pretty much all of them and they are all very similar, so for lower VRAM systems sticking with the ones which have smaller file sizes is a great option.

Custom Nodes

Only a few custom nodes are required:

Model Loaders

There are 2 MiniMax H3 models - one for References (REF) and one for First/Last frame (FL):

Be sure to select the correct unet_name for each group! The fl2va model should be the one selected in the "Load Model - FL" group:

The ref2va model should be selected in the "Load Model - Ref" group:

Note: I'm using the pruned_int8 versions, but you can use whichever model is best for you!

I've also added an extra note with details about which models you should select in each group:

In case you want to use more than 1 LoRA, I've gone with the Rgthree Power LoRA Loader:

This node also features an easy on/off switch so you don't need to disable the LoRA loader if you don't want to use the LoRA - simply flip the switch!

Model Options

There are various model options, the first of which is a Fast Group Bypass switch to let you switch been the First/Last model and the Reference model:

First/Last model enabled example:

Ref model enabled example:

The model loader group you aren't using turns purple, which means it is bypassed. An extra note with some details on using switches in ComfyUI is now also included. Don't be scared to test things out!

Note that you will get issues if you go over the 100K token budget. This can happen with extreme settings such as 2mp, 16s videos with audio and image inputs. This isn't a problem with the LoRA though, as it will happen without it as well! Again, Kijai may be able to pull off some code wizardry in the future, but something to be aware of if you do get grey video output.

I've included two Sage Attention options - the original Patch Sage Attention KJ & MiniMax H3 Mem Eff Sage Attention Patch. Either options give a nice speed boost, but the original seems to change outputs less. If you haven't installed sage attention, simply flip the switch to bypass the Mem Eff one, or set the original one to disabled.

If you don't have sage attention installed (or even if you do!) then the Comfy Kitchen Attention is another alternative to do much the same thing:

ModelSamplingMiniMaxH3 gives shift values like we're used to with image generations. The defaults are just fine, but if you like experimenting, that node is for you!

MiniMax H3 Low VRAM Attention also does what the name suggests, and combined with the MiniMax H3 Chunk FeedForward node can offer considerable VRAM savings!

Video Settings

Set the length (in seconds) and video resolution here:

You may wish to start off at 0.2 megapixel resolution to start with to see how things go (this is quite fast and a great way to test prompts):

Video rendering can take a while depending on the length & resolution you use, as well as your own computer hardware.

The KSamplerSelect and Steps settings will apply to all Ksamplers.

Prompting

Only a positive prompt is required (no negative prompting):

The Qwen3-VL model has decent understanding, so prompts can be quite complex! The prompt guide is also included if you like a long read, but you don't have to follow that at all (and in some cases it may be better not to).

Input Options

There are a lot of input options!

As usual, the switches will toggle between "yes" and "no". If a group is set to "yes" then it will be used. In the example screenshot above, the group for IMG_0 has been enabled ("yes").

Say, for example, you instead wanted only a Last Frame image (assuming you're using the FL model), then you could say "yes" to the Last Frame group only:

You'll see the nodes in the group(s) you said "yes" to will no longer be coloured purple (aka bypassed) - note how Load IMG_0 is bypassed! Don't forget to pick the image you want to use as well.

You can change the image size using a number of methods:

The default resize_type is scale total pixels, but there are other options.

Note that the Ref model will scale images anyway, but with First/Last you may wish to change images to match your video resolution. It is a good idea to have image aspect ratios which match the resolution you select for First/Last images. A square image, for example, will get stretched out if you use a non-square aspect ratio for the video.

First and Last Frame notes

If using the FL model then IMG_0 is the First Frame and IMG_1 is the Last Frame. The other images and audio will have no effect. When using the FL model, if the First Frame is enabled, it will always be first, regardless of your prompt - same goes for the Last Frame. No need to use the triangular brackets like with the Ref model.

Ref Model Index Notes

When using the Ref model then all inputs can be used - the 4 images, video (and audio) & any custom audio too - plus the images can be displayed in any order (you won't always get the First Frame (IMG_0) first), or simply as references for character clothing, hair or faces, for example.

Your prompt can make all the difference. Say for example, like above, you only have IMG_1 enabled. Some people prefer indexing starting at 1, and this can work, however look what happens if you do in the examples below:

Example 1: This uses <Picture 0> in the prompt but IMG_1 is being loaded. In this case, you probably won't get the likeness from the image:

Example 2: Same prompt, same seed, same number of steps. However, using <Picture 1> in the prompt now works MUCH better (even though the prompt is for a woman!):

You can also increase the number of inputs (by adding more image/video/audio loaders along with set nodes & attaching their get nodes in the engine area) - but there are some limits, as detailed in the note provided:

Exceed the limits, and you'll get a grey or blocky video.

Custom First/Last Frames

When using the First/Last model, it is now possible to pick a keyframe index for your images. Maybe you want a particular image part-way in, or perhaps a mid-position? Pick your own custom First/Last images and positions, then enable the option to use them:

As you can see it is wired up for 3 images, but you could have 1, 2, 3, 4 or whatever!

Inputs

You can use more images if you like, but I've wired up 4 to start with:

There are also 2 x custom video inputs, and 2 x custom audio options. I found on occasion that certain videos without sound could confuse the VHS nodes - but the addition of the Any Switch seemed to prevent such errors. If you do get an error saying that you video doesn't have sound (and so the Video node doesn't want to play ball), simply disconnect the audio output noodle.

The voice cloning works great with 5 second audio clips, but may also work fine with shorter durations. Let me know if you get away with much shorter extracts!

Input Image Masking

Input Images now have options manual/auto-masking:

I found that sometimes it was a bit tricky and cumbersome to write prompts telling the model to change certain features - like if the image is wearing a hat or a particular costume and you don't want that part. Masks get rid of this by allowing you to send in only the data you're interest in, such as only the face, hat, a particular bunch of flowers or whatever.

By default the whole image will be sent in as usual, but you can opt to use your own manual mask or an automatic one if using a mask at all.

Sampler

By default, the sampler settings assume you're using the TURBO LoRA:

I've included a note with some decent alternatives, but explore away to find your own preferred settings!

Base Output

The output selection uses the Video Combine node, so you can adjust the various options there, such as for generating PNG or GIF outputs:

In the example video face-swap above, you may find the generated audio isn't as good as the raw audio going in. If the audio is meant to be exactly the same as one particular input, then the "Use Raw Audio?" switch is for you! Make sure to select the audio you want to use (in the example screenshot above it is set to REF_AUDIO_0, but it could be any audio input you have enabled), and flip the switch. The generated video will then use the audio exactly as it has been input - no processing by MiniMax H3 at all.

FL Model Context Extensions

If you want to make your MiniMax H3 videos longer than 15s, or extend existing ones, you can now do so in various chunks:

Two extensions are included, but you can just copy & paste the various groups to add 3, 4, 5, 6 or however many extensions you like.

Each extension has a new prompt:

There is also a final video concatenation group which puts all the chunks together:

Remember to select the final set in the GET nodes (defaults to 2 extensions).

Frame Interpolation

Should you wish to go up to 48fps (or more), then enable the Frame Interpolation group and download your choice of RIFE/FILM model:

Change the value in the FPS Multiplier for even more FPS goodness.

The Engine

If you do want to play with the engine, it is up and outside of the usual map:

The MiniMax H3 Reference to Video node can take a few more inputs - so if you want more than 4 images, for example, then connect away!

If you are extending beyond the 2 extensions provided, you'll also need to duplicate the FL Model conditioning node for each new extension you add:

Don't forget to increment the counts for any length, conditioning and latent nodes to match however many extras you add.

Head Swap Example

The head swap example is the same workflow, but with an example of using the switches provided.

Reference Model Enabled.

IMG_0 Enabled.

Load Video Reference 0 Enabled (Audio not disabled).

Use masked image Enabled.

This will take the image you provide (or the default Comfy Example) and send only the head to to reference model:

For whatever video you provide...

... it will then replace the head:

You can, of course, provide any face image you like:

And the result will match your image:

Enjoy! :)

Files

Comments

B.D. Thomas

Hi long-teethed one :-) I have a rather general question: Lately, most workflow tutorials have started with "Update ComfyUI". I’m always a little hesitant about this step because I’m worried that it might cause old workflows to stop working. What has been your experience with this?

Fizzle

Thanks! I’ve had pretty good results with this workflow and the FL model so far. I’ve mostly stayed away from turbo as I don’t mind waiting longer if it means better quality. Gen times and quality seem reasonable with a 5080 and 32GB RAM with your other time/VRAM saving options. I do have two questions. 1) Have you tested Comfy Kitchen and Spectrum? I’ve seen comments about them, but no experience myself yet. 2) I’ve struggled more with Ref model and wonder if you have more tips related to that? For example: Character swap and style transfer when using a realistic video with 2d character references. Stuff like not applying the style to the video’s background as well or the style gets altered too much. With FL model style was matching perfectly. Thanks again!

KapturedKing

Really enjoy you content and workflows, as much as they change due to new nodes. Still #1 in my books, I follow most of the major patreon members.

RMD

Thanks so much for this, this workflow is amazing! Just one question, how do I add a reference image to the "extend" workflow?

MatFi

Am I correct in thinking that prompts for the extensions should be in the FL2VA format, even if we're starting with the ref model? And also, is the FL2VA model being used for the extensions even if we start with the Ref model? (in which case, might it be better to use the hybrid model for both?)

Dave The Drunk

I've spent about a week now really getting to learn comfyui for Minimax H3, trying different workflows and watching a lot of different ComfyUI youtubers, and I just wanted to tell you, you are one of the best. I have to admit once I opened up this workflow I was super intimidated because it's soooo big....but after having a better understanding of comfy and trying other workflows, yours is so damn good. super clear instructions, and any time I got stumped or confused about something I just referred back to your companion video and it helped clarify things perfectly. Thank you. lastly any trouble I did run into was mostly because of my lack of knowledge of Comfy and not related to your work. cheers mate!

MC

I am pretty new to this and I like to attempt learning with out all the tutorials thru trial and error. I’ve done a decent job so far. Then I joined your pateron and grabbed a few of your workflows after seeing your videos. All of a sudden everything clicked and made sense. While some things are still complete mysteries I wanted to say thanks ! Also your recent WF with turbo ultra was very helpful ! The SAM masking finally gave me character consistency along with clothing or scenery. Being on AMD (w7900 48g) the comfy kitchen was a game changer. I am probably doing a bunch of stuff wrong that would make you crazy but it’s a lot of fun. I’m not understanding why or how people are getting a 0.4mp render to look so good though. I’m currently doing 10 second clips at 0.9mp in around 20 minutes which may or may not be efficient.