MAGI-2 API · Independent API Platform for Sand.ai MAGI-2

MAGI-2 API: 1080p Video & Audio Generation API

MAGI-2 API is an independent API platform providing REST access to Sand.ai's MAGI-2 model. Generate 4 to 30 seconds of 1080p 25fps video with synchronized speech and foley, first/last frames, or up to 20 references at $0.088 per output second.

Output

1080p 25fps

Length

4–30s

References

10+5+5

Flat Rate

$0.088/s

00:00:30:00 · 16:9 ONE-TAKE@abulu8 · MAGI-2 Sample30s · 1080p · $2.640
1080p 25fps output · reference media costs $0 extra · failed tasks refunded

Verified Creator Gallery

MAGI-2 API Real Outputs and Creator Prompts

Real MAGI-2 clips and unmodified creator prompts across genres. Switch clips below to study one-take FPV camera work, spoken dialogue, beat-synced fashion cuts, and 10-shot sequences.

30.3s · 16:9 · 1080p · $2.640
ActionAction by @abulu8 · 30.3s · 16:9

An FPV flight through the age of dinosaurs

Creator Prompt (4,404 chars)
One single CONTINUOUS FPV drone shot, no cuts, one unbroken take. EXTREME real-time speed, relentless. Only ever moves forward in time — never loops or reverses. NO slow motion except one half-second beat at the reveal, then an instant snap back to full velocity. THE CLIP DOES NOT END IN AN ESCAPE OR EXIT, and there is no fade or cut to black — the take simply runs continuously until time runs out, still inside the chaos. CINEMATIC CAPTURE: shot as real FPV drone footage on a cinema camera — ultra-wide FPV lens (12–16mm) with subtle barrel distortion at the frame edges, 180-degree shutter with natural heavy motion blur on fast pans, shallow organic depth of field close to the creatures, fine 35mm film grain, subtle chromatic aberration, real lens flares through the canopy gaps, mud flecks briefly contaminating the lens, humid haze softening the deep forest. Early golden-hour light — low sun shafting through the redwood canopy in broken beams. Cinematic color grade: rich jungle greens and warm earth tones, gold highlights only in the sun shafts, lifted blacks, documentary contrast — the texture of a BBC prehistoric-wildlife documentary shot from a racing drone, NOT a game engine, NOT animation. The flight launches already diving steeply from high above a fern-choked prehistoric canyon at full speed — no calm start — a flight of leathery pterosaurs wheeling far below over the canopy. It punches down through the canopy in a hard vertical breach, bursting through startled flocks of small darting birds that scatter off the branches, banking a full 90° to thread between redwood trunks at ground level, dragonflies flicking through the light shafts. The forest opens into a muddy floodplain where the <<<image_2>>> Thunder-Herd erupts alongside in full charge; the camera corkscrews low between their charging bodies, skimming mud, small scurrying creatures bolting from the herd's path into the ferns. Ahead, the tree line EXPLODES as <<<image_1>>> the Tyrannosaur bursts through at a hard lateral angle, jaws opening wide toward the lens — the single slow-motion beat, teeth and saliva frozen, the herd scattering, every bird in the canopy lifting off at once in a single panicked cloud. Keep <<<image_1>>> design locked through the motion. Then a HARD snap back to full speed: the jaws SNAP SHUT on one fleeing beast from <<<image_2>>>, and the camera commits fully to the kill — whipping into a tight orbiting arc around <<<image_1>>> at point-blank range as it wrenches and thrashes its catch, mud and dust flung with every violent movement. The camera dives beneath the swinging it, arcs up and over the massive head as it rips into the carcass — pterosaurs already circling high above the kill — swoops in close on the jaws tearing and gulping, pulls back for one wide orbit showing the rest of <<<image_2>>> still stampeding past in panic on both sides, then plunges back in tight as <<<image_1>>> lifts its bloodied head and lets out a thunderous roar RIGHT AT the lens, the camera holding close and defiant in the swirling dust and debris, still shaking and whipping around the violence as the take runs out. Sound: a layered wall of primal chaos over a living jungle bed — insect drone, layered birdsong, distant hoots — wind roaring and pitching with every dive, thundering stampede hooves, deep guttural roars building — the birdsong CUTTING to dead silence the instant before the tree line explodes — near-silence for one held breath at the reveal — then a massive concussive ROAR and bone-crunching SNAP as the jaws close, the entire canopy erupting in shrieking, scattering wingbeats, and from there SUSTAINED, ESCALATING violence: wet tearing and crunching, guttural feeding growls, panicked herd bellows, pterosaur screeches circling above, building to one final earth-shaking ROAR right as the clip ends. No wind-down. Global style lock: cinematic photoreal FPV documentary footage, consistent creature design from the references maintained through all motion; real cinema-camera texture with film grain, lens distortion, motion blur and lens contamination, golden jungle grade; constantly shifting altitude and plane, the camera staying locked inside the kill's violence for the entire back half with no escape beat and no fade or cut to black; consistently extraordinary render quality, no distortion artifacts, no subtitles, no watermarks. Aspect ratio 16:9.
Try in Playground

