MAGI-2 developer documentation
Build reliable audio-video pipelines on Sand.ai's flagship 480B MAGI-2 model. Inspect exact live Atlas Cloud T2V, I2V, and 20-slot Omni-Reference JSON schemas, design bounded async workers for 7–26 minute queues, verify live hosting providers (7 live hosts vs. fal.ai / Replicate status), and deploy copy-paste TypeScript, Python, and cURL clients.
Documentation modules
Quickstart
Send your first flagship 480B MAGI-2 text-to-video request with native audio, verify async prediction polling, and handle 7–26 minute render queues cleanly.
API Reference
Complete Sand.ai MAGI-2 API reference for Magi AI video endpoints (T2V, I2V, 20-slot Omni-Reference), JSON request schemas, duration enums, and async polling.
Concurrency & Webhooks
Handle MAGI-2's multi-minute render latency safely in production with async webhooks, idempotent job IDs, and bounded worker concurrency.
Hosting Availability
Live directory of verified MAGI-2 API hosts and pricing ($0.08/s), plus current availability status on fal.ai, Replicate, SpicyAPI, and Sand.ai direct.
Moderation & Refunds
How flagship MAGI-2 enforces PG-13 moderation upstream with $0 inference charge, and how MagiAI Studio posts automatic 100% credit refunds on filtered jobs.
SDKs & Code Examples
Copy-paste production TypeScript, Python, and cURL clients for MAGI-2 T2V, I2V first/last frame, and 20-slot Omni-Reference with pre-flight validation and async polling.
Canonical flagship 480B MAGI-2 endpoints
POST https://api.atlascloud.ai/api/v1/model/generateVideo| Model ID | Capabilities | Wholesale Rate |
|---|---|---|
| sand-ai/magi-2/text-to-video | Generates 4–30s 1080p @ 25fps video with synchronized single-pass dialogue, foley, and ambience directly from a timestamped director prompt up to 15,000 characters. | $0.08/s |
| sand-ai/magi-2/image-to-video | Animates a start keyframe—and optional closing last_image keyframe—at 1080p @ 25fps with synchronized sound while preserving the start frame aspect ratio. | $0.08/s |
| sand-ai/magi-2/reference-to-video | Combines up to 20 multimodal assets (10 images, 5 videos <=30s combined, 5 audios <=30s combined) to lock identity, wardrobe, props, camera motion, and voice timbre across 4–30s takes. | $0.08/s |
480B Cloud vs. 114B Preview
Every API doc targets the Nov 24 480B flagship (30s, 1150.3 Elo). For local 96 GB NVFP4 Preview hardware specs, read our VRAM Guide.
$0 Filtered Runs & Refunds
PG-13 safety blocks (`policy_filtered`) carry $0 upstream charge and post automatic 100% refunds to MagiAI Studio's double-entry credit ledger.
Unified Studio & API Ledger
Test prompts visually in the Director Studio and promote them straight to production REST automation on one shared wallet.