MAGI-2 Preview: The Open-Source MAGI-2
What Sand.ai released under Apache 2.0, how it differs from the 480B MAGI-2 flagship, and what it takes to run it on your own GPUs.
Last updated
MAGI-2 Preview is the open-source version of Sand.ai's MAGI-2. It is a 114-billion-parameter model that generates video and sound together, activating 6 billion parameters per token, and it was released in August 2026 under the Apache 2.0 license with weights on Hugging Face and code on GitHub. It makes 10-second text-to-video and image-to-video clips with sound, but the official setup needs eight NVIDIA Hopper GPUs and about 307 GB of weights. The larger 480B MAGI-2 announced on November 24, 2026 is a different model, and its weights have not been released yet.
MAGI-2 Preview vs MAGI-2
| MAGI-2 Preview | MAGI-2 (flagship) | |
|---|---|---|
| Released | August 2026 | Announced November 24, 2026 |
| Parameters | 114B total, 6B active per token | 480B total, about 28B active |
| Clip length | 10 seconds only | 4 to 30 seconds |
| Inputs | Text, or text plus one still image | Text, images, video and audio; up to 10 images, 5 videos and 5 audio clips |
| Output | Video with sound, refined to 1080p | 1080p, 25 fps, video with sound |
| Weights | Open, Apache 2.0 | Announced, not yet released |
| Where to use it | Your own GPUs | Hosted platforms and APIs, including this site |
Sources: the MAGI-2 Preview README and Preview blog post; for the flagship, Sand.ai's MAGI-2 post and launch announcement.
A note on the flagship's open weights. Sand.ai's blog describes MAGI-2 as 480B parameters with about 28B active. The launch post on X says "400B-parameter open weights coming soon". The two figures don't match, and no flagship weights were public as of November 27, 2026. Saining Xie, who replied to the launch post, was among those waiting for them.
On the Artificial Analysis Video Arena, the gap between the two is large. Apiyi's copy of the board shows the Preview at 967 for image-to-video with audio and 1039 for text-to-video with audio, against 1165 and 1150 for the flagship as of November 25, 2026.
What you need to run it
The official README lists these requirements:
- GPUs: eight NVIDIA Hopper GPUs.
- Software: Python 3.12 and a recent CUDA toolkit, plus
ffmpegon your PATH to mux the audio. Without ffmpeg the video is still written, but silent. - Disk: about 307 GB for the weights.
| Component | Size | What it does |
|---|---|---|
| preview | 228 GB | Preview-stage transformer |
| text_encoder | 56 GB | Text encoder (Qwen3.5-27B) |
| refiner | 14 GB | Refiner-stage transformer |
| stable-audio-open-1.0 | 5 GB | Audio VAE |
| vae | 3 GB | Video VAE (from Wan2.2) |
| turbo_vae | 2 GB | Faster distilled decoder, used by default |
Generation runs in two stages. The preview stage denoises the clip at 512×896, then the refiner takes it to 1088×1920; the README explains that dimensions must be multiples of 16, so the "1080p" tier comes out 1088 wide unless you pass an exact output size. The base release uses 100 preview steps and 5 refiner steps, which is where most of the time goes. A step-distilled version that needs far fewer steps is listed as coming soon.
How to run MAGI-2 Preview
These commands are from the official README. Check the repository for the current version before you start.
1. Get the environment. The quickest route is the published Docker image, which has the compiled dependencies already built:
docker pull sandai/magi-2-preview:latest
docker run --gpus all -it -v /path/to/ckpt:/workspace/ckpt sandai/magi-2-preview:latest
To install from source instead, run pip install -r requirements.txt and also install Sand.ai's MagiAttention and MagiCompiler at the revisions pinned in the Dockerfile.
2. Download the weights into ckpt/ in the repository root:
pip install huggingface_hub
hf download sand-ai/MAGI-2-preview --local-dir ckpt
To keep the weights elsewhere, set MAGI2_CKPT_ROOT to their folder instead of editing the configs.
3. Generate a clip. For one text-to-video clip:
torchrun --nproc_per_node=8 inference/pipeline/entry.py \
--prompt "a red fox in snow" --output output/
Add --image with a still to make it image-to-video. To run a batch, bash scripts/run_demo.sh reads prompts from a JSON samples file.
4. Write longer prompts. The README notes that the model was trained on long, structured captions, so a short prompt underuses it. The pipeline has an optional prompt-enhancement step that rewrites your input with a language model first. Our MAGI-2 prompt guide covers the same structured style for the flagship.
Smaller community versions
Community members have uploaded quantized versions to Hugging Face, including INT8, FP8 and NVFP4 builds. Sand.ai doesn't document them and we haven't tested them. Memory figures for these builds circulate on forums; treat them as unverified until you run one yourself.
Run it locally or use it online?
Run the Preview yourself if you have access to a multi-GPU Hopper server, want full control over the weights, or are doing research on the model. Use the flagship online if you need clips longer than 10 seconds, reference images beyond a single still, or simply don't have the hardware. The flagship also scored far higher on the leaderboard; see MAGI-2 vs Seedance 2.5 for where it stands against other models.
No eight-GPU server? The full MAGI-2 runs online here, up to 30 seconds with sound, no setup.
Open the MAGI-2 generatorMAGI-2 Preview FAQ
Is MAGI-2 open source?
MAGI-2 Preview is: Sand.ai released its weights and inference code under the Apache 2.0 license in August 2026. The 480B MAGI-2 flagship announced on November 24, 2026 has not had its weights released yet. Sand.ai has said open weights are coming.
Where can I download MAGI-2 Preview?
The weights are on Hugging Face at sand-ai/MAGI-2-preview, about 307 GB in total. The inference code is on GitHub at SandAI-org/MAGI-2-preview, and a ready-built Docker image is published as sandai/magi-2-preview.
What GPU do I need to run MAGI-2 Preview?
The official README lists eight NVIDIA Hopper GPUs, Python 3.12, a recent CUDA toolkit and ffmpeg. It does not document a single-GPU or consumer-GPU setup.
Can MAGI-2 Preview run on a single consumer GPU?
Not with the official setup. Community members have posted INT8, FP8 and NVFP4 versions on Hugging Face, but Sand.ai does not document them and we have not tested them, so treat any VRAM figure you see quoted as unverified.
How long are MAGI-2 Preview clips?
10 seconds, which the README says is the only duration the model currently supports. The flagship MAGI-2 makes 4 to 30 seconds.
Can I use MAGI-2 Preview commercially?
The repository is released under Apache 2.0, which permits commercial use under its terms. Before shipping a product, read the license in the repository and on the Hugging Face model card, and check the licenses of bundled components such as the text encoder and VAEs. This is not legal advice.
Which model does this site run?
This site runs the MAGI-2 flagship through a hosted API, not the Preview. We do not host or distribute model weights.