Instructions to use MATLOWAI/MiniMax-H3-Motion-Adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MATLOWAI/MiniMax-H3-Motion-Adapter with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("MATLOWAI/MiniMax-H3-Motion-Adapter") prompt = "A man with short gray hair plays a red electric guitar." input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png") image = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
| { | |
| "115": { | |
| "class_type": "ResolutionSelector", | |
| "inputs": { | |
| "aspect_ratio": "16:9 (Widescreen)", | |
| "megapixels": 0.7, | |
| "multiple": 32 | |
| }, | |
| "_meta": { | |
| "title": "ResolutionSelector" | |
| } | |
| }, | |
| "119": { | |
| "class_type": "VAELoader", | |
| "inputs": { | |
| "vae_name": "minimax_h3/minimax_h3_video_vae_int8_convrot.safetensors" | |
| }, | |
| "_meta": { | |
| "title": "VAELoader" | |
| } | |
| }, | |
| "120": { | |
| "class_type": "VAELoader", | |
| "inputs": { | |
| "vae_name": "minimax_h3/minimax_h3_audio_vae_fp32.safetensors" | |
| }, | |
| "_meta": { | |
| "title": "VAELoader" | |
| } | |
| }, | |
| "121": { | |
| "class_type": "VAEDecodeAudio", | |
| "inputs": { | |
| "samples": [ | |
| "125", | |
| 0 | |
| ], | |
| "vae": [ | |
| "120", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "VAEDecodeAudio" | |
| } | |
| }, | |
| "122": { | |
| "class_type": "VAEDecode", | |
| "inputs": { | |
| "samples": [ | |
| "125", | |
| 0 | |
| ], | |
| "vae": [ | |
| "119", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "VAEDecode" | |
| } | |
| }, | |
| "124": { | |
| "class_type": "BasicScheduler", | |
| "inputs": { | |
| "scheduler": "beta", | |
| "steps": 4, | |
| "denoise": 1.0, | |
| "model": [ | |
| "500", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "BasicScheduler" | |
| } | |
| }, | |
| "125": { | |
| "class_type": "SamplerCustomAdvanced", | |
| "inputs": { | |
| "noise": [ | |
| "129", | |
| 0 | |
| ], | |
| "guider": [ | |
| "126", | |
| 0 | |
| ], | |
| "sampler": [ | |
| "135", | |
| 0 | |
| ], | |
| "sigmas": [ | |
| "124", | |
| 0 | |
| ], | |
| "latent_image": [ | |
| "131", | |
| 1 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "SamplerCustomAdvanced" | |
| } | |
| }, | |
| "126": { | |
| "class_type": "BasicGuider", | |
| "inputs": { | |
| "model": [ | |
| "500", | |
| 0 | |
| ], | |
| "conditioning": [ | |
| "131", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "BasicGuider" | |
| } | |
| }, | |
| "127": { | |
| "class_type": "UNETLoader", | |
| "inputs": { | |
| "unet_name": "minimax_h3/minimax_h3_fl2va_pruned_int8_convrot.safetensors", | |
| "weight_dtype": "default" | |
| }, | |
| "_meta": { | |
| "title": "UNETLoader" | |
| } | |
| }, | |
| "128": { | |
| "class_type": "CLIPLoader", | |
| "inputs": { | |
| "clip_name": "minimax_h3/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors", | |
| "type": "minimax", | |
| "device": "default" | |
| }, | |
| "_meta": { | |
| "title": "CLIPLoader" | |
| } | |
| }, | |
| "129": { | |
| "class_type": "RandomNoise", | |
| "inputs": { | |
| "noise_seed": 20260963 | |
| }, | |
| "_meta": { | |
| "title": "RandomNoise" | |
| } | |
| }, | |
| "130": { | |
| "class_type": "CreateVideo", | |
| "inputs": { | |
| "fps": 24.0, | |
| "bit_depth": 8, | |
| "images": [ | |
| "122", | |
| 0 | |
| ], | |
| "audio": [ | |
| "121", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "CreateVideo" | |
| } | |
| }, | |
| "131": { | |
| "class_type": "MiniMaxH3ImageToVideo", | |
| "inputs": { | |
| "prompt": "a 15-second hyper-realistic cinematic underground martial arts fight. A skilled Asian female fighter wearing an elegant dark blue and gold dragon cheongsam battles a massive muscular bodyguard dressed entirely in black inside a dark abandoned industrial basement. Start with a tense slow cinematic dolly-in, flickering warm yellow lights, wet reflective floor, hanging cables, smoke and dust in the air. The bodyguard suddenly charges and throws a powerful punch. She narrowly ducks, and his fist smashes into a concrete pillar, producing debris and dust. She counters with a fast spinning kick to his ribs, creating a powerful air shockwave and water splash. He catches her leg and throws her, but she performs an acrobatic mid-air flip and lands gracefully with one hand. She then rushes forward with a rapid three-hit martial arts combination. A subtle golden dragon-shaped energy trail surrounds her final palm strike. The impact creates a massive cinematic shockwave, sparks, flying dust, flickering lights and realistic camera shake. The bodyguard is thrown backward. End with a dramatic close-up of the female fighter as the lights flicker and the screen cuts to black. Realistic human movement, consistent faces and clothing, intense choreography, cinematic lighting, speed ramping, dynamic camera movement, realistic motion blur, no slow or floating movement, no cartoon style", | |
| "width": [ | |
| "115", | |
| 0 | |
| ], | |
| "height": [ | |
| "115", | |
| 1 | |
| ], | |
| "length": [ | |
| "132", | |
| 1 | |
| ], | |
| "clip": [ | |
| "128", | |
| 0 | |
| ], | |
| "vae": [ | |
| "119", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "MiniMaxH3ImageToVideo" | |
| } | |
| }, | |
| "132": { | |
| "class_type": "ComfyMathExpression", | |
| "inputs": { | |
| "expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17", | |
| "values.a": [ | |
| "133", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "ComfyMathExpression" | |
| } | |
| }, | |
| "133": { | |
| "class_type": "PrimitiveFloat", | |
| "inputs": { | |
| "value": 5.0 | |
| }, | |
| "_meta": { | |
| "title": "Float (duration)" | |
| } | |
| }, | |
| "135": { | |
| "class_type": "KSamplerSelect", | |
| "inputs": { | |
| "sampler_name": "er_sde" | |
| }, | |
| "_meta": { | |
| "title": "KSamplerSelect" | |
| } | |
| }, | |
| "92": { | |
| "class_type": "SaveVideo", | |
| "inputs": { | |
| "filename_prefix": "video/seedhunt_20260963", | |
| "format": "auto", | |
| "codec": "auto", | |
| "video": [ | |
| "130", | |
| 0 | |
| ] | |
| }, | |
| "_meta": { | |
| "title": "SaveVideo" | |
| } | |
| }, | |
| "500": { | |
| "class_type": "LoraLoaderModelOnly", | |
| "inputs": { | |
| "model": [ | |
| "127", | |
| 0 | |
| ], | |
| "lora_name": "minimax_h3-lightx2v/minimax_h3_fl2v_lightx2v_turbo_4step_v0.1_comfy.safetensors", | |
| "strength_model": 0.5 | |
| } | |
| } | |
| } | |