Video, Sound, and 1080p Detail in One Pipeline

Sand.ai built MAGI-2 (480B total parameters, ~28B active) so video frames, dialogue lip-sync, foley, and multimodal references work together in a single API call.

MoE Total / Active480B / 28B (5.8%)
Pre-training Data4T Tokens (~1B)
Fixed Output1080p · 25fps
AA-Video-I2V#1 (1163 +/- 14 Elo)

Video and Sound Generated Together

Creates speech lip-sync, physical foley, room ambience, and music alongside the video frames so mouth movement and impacts stay aligned without separate dubbing. Set generate_audio to false for silent runs.

4 to 30 Seconds at 1080p in One Call

Every clip renders at 1080p and 25 fps for any integer length from 4 to 30 seconds. Generating a full scene in one pass avoids the lighting jumps and audio cuts that show up when stitching short 5-second clips.

Re-Checks Reference Images at 1080p

Generates the base motion first and then upscales to 1080p while reading your original reference images a second time, keeping faces, fabric grain, and product packaging text sharp past the 20-second mark.

Up to 20 Reference Files in One Request

Pass up to 10 images, 5 videos, and 5 audio clips together. Use images to hold faces, outfits, and sets; reference_videos to guide motion and camera pacing; and reference_audios to shape voice tone or music.

Lock Opening and Closing Frames

Pass one image to start directly from a hero still, or pass two images in order to anchor both opening and closing frames while MAGI-2 generates continuous motion and lighting transitions in between.

Same Per-Second Rate with Full Refunds

Text, keyframes, audio on or off, and all 20 reference inputs bill at one flat $0.088 per output second ($0.352 for 4s, $0.704 for 8s, $2.640 for 30s). Reference inputs cost $0 extra and failed tasks auto-refund.

Four Ways to Call MAGI-2 API

Pick one input mode per request to POST /v1/videos/tasks. Keyframe images and reference_* arrays belong to separate modes and are not combined in the same call.

Text Only

Script Prompt

Write your scene, camera movement, timing beats, and Audio line up to 5,000 characters and choose 4 to 30 integer seconds across six aspect ratios.

Best Suited For
Spoken dialogue scenes, long unbroken takes, timed multi-shot scripts, and anime shorts.

First Frame Start

images[1]

Start the clip directly from a finished product shot, key art, or storyboard still. MAGI-2 automatically matches the first image's aspect ratio.

Best Suited For
Product hero motion, key visual reveals, and stylized anime or stop-motion openers.

First and Last Frames

images[2]

Provide exact opening and closing stills and let MAGI-2 generate the physical camera motion, scene transition, and sound connecting them.

Best Suited For
Day-to-sunset transitions, outfit or product reveals, and guided spatial camera sweeps.

Image, Video, and Audio References

10 Img · 5 Vid · 5 Aud · $0 Reference Fee

Combine up to 10 reference images, 5 reference videos (2-30s each), and 5 reference audios (2-30s each). Explain what each asset does in your prompt. Reference videos guide motion and framing rather than editing an existing clip directly.

Visual Locking (@image1..10)
Hold character faces, outfits, products, and room sets across cuts.
Motion Guidance (@video1..5)
Guide choreography, camera arcs, and shot pacing for new takes.
Audio Guidance (@audio1..5)
Match spoken voice timbre, delivery cadence, or music tempo.
Need exact request parameters, polling responses, or cURL examples?Read API Reference
Character and multi-scene reference inputs for MAGI-2 omni-reference
Official multi-reference sample locking character appearance and three floral environments.
179 / 5000

For pure text prompts with scene changes, split beats into explicit segments such as Shot 1 (0-5s) and Shot 2 (5-10s).

5s

Resolution

1080p · 25 fps

