Updated
What is the MAGI-2 API?
The MAGI-2 API is live on UnificAlly as sand-ai/magi-2, from $0.072 per second. Released in Sand AI's MAGI-2 launch post on November 24, 2026, MAGI-2 is a 480B-parameter Multi-Head Latent MoE model (~28B active parameters per token) trained on 4 trillion tokens for unified audio-video generation.
It renders 1080p video at 25 frames per second in lengths from 4 to 30 seconds, generating dialogue with lip sync, foley, ambience, and music in the same pass. Pulled live on November 29, 2026, MAGI-2 holds #1 on Artificial Analysis Video Arena I2V v2.1 (1163 Elo) and #1 on I2V-Silent v2.1 (1153 Elo), along with #2 on T2V-Silent v2.1 (1144 Elo) and #7 on Text to Video v2.1 (1150 Elo). One MAGI-2 API endpoint covers text-to-video, first-and-last-frame transitions, and reference-to-video across six aspect ratios.
MAGI-2 API specs
| Model ID | sand-ai/magi-2 |
| Endpoint | POST https://api.unifically.com/v1/tasks |
| Request types | Text-to-video, first/last frame, reference-to-video |
| Duration | 4 to 30 seconds (default 5) |
| Resolution | 1080p at 25 fps |
| Aspect ratios | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 |
| References | Up to 10 images, 5 videos, and 5 audio files (20 total) |
| Audio | Synchronized dialogue, SFX, ambience, and music (audio: true default) |
| Rate | $0.072/sec |
Billing runs strictly per output second, with no subscription and no extra charge for aspect ratios, audio, or reference files. See the pricing page for live rates across every video model.
How to use the MAGI-2 API
- Create a bearer token on the API keys page to authenticate requests to the MAGI-2 API.
- Submit a
POSTrequest tohttps://api.unifically.com/v1/taskswith"model": "sand-ai/magi-2"and yourinputparameters. - Poll
GET /v1/tasks/{task_id}(or configurecallback_url) untilstatusiscompletedand the output MP4 URL is ready.
curl -X POST https://api.unifically.com/v1/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "sand-ai/magi-2",
"input": {
"prompt": "One continuous shot inside an old archive room. Warm desk light grazes brass instruments as a gentle wind moves a curtain. Ambient room tone and quiet street noise outside.",
"aspect_ratio": "16:9",
"duration": 5,
"audio": true
}
}'
The MAGI-2 API returns a task identifier right away:
{
"code": 200,
"success": true,
"data": {
"task_id": "abc123def456",
"status": "processing"
}
}
Fetch the task status with your bearer token to retrieve the completed video URL:
curl https://api.unifically.com/v1/tasks/{task_id} \
-H "Authorization: Bearer YOUR_API_KEY"
MAGI-2 API parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
prompt | string | required | Video prompt (1 to 15,000 characters). Mention uploaded assets in array order as Image 1, Video 1, and Audio 1 |
start_frame_url | string | none | First-frame public image URL (up to 28.61 MB). Alias: start_image_url. Cannot be combined with reference inputs |
end_frame_url | string | none | Last-frame public image URL (up to 28.61 MB). Alias: end_image_url. Requires start_frame_url |
image_urls | string[] | none | 1 to 10 reference image URLs (up to 28.61 MB each). Alias: reference_image_urls. Cannot be combined with frame URLs |
video_urls | string[] | none | 1 to 5 reference video URLs (2 to 30 s each, 30 s total, max 190.73 MB each). Alias: reference_video_urls |
audio_urls | string[] | none | 1 to 5 reference audio URLs (2 to 30 s each, 30 s total, max 14.31 MB each). Alias: reference_audio_urls |
aspect_ratio | string | 16:9 | Output ratio at 1080p: 16:9, 4:3, 1:1, 3:4, 9:16, or 21:9 |
duration | integer | 5 | Video length in whole seconds, from 4 to 30 |
audio | boolean | true | Generate synchronized audio in the same pass. Aliases: generate_audio, native_audio |
seed | integer | random | Integer seed (0 to 4294967295) for reproducible generation |
Full request examples for reference-to-video and parameter rules live at docs.unifically.com/models/video/sand-ai/magi-2.
Key features of MAGI-2
Six core traits define how the MAGI-2 API behaves in production pipelines.
Up to 30-second single-pass generation
Generate continuous scenes from 4 to 30 seconds at 1080p and 25 fps without stitching separate generations together.
Native audio and lip-synced dialogue
Dialogue, foley, ambience, and background music render alongside video in one unified backbone, matching mouth movement and on-screen action.
Up to 20 multimodal references
Combine up to 10 reference images, 5 reference videos, and 5 audio inputs in one call, referencing each as Image 1, Video 1, and Audio 1 in your prompt.
First-and-last-frame keyframing
Lock opening and closing stills with start_frame_url and end_frame_url so the camera and subjects transition smoothly between two planned compositions.
Six native 1080p aspect ratios
Switch between 16:9 (1920x1080), 9:16 (1080x1920), 1:1 (1440x1440), 4:3 (1664x1248), 3:4 (1248x1664), and 21:9 (2206x946) without changing the rate.
Top-ranked image-to-video quality
As of November 29, 2026, MAGI-2 leads Artificial Analysis Video Arena I2V v2.1 (1163 Elo) and I2V-Silent v2.1 (1153 Elo).
What MAGI-2 is best for
Long multi-shot commercials
Use 15 to 30 second prompts with explicit timestamped cuts to produce full product spots with synced sound effects and voice.
Character-consistent scenes
Pass multiple character angles and environment photos in image_urls so outfits, faces, and locations stay steady across camera moves.
Motion and voice transfer
Pair a reference motion video in video_urls with a target voice or score in audio_urls to direct timing and sound together.
Keyframe-anchored storytelling
Set start_frame_url and end_frame_url when you already have storyboard art and need a controlled move from frame A to frame B.
MAGI-2 use cases
Product and creative teams use the MAGI-2 API to ship 15-to-30-second ad spots where a character speaks directly to camera with synchronized room ambience and foley. In reference mode, passing product stills alongside a reference motion video lets e-commerce apps re-skin a proven camera move with new merchandise while keeping lighting consistent. Social video tools use the 9:16 preset (1080x1920) for vertical reels with spoken hooks, while widescreen 21:9 (2206x946) outputs suit title sequences and documentary teasers. When deterministic retries matter, locking seed lets you iterate on prompt phrasing without losing composition.
MAGI-2 limitations
Sand AI notes four practical limits on MAGI-2 in its November 24, 2026 technical overview: extreme high-speed motion can occasionally introduce trajectory or continuity artifacts, medium- and wide-shot 2D animation can look overly smooth in fine local motion, dense multi-layered soundscapes still have room for sharper physical realism, and post-training aesthetic tuning makes niche emergent behaviors like puzzle solving harder to elicit without explicit prompts. On the MAGI-2 API itself, frame inputs (start_frame_url, end_frame_url) cannot be combined with reference arrays (image_urls, video_urls, audio_urls) in the same request.
FAQs
People also ask about MAGI-2
MAGI-2 is Sand AI's video and audio foundation model, released on November 24, 2026. It outputs 1080p video at 25 fps from 4 to 30 seconds in a single pass with synchronized dialogue, sound effects, ambience, and music. One request handles text prompts, first and last frames, or up to 20 multimodal reference inputs.
Generate an API key from your API keys page after creating an account, then pass it as Authorization: Bearer <key> to https://api.unifically.com/v1/tasks. New accounts receive a small starting balance to test requests before adding funds, with pay-per-second billing for sand-ai/magi-2.
Send a POST request to https://api.unifically.com/v1/tasks with "model": "sand-ai/magi-2" and an input object holding prompt, optional frame or reference URLs, aspect_ratio, duration, and audio. Poll /v1/tasks/{task_id} or pass a callback_url to receive the finished MP4 URL from the MAGI-2 API.
Between 4 and 30 seconds in any whole-second increment, with 5 seconds as the default. Shorter four-second runs work for quick hero loops, while 30-second runs support multi-shot sequences and full spoken scenes in one pass.
Yes. Pulled live on November 29, 2026, MAGI-2 ranks #1 on AA-Video-I2V v2.1 at 1163 Elo and #1 on AA-Video-I2V-Silent v2.1 at 1153 Elo, plus #2 on AA-Video-T2V-Silent v2.1 (1144 Elo) and #7 on AA-Video-T2V v2.1 (1150 Elo).
Frame mode takes start_frame_url and an optional end_frame_url to connect two keyframes. Reference mode takes image_urls (up to 10), video_urls (up to 5), and audio_urls (up to 5) to guide character likeness, motion, and sound. The two modes cannot be mixed in one request.
No. Setting audio to false generates silent video at the same $0.072/sec rate. Aspect ratio changes and reference inputs do not add extra fees either.
Models similar to MAGI-2
Browse all models
Wan 3.0 API
2–30s videos with audio, T2V/I2V/R2V, document and webpage inputs, up to 20 references, 480P–1080P.
- Text to Video
- Image to Video
- Reference to Video

Wan 3.0 Prime API
Fast Wan 3.0: same 2–30s videos with audio and T2V/I2V/R2V modes, much shorter generation times.
- Text to Video
- Image to Video
- Reference to Video