Skip to main content
MAGIAI
Verified 2026-12-02|MAGI-2 Flagship 480B|sand-ai/magi-2/reference-to-video

MAGI-2 Omni-Reference: Up to 20 Image, Video & Audio Refs

MAGI-2 Omni-Reference (`reference-to-video`) accepts up to 20 simultaneous multimodal conditioning assets—up to 10 images, 5 video clips (≤30s combined), and 5 audio clips (≤30s combined)—to lock character faces, wardrobe, props, camera motion, and voice timbre inside a single 4–30 second 1080p render at $0 extra credit surcharge.

Total Ref Capacity
20 slots max
Image / Video / Audio
10i · 5v · 5a
Combined Clip Caps
<=30s v / <=30s a
Extra Ref Charge
$0 (flat 10 cr/s)
Film director desk moodboard with printed character stills, fabric swatches, prime cinema lenses, and brass stopwatch
Structured production bible mapping cast turnarounds, wardrobe plates, camera motion clips, and dry voice stems across MAGI-2’s 20 Omni-Reference slots.

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.

SpecificationVerified ValueEngineering Note
Atlas Cloud Model IDsand-ai/magi-2/reference-to-videoUnlocks all three conditioning arrays (`images`, `videos`, `audios`) plus aspect_ratio.
Image Reference SlotsUp to 10 (@image_1 – @image_10)Public HTTPS URL or Base64 (JPEG/PNG/WebP). Ideal for cast, wardrobe, props, sets.
Video Reference SlotsUp to 5 (@video_1 – @video_5)Public HTTPS MP4/MOV; 2–30s each; combined duration across all video refs MUST stay <= 30s.
Audio Reference SlotsUp to 5 (@audio_1 – @audio_5)Public HTTPS MP3/WAV/M4A; 2–30s each; combined duration across all audio refs MUST stay <= 30s.
Total Multimodal Cap20 items simultaneouslyMagiAI Studio exposes the full 20-item ceiling (unlike web wrappers capped at 9i + 3v).
Surcharge Policy$0 extra cost per referenceA 15s scene with 12 multimodal references costs the exact same 150 credits as a 0-ref T2V take.

Live API parameter schema (sand-ai/magi-2/reference-to-video)

FieldTypeRequiredConstraints & Behavior
modelstringRequired
Literal "sand-ai/magi-2/reference-to-video"
Canonical Atlas Cloud model identifier for flagship MAGI-2 Omni-Reference.
promptstringRequired
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.
durationintegerOptional (5)
Integer 4–30 (1-second steps)
Requested clip duration in seconds. Flat $0.08/s regardless of reference count.
aspect_ratioenumOptional (16:9)
"16:9" | "9:16" | "21:9" | "4:3" | "3:4" | "1:1"
Target 1080p-class framing ratio.
imagesstring[]Optional
Max 10 items (public HTTPS URLs or Base64)
Identity portraits, product angles, wardrobe sheets, or set plates.
videosstring[]Optional
Max 5 public HTTPS URLs; 2–30s each; combined duration <= 30s
Camera movement, actor blocking, or performance pacing references.
audiosstring[]Optional
Max 5 public HTTPS URLs; 2–30s each; combined duration <= 30s
Voice timbre samples, spoken stems, musical grooves, or foley beds.

Allocating 10 images, 5 videos, and 5 audios without cross-contamination

Having 20 multimodal slots does not mean every shot should be stuffed with 20 assets. In practice, the cleanest episodic and commercial consistency comes from assigning each reference slot a single unambiguous role and citing its explicit `@image_n`, `@video_n`, or `@audio_n` token directly inside your prompt sentences. When two portraits share conflicting lighting (for example, harsh midday sunlight on `@image_1` paired with a dark neon alley plate in `@image_3`), MAGI-2 wastes representational capacity reconciling shadows instead of locking facial geometry.

A disciplined production allocation for a two-character dialogue scene typically uses 5 to 8 slots: two lighting-matched character portraits (`@image_1`, `@image_2`), one hero product or wardrobe sheet (`@image_3`), one empty set plate (`@image_4`), one 4–6 second handheld or dolly camera motion clip (`@video_1`), and two dry 4–5 second voice timbre stems (`@audio_1`, `@audio_2`). Saving those assignments as reusable Character & Brand Reference Kits in MagiAI Studio lets directors cut Episode 2 through Episode 30 with the same visual and vocal cast.

  • Never pack multi-panel collages inside a single `@image_n` slot—give each face, garment, and prop its own clean frame.
  • Keep combined video references strictly <= 30 seconds and combined audio references <= 30 seconds; MagiAI Studio pre-flight checks these totals automatically before spending credits.
  • Keep voice references (`@audio_1`) dry and free of music; supply rhythmic beds or ambient foley in a separate slot (`@audio_2`) so vocal timbre stays crisp.
  • Always verify public HTTPS reachability—private Google Drive links or signed cookie URLs cause immediate upstream fetch failures. MagiAI Studio hosts your uploaded assets on signed public R2 URLs automatically.

Full 20-slot exposure vs. truncated third-party wrappers

