MAGI-2 API Guide
A plain reference for what a MAGI-2 request takes - modes, inputs, ratios, durations and limits - and the ways to call the model, from Sand.ai's API platform to the no-code studio on this site.
Comparison
MAGI-2 request parameters
The inputs MAGI-2 accepts as wired up on Magi2 Studio.
| MAGI-2 request parameters | Parameter | Accepted values | Notes |
|---|---|---|---|
| mode | frames, reference | frames: text, first frame or first + last frame. reference: reference images, videos and audio. | |
| prompt | Text, up to 15,000 characters | Describe action, camera and sound in one prompt. | |
| aspect_ratio | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, auto | auto follows the first frame (frames mode only). | |
| duration | 4–30 seconds | Any whole second. | |
| resolution | 1080p | Fixed. | |
| images | Up to 2 (frames) or 10 (reference) | First and last frame, or reference images. | |
| videos / audios | Up to 5 each | Reference mode only. |
Field names describe the model inputs as wired up in the studio. The Magi2 Studio REST API names them first_frame_url, last_frame_url, image_urls, video_urls and audio_urls; see the API reference.
Features
Ways to access MAGI-2
Sand.ai API platform
Sand.ai runs its own API platform at platform.sand.ai for developers who want direct access to the model. Access terms and limits are set there.
Self-host the open Preview
The MAGI-2 Preview checkpoints are on Hugging Face under Apache 2.0: 10-second clips and a documented setup of 8 NVIDIA Hopper GPUs.
No-code on Magi2 Studio
Generate in the browser with no API key. Every run costs 18 credits per second of finished video, in any mode.
Good to know
Limits worth planning around
4–30 seconds per clip
Any whole second from 4 to 30. There is no shorter or longer setting.
1080p output only
Every clip comes out at 1080p; there is no 720p or 4K option.
Up to 10 images, 5 videos, 5 audio clips
Frames mode takes up to 2 frame images; reference mode takes up to 10 images, 5 reference videos and 5 reference audio clips.
Same price for every mode
Text, frames and reference runs all cost 18 credits per second, so a 5-second clip is 90 credits.
Test prompts before you write code
Run your prompts in the browser first, so you can see the output before you build a request around them.
FAQ
MAGI-2 API FAQ
Does Magi2 Studio offer a MAGI-2 API?
Yes. Magi2 Studio has a REST API at magi2.studio/v1 and a remote MCP server for AI agents. Create an API key in the dashboard, send a task to /v1/generate and poll /v1/status for the video. API calls use the same credits as the studio. Sand.ai also runs its own platform at platform.sand.ai.
How much does MAGI-2 cost on Magi2 Studio?
18 credits per second, the same in every mode: a 5-second clip is 90 credits and a 30-second clip is 540. New accounts get 90 free credits.
What inputs does MAGI-2 accept?
Frames mode takes text, a first frame, or a first and last frame (up to 2 images). Reference mode takes up to 10 reference images, 5 reference videos and 5 reference audio clips. Prompts run up to 15,000 characters.
How long can a MAGI-2 API video be?
On Magi2 Studio, 4 to 30 seconds, in whole seconds. The open MAGI-2 Preview supports only 10-second clips.
Is Magi2 Studio affiliated with Sand.ai?
No. Magi2 Studio is an independent service and is not affiliated with Sand.ai; it accesses MAGI-2 through a third-party API provider.