No Subscription From $9.90 $12.90 · Up to 35s of Native 1080p Audio-Video — Every feature unlocked From $9.90 · Up to 35s of 1080p Video Get Started →
Ready to render real 1080p MAGI-2 videos? Run Image-to-Video, Text-to-Video, or Reference-to-Video online with pay-as-you-go credits.

What is ComfyUI-MAGI2 and How Does It Work?

ComfyUI has become the industry standard node-based GUI for generative visual workflows. With the release of MAGI2 open weights (sand-ai/MAGI-2-preview on Hugging Face), creators and technical artists can now integrate Sand AI's Multi-Head Latent Mixture-of-Experts (MagiMoE) directly into custom ComfyUI graph pipelines.

Unlike traditional text-to-video diffusion graphs that generate silent frames requiring downstream Wav2Lip or Foley nodes, the MAGI2 ComfyUI workflow processes video latents and audio waveforms in a single synchronized attention backbone at native 1080p 25fps.


MAGI2 ComfyUI Installation & Node Setup

To install and run MAGI-2 inside your ComfyUI environment, follow these steps:

1. Clone the Custom Node Repository

Open your terminal in your ComfyUI installation directory and clone the node wrapper:

cd ComfyUI/custom_nodes/
git clone https://github.com/sand-ai/ComfyUI-MAGI2.git
cd ComfyUI-MAGI2
pip install -r requirements.txt

2. Download Model Checkpoints from Hugging Face

The official preview open weights reside at sand-ai/MAGI-2-preview under an Apache 2.0 license:

# Using huggingface-cli to download weights into models/checkpoints
huggingface-cli download sand-ai/MAGI-2-preview \
  --local-dir ComfyUI/models/checkpoints/MAGI-2-preview \
  --include "*.safetensors" "*.json"

3. Load the Official Workflow JSON

  1. Launch ComfyUI: python main.py --listen 0.0.0.0 --port 8188
  2. Drag and drop the template magi2_i2v_audio_basic.json from the node's examples/ folder into your browser window.
  3. Wire the MAGI2 Model Loader, MAGI2 Clip Text Encode, and MAGI2 Latent Video & Audio Sampler nodes.

ComfyUI Hardware Requirements & VRAM Thresholds

Because MAGI2 utilizes a 114B parameter Mixture-of-Experts (Preview) or 480B parameter Flagship model, VRAM management is the critical consideration for local ComfyUI execution:

Deployment Precision Minimum GPU Configuration Peak VRAM Frame Generation Rate Practicality
BF16 Full Weights 4× or 8× NVIDIA H100 80GB (NVLink) ~260 GB pooled ~1.2s per generated video second Studio production clusters only
FP8 Native Hopper 2× H100 80GB or 1× H200 141GB ~148 GB pooled ~2.0s per generated video second High-end local ML workstations
GGUF / INT4 Quantized 2× NVIDIA RTX 4090 24GB (48GB total) ~44 GB pooled ~8–15s per video second (CPU offload) Experimental community testing
Single 16GB / 24GB GPU 1× RTX 3090 / 4090 24GB Exceeds single VRAM Out of Memory (OOM) Use Cloud Generation (~$0.08/s)

Why Single-GPU 24GB Cards Struggle with ComfyUI MAGI2

Even though MAGI-2 Preview only activates ~6 billion parameters per token during denoising, all 114 billion expert parameters must remain in memory because the router dynamically picks different experts for every temporal patch. Offloading non-active experts over system PCIe memory causes severe bus bottlenecks, reducing inference speed to unusable levels.


ComfyUI Workflow vs Online Cloud Generator

If your local rig does not possess multi-GPU Hopper memory, running ComfyUI locally may result in frequent OOM errors or hour-long generation times. Here is how local ComfyUI compares with our browser-based MAGI2 AI Video Studio:

Feature Local ComfyUI Setup MAGI2 Best Web Studio
Hardware Needed Multi-GPU cluster (≥48GB–148GB pooled VRAM) Any browser (Mac, Windows, Mobile, iPad)
Setup Overhead Python, CUDA, custom nodes, 100GB+ downloads Instant Google login; 0 software install
Video Quality 1080p 25fps (subject to quantization loss) Full 480B Flagship unquantized 1080p
Native Audio Requires complex audio tensor routing Automatic synchronized dialogue & foley
Billing Model High local electricity & $2,000–$30,000 GPU costs Pay-as-you-go from $9.90 (Pricing)

Recommended ComfyUI Nodes & Parameters

When configuring your MAGI2 graph:

  • magi2_steps: Set to 30–35 for balanced motion fidelity and generation speed.
  • cfg_scale: Keep between 5.0 and 6.5 to maintain motion dynamics without latent artifacting.
  • enable_audio: Toggle True to output 48kHz stereo WAV alongside the MP4 stream.
  • audio_prompt: Include acoustic negative constraints like "no background music, clear room tone only" to prevent noisy audio drift.

For detailed prompt formatting and script syntax, check our MAGI2 Prompt Generator and Lip-Sync Dialogue Guide. If you need exact cluster VRAM planning, use our Pricing & VRAM Calculator.

Frequently Asked Questions

MAGI2 ComfyUI FAQ

How do I install MAGI2 in ComfyUI?

You need the custom node ComfyUI-MAGI2, the sand-ai/MAGI-2-preview Apache 2.0 weights from Hugging Face, and a compatible multi-GPU or quantized inference runtime.

Can I run MAGI2 ComfyUI on an RTX 4090 (24GB VRAM)?

Because MAGI2 is a 114B MoE architecture requiring all expert weights to remain in memory, unquantized BF16 needs 260GB+ pooled VRAM (multi-H100). FP8/INT4 experimental setups can fit across dual RTX 4090s (48GB) with offloading, but single 24GB cards will OOM without extreme quantization.

Does the MAGI2 ComfyUI node generate native audio?

Yes, the MAGI2 ComfyUI sampler outputs both video latents and a synchronized 48kHz audio waveform node simultaneously, without needing separate Wav2Lip or TTS nodes.

What is the best alternative if my GPU cannot run MAGI2 locally?

If you do not own a multi-GPU Hopper or dual-4090 workstation, using our web studio at magi2.best provides instant access to the full 480B model from $9.90 with no setup or local hardware requirements.

Director Notes & Prompt Exchange Tested a MAGI2 timeline prompt, lip-sync cue, or vLLM-Omni config? Share what worked below.