MAGI-2 Reference to Video API

sand-ai/magi-2/reference-to-video
1080p · 4–30 sec · Multimodal Ref

MAGI-2 Reference to Video turns combinations of up to 10 images, 5 videos, and 5 audio clips into 4–30 second 1080p videos across six aspect ratios. Reference assets directly via @Image, @Video, and @Audio tags to lock character identity, motion style, and voice.

Input
Required246/15000
Optional
Reference Image Urls

Drag and drop files, paste from clipboard, or provide a URL. Up to 10 reference images (JPEG, PNG, or WebP, up to 15 MB each). Reference them in the prompt as @Image1, @Image2...

1/10 files added

Optional
Reference Video Urls

Drag and drop files, paste from clipboard, or provide a URL. Up to 5 reference videos (MP4 or MOV, up to 100 MB each). Reference them in the prompt as @Video1, @Video2...

Optional
Reference Audio Urls

Drag and drop files, paste from clipboard, or provide a URL. Up to 5 reference audio clips (MP3 or WAV, up to 50 MB each). Reference them in the prompt as @Audio1, @Audio2...

Optional
Optional
Optional
Optional
Optional
OutputFinished
Estimated cost: 64 credits · $0.320
Continue with

MAGI-2 Reference to Video

MAGI-2 Reference to Video is Sand AI's multimodal video generation endpoint designed for consistent characters, motion transfer, and audio-guided scenes. Supply at least one reference asset across reference_image_urls (up to 10), reference_video_urls (up to 5), and reference_audio_urls (up to 5), then cite them in your prompt with @Image1, @Video1, or @Audio1. Output renders in 1080p for 4 to 30 seconds at a flat 16 credits per second.

Why choose MAGI-2 Reference to Video?

Unify visual identity, camera motion, and voice references in one 1080p generation call.

  • Tri-modal reference inputsMix up to 10 images, 5 video clips, and 5 audio tracks in a single request.

  • Explicit @tag assignmentCite @Image1, @Video1, and @Audio1 inside prompt so each asset drives the exact character, action, or voice you intend.

  • Six aspect ratios at 1080pRe-stage reference subjects cleanly in 16:9, 9:16, 1:1, 4:3, 3:4, or 21:9 across 4–30 seconds.

  • No multimodal surchargeAdding multiple image, video, or audio references keeps the same flat 16 credits/s ($0.08/s) rate.

MAGI-2 Reference to Video Parameters

Requires prompt plus at least one media item across reference_image_urls, reference_video_urls, or reference_audio_urls.

ParameterRequirementDescription
promptRequired

Scene script referencing uploaded assets via @Image1, @Video1, @Audio1 (up to 15,000 chars).

Default—
reference_image_urlsConditional

Up to 10 public image URLs (JPEG, PNG, WebP) for character, product, or scene identity.

Default—
reference_video_urlsConditional

Up to 5 public video URLs (MP4, MOV) for motion, choreography, or camera reference.

Default—
reference_audio_urlsConditional

Up to 5 public audio URLs (MP3, WAV) for voice timbre, dialogue, or rhythm.

Default—
durationOptional

Output length in integer seconds from 4 to 30.

Default5
resolutionOptional

Output video resolution. Fixed at 1080p.

Default1080p
aspect_ratioOptional

Output framing: 16:9, 9:16, 1:1, 4:3, 3:4, or 21:9.

Default16:9
generate_audioOptional

Generates synchronized dialogue, effects, and ambient audio.

Defaulttrue
seedOptional

Non-negative integer up to 2,147,483,647 for reproducible runs.

DefaultRandom

How to use MAGI-2 Reference to Video

Attach reference media, assign roles with @tags in prompt, and submit the async task.

  1. Attach reference assetsAdd at least one image, video, or audio reference URL (up to 10 images, 5 videos, 5 audio clips).

  2. Map roles using @tagsRefer to each asset by 1-based index (@Image1, @Video1, @Audio1) in prompt to direct identity, motion, and sound.

  3. Submit the taskChoose duration and aspect_ratio, then click Run or POST sand-ai/magi-2/reference-to-video to /api/generate/submit.

  4. Poll for 1080p outputCheck /api/generate/status/{task_id} until finished and download data.files[].file_url.