Several multi-model consumer web apps wrap MAGI-2 behind generic form interfaces built for older image-only models—for instance capping UI uploads at 9 images and 3 videos while omitting dedicated multi-stem audio reference arrays. MagiAI Studio was engineered specifically around Sand.ai’s verified `reference-to-video` contract so filmmakers can inspect every slot role, see live combined-duration bars against the 30-second video/audio caps, and bind `@image_n` tags inline inside the Timeline Composer.

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.

  1. STAGE 01Up to 10 images

    Curate lighting-matched plates in the Asset Vault

    Upload clean PNG/WebP portraits, product packshots, and empty set plates. Match color temperature across cast and location stills.

  2. STAGE 02<=30s v · <=30s a

    Attach motion & dry vocal stems under 30s caps

    Add 2–30s MP4 camera/blocking clips and dry WAV/MP3 voice or foley stems while keeping each modality’s combined total <= 30s.

  3. STAGE 03@image_1 · @audio_1

    Bind every slot explicitly inside beat prompts

    Write natural directives referencing exact slot IDs—e.g., "Mara (@image_1) speaks in @audio_1 timbre while camera follows @video_1 dolly."

  4. STAGE 0440 cr audition

    Audition 4s to confirm likeness & voice lock

    Validate face fidelity, label legibility, and vocal color for 40 credits before rendering the full 15–30 second master.

Production prompt syntax & live Atlas JSON

Inspect a verified MAGI-2 director brief for Two-Character Episodic Cast + Voice Lock (12s Omni-Ref) and launch it directly into MagiAI Studio with pre-configured duration, aspect ratio, and audio switches.

Two-Character Episodic Cast + Voice Lock (12s Omni-Ref)
9:1612s master120 cr full40 cr (4s audition)no music ON
Load in Studio
9:16 vertical cinema scene under warm tungsten practical lighting. Mara (@image_1 wearing charcoal wool coat @image_2) meets Devon (@image_3) inside the quiet vinyl booth (@image_4), matching the subtle handheld breathing camera motion of @video_1.
[00:00-00:06] Locked 85mm close-up on Mara leaning forward across the table. Speaking calmly in the dry alto voice of @audio_1: "You told my brother the freight manifest burned at the dock." Audio: soft paper slide on Formica, rain on glass, no music.
[00:06-00:12] Reverse 85mm close-up on Devon holding her gaze. Speaking in the low measured baritone of @audio_2: "He never asked whose signature cleared that customs stamp, Mara." Audio: dry booth tone, faint ceramic clink, no music.
Pacing note: Uses 7 of 20 slots (4 images, 1 video 4s, 2 audios 8s total) — leaving 13 slots free for recurring props or secondary cast across later episodes.
Atlas Cloud REST Request PayloadFull API Reference
{
  "endpoint": "https://api.atlascloud.ai/api/v1/model/generateVideo",
  "method": "POST",
  "body": {
    "model": "sand-ai/magi-2/reference-to-video",
    "prompt": "Using the speaker in @image_1 holding the amber bottle in @image_2 inside @image_3, match the natural voice timbre of @audio_1 and slow handheld framing of @video_1. [00:00-00:05] She says clearly: \"Three drops after cleansing keeps winter redness calm all day.\" Audio: crisp room tone, soft glass click, no music.",
    "duration": 8,
    "aspect_ratio": "9:16",
    "images": [
      "https://assets.magiai.ai/examples/founder-portrait.webp",
      "https://assets.magiai.ai/examples/serum-bottle.webp",
      "https://assets.magiai.ai/examples/bathroom-vanity.webp"
    ],
    "videos": [
      "https://assets.magiai.ai/examples/handheld-framing-4s.mp4"
    ],
    "audios": [
      "https://assets.magiai.ai/examples/founder-voice-5s.wav"
    ]
  }
}

Common pitfalls & verified fixes

Observed SymptomRoot CauseVerified Fix
Submission fails validation immediately before entering render queue.Combined duration of uploaded video clips or audio clips exceeds the hard 30-second modality cap.Trim reference clips to 4–8 second tight samples (enough to establish voice timbre or camera pace) so combined totals stay well under 30s.
Actor A speaks with Actor B’s voice timbre in a two-shot.Both `@audio_1` and `@audio_2` were referenced in the same beat while both faces remained visible.Isolate one speaking actor per timestamped shot cut and cite only that actor’s portrait and voice slot inside that beat.
Real person likeness rejected or flagged in commercial review.Uploading third-party celebrity faces or unconsented talent recordings violates commercial and safety rules.Use synthetic cast plates or actors with documented signed likeness/voice consent.

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.

Likeness degrades when lighting contradicts reference plates

An outdoor noon headshot drops facial precision inside a dark neon-lit bar scene.

Mitigation: Generate or shoot reference plates matching the target scene’s lighting temperature and contrast.

Heavy reference payloads extend queue latency toward the upper band

Jobs carrying 10+ images plus video/audio embeddings often sit closer to 15–26 minutes than 7 minutes.

Mitigation: Upload only the assets actually visible or audible in the current take instead of attaching all 20 slots blindly.

Explore other MAGI-2 Studio modules

All features
MAGI-2 Omni-Reference: Up to 20 Image, Video & Audio Refs