MAGI-2 on GitHub

SandAI-org repositories
- MAGI-2-preview — “Scaling Video Generation Models Efficiently”; created August 4, 2026; about 890 stars on November 29, 2026.
- MAGI-1 — “Autoregressive Video Generation at Scale”; about 3,800 stars.
- MagiAttention — distributed attention for ultra-long context; needed by MAGI-2 Preview.
- MagiCompiler — plug-and-play compiler optimisations; also needed.
- daVinci-MagiHuman — the single-stream audio-video design MAGI-2 builds on.
- vidmuse-skills and vidmuse-plugin — agent skills and a plugin for Sand.ai’s VidMuse app.
What is inside MAGI-2-preview
inference/pipeline/entry.py— the entry point, launched with torchrun on every visible GPU.configs/— magi2_preview.json and magi2_refiner.json (1080p).prompts/t2v.mdandprompts/i2v.md— system prompts for an LLM that rewrites your prompt into the long JSON caption the model was trained on.scripts/run_demo.shandassets/— a demo batch of stills and prompts.- A Dockerfile, with a published image tagged per commit.
Starting from the repository
Clone it, download the weights from Hugging Face into ckpt/, and run the demo. Report results with the image’s commit tag rather than latest, which moves. Hardware you need
If you were looking for a tool, not code
Code is for people running models. SceneMixer is for people making stories: paste a script and it plans the cast, the storyboard and the shots, then renders on its own video tiers. New SceneMixer accounts get 50 free credits, 15 free reference images and the storyboard of the first project’s first episode, plus one free preview of up to 5 seconds.
Sources
- GitHub, SandAI-org/MAGI-2-preview
- GitHub, SandAI-org organisation
- Hugging Face, sand-ai/MAGI-2-preview (model card)
Facts about MAGI-2 on this page come from the pages above, read on November 29, 2026. Sand.ai changes its pages and prices; check them before you build on a detail. SceneMixer is not affiliated with Sand.ai, and the figures for SceneMixer’s own tiers are read from its live price list each time this page is built.
FAQ
Where is MAGI-2 on GitHub?
The open MAGI-2 Preview code is at github.com/SandAI-org/MAGI-2-preview.
Is the full MAGI-2 code on GitHub?
Not on November 29, 2026; Sand.ai says the open-source release will follow.
Where is MAGI-1 on GitHub?
github.com/SandAI-org/MAGI-1.
What is MagiAttention?
Sand.ai's distributed attention library for very long sequences; the MAGI-2 Preview build needs it.
Does the repo include the weights?
No. The weights are on Hugging Face; the code expects them in ckpt/.
Is the MAGI-2 Preview code open source?
Yes, under Apache 2.0.
Do I need to code to make AI videos?
No. SceneMixer runs in the browser: you paste a script and choose a tier; it does not use the MAGI code.
Updated November 29, 2026