Enabled
Schema Valid
Estimated Cost$0.440(440)
POST /v1/videos/tasks
{
  "model": "magi-2",
  "prompt": "Slow dolly shot through a rain-lit glasshouse at dusk. Water droplets run down steel frames as warm sodium streetlamps reflect in puddles. Soft rain ambience and distant city hum.",
  "duration": 5,
  "resolution": "1080p",
  "generate_audio": true,
  "aspect_ratio": "16:9"
}

Vendor & Model Lineage

Built by Sand.ai Across Three Model Generations

Sand.ai (founded in Beijing in January 2024 by Swin Transformer co-author Cao Yue) evolved its video backbone from open chunked autoregressive generation to the 480B MAGI-2 flagship served through MAGI-2 API.

202524B / 4.5B

MAGI-1

Sand.ai introduced causal temporal chunk prediction for controllable clip continuation and shot extension.

ArchitectureChunked autoregressive diffusion Transformer
WeightsOpen-source (Apache 2.0)
AA v2.1Baseline generation
Aug 2026114B total / ~6B active

MAGI-2 Preview

Research preview proving that audio, text, and video tokens scale cleanly inside one sparse MoE backbone.

ArchitectureSingle-stream Multi-Head Latent MoE
WeightsOpen weights (Apache 2.0)
AA v2.1998.5 Avg Elo
Nov 24, 2026480B total / ~28B active

MAGI-2

Scales total capacity over 4x to deliver 30s 1080p audio-video, 20 omni-references, and #1 AA I2V ranking.

ArchitectureMulti-Head Latent MoE + Head Parallel (4T tokens)
WeightsFlagship API live (weights planned)
AA v2.11150.3 Avg Elo (+151.8)

Benchmarks and Five-Vendor Comparison

Switch between Artificial Analysis v2.1 blind tracks, Higgsfield head-to-head win rates, and side-by-side developer pricing across Sand.ai, ByteDance, Kuaishou, Alibaba, and MiniMax.

Evaluation TrackRankElo ScorePeer Comparison
I2V (with Audio)#1 Overall1163 +/- 14 EloAhead of Seedance 2.5 (1158) and MiniMax H3 768p (1135 +/- 13)
I2V-Silent#1 Overall1153 EloAhead of MiniMax H3 Silent I2V (1108)
T2V-Silent#2 Overall1144 EloAhead of MiniMax H3 Silent T2V (1126)
T2V (with Audio)#7 Overall1150 +/- 13 EloBehind Wan 3.0 (1175), Utopai X (1173), and MiniMax H3 (1164 +/- 12)
4-Track Composite Average+151.8 vs Preview1150.3 EloUp from MAGI-2 Preview 998.5 composite Elo across the same 4 tracks

Snapshot on Nov 26, 2026: MAGI-2 leads Image-to-Video (#1 with and without audio), while Wan 3.0 (#1) and MiniMax H3 (#3) lead Audio Text-to-Video.

Artificial Analysis v2.1

Simple Output-Only Pricing ($0.088 / Second)

MAGI-2 API bills strictly on generated 1080p output seconds ($0.088/s). Reference images, videos, and audio cost $0 extra.

$0.088/ second · 1080p
Prepaid Credit Pack
$1010,000 credits
  • Up to 113s of 1080p video
  • Approx. 22 five-second clips
  • 100% credit refund on failed tasks
Prepaid Credit PackRecommended
$2525,000 credits
  • Up to 284s of 1080p video
  • Approx. 56 five-second clips
  • 100% credit refund on failed tasks
Prepaid Credit Pack
$5050,000 credits
  • Up to 568s of 1080p video
  • Approx. 113 five-second clips
  • 100% credit refund on failed tasks
Prepaid Credit Pack
$100100,000 credits
  • Up to 1136s of 1080p video
  • Approx. 227 five-second clips
  • 100% credit refund on failed tasks
Clip DurationOutput FormatSynced AudioCredits (1,000 = $1)Output Cost (USD)
4s1080p · 25 fpsIncluded352$0.352
5s1080p · 25 fpsIncluded440$0.440
8s1080p · 25 fpsIncluded704$0.704
10s1080p · 25 fpsIncluded880$0.880
15s1080p · 25 fpsIncluded1,320$1.320
30s1080p · 25 fpsIncluded2,640$2.640

Developer Questions

Clear answers on the Sand.ai MAGI-2 model, MAGI-2 API platform scope, HTTP 422 rules, and per-second billing.

Start Building

Create Your MAGI-2 API Key and Render Your First Video

Sign in to MAGI-2 API to manage API keys, check balance records, and validate requests in the Playground.