MAGI-2 Reference to Video Pricing

Flat 16 credits ($0.08) per second regardless of how many reference assets you supply. 1 credit = $0.005.

UsageRateDetails
5-second 1080p multimodal clip (default)80 credits ($0.40)5 s × 16 credits/s. Up to 10 images, 5 videos, 5 audio clips included.
10-second 1080p multimodal clip160 credits ($0.80)10 s × 16 credits/s across all six aspect ratios.
30-second 1080p multimodal clip (max)480 credits ($2.40)30 s × 16 credits/s for multi-character scenes.

Best use cases for MAGI-2 Reference to Video

Purpose-built for episodic character continuity, product placement, and motion-referenced shoots.

  • Consistent multi-character episodesPin cast faces, outfits, and environments with @Image1–@Image10 across multiple shots.

  • Camera & choreography transferPass a reference clip via @Video1 to carry camera movement or dance blocking onto new characters.

  • Voice and audio-anchored scenesGuide dialogue tone or soundtrack cadence using @Audio1 alongside visual references.

Pro Tips

  • Reference indices are 1-based per modality: the first image is @Image1, the first video is @Video1, and the first audio clip is @Audio1.
  • State each asset's exact job in the prompt, such as "@Image1 wears the jacket from @Image2 and follows the camera sweep of @Video1".
  • Use clean, unobstructed subject photos for character references to keep facial identity crisp.

Notes

  • At least one URL must be supplied across reference_image_urls, reference_video_urls, or reference_audio_urls.
  • All reference URLs must be publicly reachable HTTPS links.
  • Adding extra reference assets does not increase the 16 credits/s price.

Sources

Model specifications for MAGI-2 are verified against Sand AI's official release notes and technical overview:

“MAGI-2 delivers native 1080p audiovisual video generation with long-horizon temporal consistency and controllable multi-shot storytelling.”

— Sand AI, MAGI-2 Official Overview

MAGI-2 Reference to Video API frequently asked questions

What is the MAGI-2 Reference to Video API?

MAGI-2 Reference to Video is Sand AI's multimodal video generation model that combines up to 10 reference images, 5 videos, and 5 audio clips into 4–30 second 1080p videos. Using explicit @Image, @Video, and @Audio tags in the prompt, teams control character identity, product appearance, camera motion, and voice across six aspect ratios. Built on Sand AI's unified audiovisual foundation, it holds subject details and motion cues steady throughout extended takes without extra reference surcharges. Call sand-ai/magi-2/reference-to-video via API or test it in the playground above.

How many reference files can MAGI-2 Reference to Video accept?

Each request accepts up to 10 images in reference_image_urls, up to 5 videos in reference_video_urls, and up to 5 audio clips in reference_audio_urls, with at least one asset required.

How do I refer to uploaded assets in a MAGI-2 Reference to Video prompt?

Use 1-based tags matching each array's order: @Image1–@Image10 for images, @Video1–@Video5 for videos, and @Audio1–@Audio5 for audio clips.

Do extra reference videos or audio tracks raise MAGI-2 Reference to Video cost?

No. MAGI-2 Reference to Video bills a flat 16 credits ($0.08) per output second regardless of how many reference files you include.

Can I pass only reference_image_urls to MAGI-2 Reference to Video?

Yes. You only need at least one asset across any of the three reference arrays—images alone, videos alone, audio alone, or any combination.

What file formats work for MAGI-2 Reference to Video inputs?

Images support JPEG, PNG, and WebP (up to 15 MB); videos support MP4 and MOV (up to 100 MB); audio supports MP3 and WAV (up to 50 MB).

Which aspect ratios can MAGI-2 Reference to Video output?

You can output 1080p video in 16:9 (default), 9:16, 1:1, 4:3, 3:4, or 21:9.