MAGI 2 via the Tokenator API
About MAGI 2
MAGI-2 by Sand AI is an AI-powered model for video generation and editing with integrated audio. It creates cinematic videos in 1080p resolution and 30 seconds in length using text, images, video, and audio inputs, offering realistic motion and flexible scene control.
Specification
| Full name | MAGI 2 |
| API ID | magi-2 |
| Model vendor | Sand AI |
| Type | Video generation |
| Clip duration | 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 seconds |
| Resolution | 1080p |
| Aspect ratio | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
| Audio | yes |
| Reference | accepted — you may attach an image, but the model works without one |
| Reference video | accepted — you may attach one video |
| Billing | 1080p — 4× |
| Defaults | 4 seconds, 1080p, 16:9 |
| Generation time | up to 15 min |
| Badge | NEW |
| Supported API formats | /v1/videos/generations |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-12-05 |
Upstream providers
| Provider | Multiplier |
|---|---|
| FastCluster | 9× |
A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.
Example request
curl https://api.tokenator.cloud/v1/videos/generations \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "magi-2", "prompt": "a neon city in the rain, slow camera fly-through", "duration": 4, "resolution": "1080p" }'
See also
FAQ about MAGI 2
What is the API ID of MAGI 2?
magi-2 — put this into the model field of your request.
How do I request a video?
POST to /v1/videos/generations with model and prompt. The same key and the same base URL as for text models — only the path changes. The answer comes back when the clip is ready, with a link to the mp4 in data[0].url. The full request description, the parameters and curl, Python and Node.js examples are in the video generation documentation.
Which parameters does MAGI 2 accept?
prompt — the scene description, duration — 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 seconds, resolution — 1080p, aspect_ratio — 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, generate_audio for sound, frame_images to animate an existing frame. Values outside this list are refused with a clear error, and anything you leave out is filled from the model's defaults.
What does one clip cost?
Video is not billed in tokens but in generations from a video bundle: 1080p — 4×. A longer clip costs proportionally more than a short one. The remaining generations are shown in your account and in the key dashboard.
How long does it take?
A render takes from tens of seconds to a few minutes. The connection is held with a keep-alive, and if the model answers with an async job the proxy waits for it and hands back the finished clip — you do not need to poll anything yourself.
What if a render fails?
The claimed generations are refunded automatically — a failed render costs nothing. If it keeps failing, try another aspect ratio or a shorter clip: not every combination is supported by every provider.
Can I try it without writing code?
Yes: the Studio tab in your key dashboard has an Images / Video switch where duration, resolution and aspect ratio are picked with buttons. Video bundles are on sale in your account.