Instructions to use sand-ai/MAGI-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sand-ai/MAGI-1 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("sand-ai/MAGI-1", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - MAGI-1
How to use sand-ai/MAGI-1 with MAGI-1:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
#28
by xiguan97 - opened
README.md
CHANGED
|
@@ -3,7 +3,7 @@ license: apache-2.0
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
pipeline_tag: image-to-video
|
| 6 |
-
library_name:
|
| 7 |
---
|
| 8 |
|
| 9 |

|
|
@@ -12,7 +12,7 @@ library_name: MAGI-1
|
|
| 12 |
-----
|
| 13 |
|
| 14 |
<p align="center" style="line-height: 1;">
|
| 15 |
-
<a href="https://
|
| 16 |
<img alt="paper" src="https://img.shields.io/badge/Paper-arXiv-B31B1B?logo=arxiv" style="display: inline-block; vertical-align: middle;">
|
| 17 |
</a>
|
| 18 |
<a href="https://sand.ai" target="_blank" style="margin: 2px;">
|
|
@@ -235,11 +235,14 @@ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENS
|
|
| 235 |
If you find our code or model useful in your research, please cite:
|
| 236 |
|
| 237 |
```bibtex
|
| 238 |
-
@misc{
|
| 239 |
title={MAGI-1: Autoregressive Video Generation at Scale},
|
| 240 |
-
author={Sand
|
| 241 |
year={2025},
|
| 242 |
-
|
|
|
|
|
|
|
|
|
|
| 243 |
}
|
| 244 |
```
|
| 245 |
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
pipeline_tag: image-to-video
|
| 6 |
+
library_name: magi-1
|
| 7 |
---
|
| 8 |
|
| 9 |

|
|
|
|
| 12 |
-----
|
| 13 |
|
| 14 |
<p align="center" style="line-height: 1;">
|
| 15 |
+
<a href="https://arxiv.org/abs/2505.13211" target="_blank" style="margin: 2px;">
|
| 16 |
<img alt="paper" src="https://img.shields.io/badge/Paper-arXiv-B31B1B?logo=arxiv" style="display: inline-block; vertical-align: middle;">
|
| 17 |
</a>
|
| 18 |
<a href="https://sand.ai" target="_blank" style="margin: 2px;">
|
|
|
|
| 235 |
If you find our code or model useful in your research, please cite:
|
| 236 |
|
| 237 |
```bibtex
|
| 238 |
+
@misc{ai2025magi1autoregressivevideogeneration,
|
| 239 |
title={MAGI-1: Autoregressive Video Generation at Scale},
|
| 240 |
+
author={Sand. ai and Hansi Teng and Hongyu Jia and Lei Sun and Lingzhi Li and Maolin Li and Mingqiu Tang and Shuai Han and Tianning Zhang and W. Q. Zhang and Weifeng Luo and Xiaoyang Kang and Yuchen Sun and Yue Cao and Yunpeng Huang and Yutong Lin and Yuxin Fang and Zewei Tao and Zheng Zhang and Zhongshu Wang and Zixun Liu and Dai Shi and Guoli Su and Hanwen Sun and Hong Pan and Jie Wang and Jiexin Sheng and Min Cui and Min Hu and Ming Yan and Shucheng Yin and Siran Zhang and Tingting Liu and Xianping Yin and Xiaoyu Yang and Xin Song and Xuan Hu and Yankai Zhang and Yuqiao Li},
|
| 241 |
year={2025},
|
| 242 |
+
eprint={2505.13211},
|
| 243 |
+
archivePrefix={arXiv},
|
| 244 |
+
primaryClass={cs.CV},
|
| 245 |
+
url={https://arxiv.org/abs/2505.13211},
|
| 246 |
}
|
| 247 |
```
|
| 248 |
|