
Verified technical specifications
Every parameter below is verified directly against Sand.ai’s MAGI-2 documentation and live Atlas Cloud OpenAPI definitions as of 2026-12-02. Wholesale API baseline is $0.08/s with native audio and full reference slots included.
| Specification | Verified Value | Engineering Note |
|---|---|---|
| Selectable Duration Range | 4 to 30 seconds (1-second integer steps) | Available across all three flagship endpoints (T2V, I2V, Omni-Reference). |
| 30-Second Credit Cost | 300 credits flat | $2.40 wholesale · $2.88 Director monthly · $2.40 Director annual · $3.60 Starter PAYG. |
| Optimal Shot Structure | 5–6 beats averaging 4–6 seconds each | Beats shorter than 3 seconds feel rushed; more than 6 distinct sets harms spatial geography. |
| Audio Continuity Advantage | Unbroken ambient & score bed across cuts | Eliminates jarring room-tone jumps and music key shifts inherent to stitching six 5s clips. |
| Observed Latency for 20–30s | 14 – 26 minutes typical | Longer durations process significantly more spatiotemporal tokens than 4–6s auditions. |
| Budget Guardrail | 4s Audition (40 cr) -> 30s Master (300 cr) | Saves ~55% of retake spend compared to firing blind 30s prompts. |
Live API parameter schema (sand-ai/magi-2/reference-to-video)
| Field | Type | Required | Constraints & Behavior |
|---|---|---|---|
| model | string | Required | Literal "sand-ai/magi-2/reference-to-video" Canonical Atlas Cloud model identifier for flagship MAGI-2 Omni-Reference. |
| prompt | string | Required | 1–15,000 characters referencing @image_n, @video_n, @audio_n roles Director brief explicitly binding each uploaded reference slot to its subject, motion, or audio role. |
| duration | integer | Optional (5) | Integer 4–30 (1-second steps) Requested clip duration in seconds. Flat $0.08/s regardless of reference count. |
| aspect_ratio | enum | Optional (16:9) | "16:9" | "9:16" | "21:9" | "4:3" | "3:4" | "1:1" Target 1080p-class framing ratio. |
| images | string[] | Optional | Max 10 items (public HTTPS URLs or Base64) Identity portraits, product angles, wardrobe sheets, or set plates. |
| videos | string[] | Optional | Max 5 public HTTPS URLs; 2–30s each; combined duration <= 30s Camera movement, actor blocking, or performance pacing references. |
| audios | string[] | Optional | Max 5 public HTTPS URLs; 2–30s each; combined duration <= 30s Voice timbre samples, spoken stems, musical grooves, or foley beds. |
Why one 30-second pass beats stitching six 5-second clips
Every filmmaker who has tried assembling a 30-second commercial or short-drama beat out of six independent 5-second AI clips knows the real bottleneck isn’t resolution—it is continuity entropy. Across separate jobs, sky color temperature subtly cools, jacket collar folds shift, voice reverberation dries out, and acoustic room floor jumps abruptly at every edit point. You end up spending two hours color-matching and crossfading audio beds just to hide the seams.
MAGI-2’s 30-second native generation window keeps one unified latent world alive across all 750 frames (30s × 25fps). Practical tungsten lamps stay at identical 3200K warmth across reverse-angle cuts, rain intensity persists seamlessly when moving from an exterior alley onto a fire escape, and background room ambience flows uninterrupted beneath timed cuts.
Structuring 4 to 6 beats across 30 seconds without visual fatigue
A single static 30-second unbroken camera lock rarely holds attention—and increases the odds of subtle background drift past second 15. Instead, treat a 30-second MAGI-2 job as a complete mini-sequence divided into five or six 4–6 second timestamped camera beats (`[00:00-00:05]`, `[00:05-00:10]`, and so on). Each intentional cut refreshes spatial composition while preserving the global cast, wardrobe, lighting, and acoustic environment.
Hold a clear left-to-right or over-the-shoulder screen direction across beats, limit a single 30-second take to at most two connected locations (for example, wet alley -> industrial rooftop), and pair Omni-Reference storyboard plates (`@image_1`–`@image_4`) with two short camera-rig clips (`@video_1`, `@video_2`) so complex choreography lands on the first master render.
- Target 4–6 beats per 30 seconds (averaging 5 seconds per shot) for cinema trailers, action pre-vis, and serialized drama scenes.
- Keep dialogue turns inside 5–6 second windows separated by silent action or reaction cuts so lip-sync stays razor-tight at second 25.
- Always spend 40 credits auditing `[00:00-00:04]` first; once cast, lens look, and acoustic bed pass review, submit the full 300-credit sequence.
Recommended studio workflow
Follow this four-step sequence to minimize retake waste and verify audio-visual continuity before spending credits on 15–30 second masters.
- STAGE 01750 frames @ 25fps
Map 5–6 timed beats totaling 20–30s
Block exact timecodes (`[00:00-00:05]` through `[00:25-00:30]`), keeping each shot focused on one crisp camera action or single speaker.
- STAGE 024–8 ref slots
Anchor 2 locations & core cast in Omni-Ref
Bind key character silhouettes, two location plates, and up to two motion/foley clips so continuity holds from second 0 to second 30.
- STAGE 0340 cr audition
Run the 4s opening audition
Spend 40 credits to validate lighting ratio, lens grammar, and sound bed before launching the heavier 14–26 minute 30s master.
- STAGE 04300 cr / 30s
Queue 30s masters in parallel
Director (5 concurrent jobs) and Studio API (12 concurrent jobs) let you queue an entire 2-minute episode in one batch.
Production prompt syntax & live Atlas JSON
Inspect a verified MAGI-2 director brief for 30-Second 6-Beat Nocturnal Alley-to-Rooftop Pursuit (21:9) and launch it directly into MagiAI Studio with pre-configured duration, aspect ratio, and audio switches.
21:9 anamorphic action pre-vis, heavy nocturnal rain, wet sodium-amber streetlights, obsidian shadows. Runner (@image_1), pursuer (@image_2), alley (@image_3), flooded rooftop (@image_4), low sprint rig (@video_1), crane ascent (@video_2), rain/boot foley (@audio_1), iron stairs (@audio_2). [00:00-00:05] Ultra-low 24mm gimbal sprint (@video_1) in alley @image_3 as @image_1 kicks amber puddle spray; rain and boots (@audio_1), no music. [00:05-00:10] Whip-pan up as @image_1 vaults crates and grabs rusted fire escape; crate thud, iron clang (@audio_2), no music. [00:10-00:15] Handheld 35mm over-shoulder climb up narrow metal stairs; rattling steel (@audio_2), sharp breathing, no music. [00:15-00:20] Telephoto 135mm tilt down through rain mist as pursuer (@image_2) sweeps white flashlight upward; driving rain, no music. [00:20-00:25] Fast lateral 35mm track across flooded roof (@image_4) past puddles; wind gust, gravel splash (@audio_1), no music. [00:25-00:30] Sweeping wide crane ascent (@video_2) as @image_1 clears rooftop gap behind HVAC vents; wind rush, firm landing thud, steady rain, no music.
{
"endpoint": "https://api.atlascloud.ai/api/v1/model/generateVideo",
"method": "POST",
"body": {
"model": "sand-ai/magi-2/reference-to-video",
"prompt": "[00:00-00:05] Low 24mm sprint in wet alley (@image_3) ... [00:25-00:30] Wide crane rise (@video_2) as runner (@image_1) clears rooftop gap. Audio: driving rain, no music.",
"duration": 30,
"aspect_ratio": "21:9",
"images": [
"https://assets.magiai.ai/examples/runner-parka.webp",
"https://assets.magiai.ai/examples/pursuer-coat.webp",
"https://assets.magiai.ai/examples/alley-plate.webp",
"https://assets.magiai.ai/examples/rooftop-plate.webp"
],
"videos": [
"https://assets.magiai.ai/examples/sprint-rig-6s.mp4",
"https://assets.magiai.ai/examples/crane-rise-5s.mp4"
],
"audios": [
"https://assets.magiai.ai/examples/rain-boots-10s.wav",
"https://assets.magiai.ai/examples/fire-escape-6s.wav"
]
}
}Common pitfalls & verified fixes
| Observed Symptom | Root Cause | Verified Fix |
|---|---|---|
| Mid-scene edits feel chaotic and lose subject orientation. | Cramming 9–10 micro-cuts into 30 seconds leaves under 3 seconds per beat. | Stick to 4–6 camera beats averaging 4–6 seconds each so motion and audio settle naturally. |
| Retaking a 30-second clip three times drains 900 credits ($8.64–$10.80) quickly. | Skipping the opening 4-second audition while still tuning lighting or voice references. | Validate style and casting with one or two 40-credit 4s auditions before committing 300 credits. |
Honest limitations & engineering trade-offs
MagiAI Studio documents where MAGI-2 shines and where real constraints require workflow planning so production teams never hit surprises mid-deadline.
Longer generation turnaround (14–26 minutes for 20–30s)
30-second 480B renders cannot complete instantaneously.
Mitigation: Work asynchronously—submit 3–5 beats in parallel while scripting the next scene, or automate batch queues with Studio API webhooks.
Cannot selectively re-render seconds 12–16 in-place
MAGI-2 generates the requested clip atomically; partial temporal inpainting is not exposed on the API.
Mitigation: When a single 4-second cutaway needs swapping inside an otherwise strong 30-second master, generate a 4-second patch clip (40 credits) with matching Omni-References and splice it in your NLE.