MAGI-2 Reference Prompts (@Image, @Video, @Audio)

MAGI-2 accepts images, video clips, and audio clips alongside the text prompt — up to 20 media items in one request. That is the part a text-only prompt cannot cover: a face that has to stay the same from shot to shot, a location that has to look like the photo, a camera move worth copying, a voice to speak with. Sand AI calls the feature omni-reference. It runs on the hosted MAGI-2 model; the open-source preview checkpoint only does text-to-video and image-to-video from a single first frame.

This page is about the text: how to label each reference, how to give it exactly one job, and how to write a multi-beat prompt that uses every file you attached.

What each kind of reference is for

Give every asset one job. A reference with no stated job leaves the model to decide which parts of it matter — and the parts you never thought about, such as the photo's background or its lighting, can end up in the shot.

Reference How many Use it for A one-line job
Images up to 10 Identity and appearance: a face, an outfit, a product label, a place "@Image1 is the courier: her face and yellow raincoat"
Video clips up to 5, each 2–30 seconds, 30 seconds in total Motion and camera work: a dance step, a gesture, a tracking path "Copy the slow sideways camera of @Video1"
Audio clips up to 5, each 2–30 seconds, 30 seconds in total A voice, a rhythm, or a piece of music to follow "Speak in the voice of @Audio1"

Three details from Sand AI's API reference are worth knowing before you plan a request. A reference that appears twice is counted twice. The 30-second audio total counts standalone audio files only. And a reference video may arrive with or without its own sound track.

If one photo shows your character standing in the wrong place, do not ask it to do two jobs: use it for the character and attach a second image for the place.

How to label references: @Image1 to @Image10

References are numbered within their kind, in the order you add them. The first image is @Image1, the second @Image2, and so on up to @Image10; the first clip is @Video1, up to @Video5; the first audio file is @Audio1, up to @Audio5.

One caveat on spelling. Sand AI's API reference does not prescribe a label format — it only states that "media references retain their array order." The @Image1, @Video1, and @Audio1 spellings used here are the ones hosted platforms and MAGI-2 guides write. Sand AI's own console numbers assets the same way (type @ to mention one); in the build we checked on 26 November 2026 it wrote those mentions into the prompt with Chinese kind names — @图1, @视频1, @音频1. If a hand-written label seems to be ignored on the native API, copy the label from the console instead of assuming a spelling.

Then scope every label in two moves: say what the reference supplies, and describe the rest of the frame in your own words. Prefer that to a list of things to ignore — Sand AI's own text-to-video prompt-enhancement template asks for "affirmative target-state language" with no grammatical negation.

Vague:

The woman from @Image1 in a city at night.

The label is there, but nothing says whether the photo's background, pose, and lighting belong in the shot, or what the city looks like.

Scoped:

The courier in @Image1 — her face and yellow raincoat only — hurries through a narrow alley at night, wet cobbles reflecting pink neon signs, in a medium shot.

The reference now supplies two things, and the scene, the light, and the framing come from the text.

When several images carry one subject, say which part each one provides:

The woman in @Image1 wears the uniform from @Image2 and stands in the kitchen from @Image3.

Three images, three jobs: identity, wardrobe, location.

Copying motion or camera work from @Video1

A video reference is the easiest one to over-ask with. Decide which single property you want — the action, the camera path, or the timing — and name only that:

The chef from @Image1 repeats the plating motion of @Video1, at the same pace, in the kitchen from @Image2. The camera stays locked off.

The clip supplies the hand movement and its rhythm. The person, the place, and the camera come from the text; writing "the camera stays locked off" matters when the reference clip is handheld, because otherwise the camera was never specified.

Three limits to plan around:

  • Length. Each clip must be 2–30 seconds long, and all your video references can add up to 30 seconds. Hosted platforms that document MAGI-2 advise keeping the part you want copied near the start of each clip.
  • Speed. Sand AI lists extreme high-speed motion as a known weak spot of MAGI-2, so a fast dance or sports clip is a harder reference to follow than a slow one.
  • A specific voice or beat. Add it as a separate audio reference and name it (@Audio1). Hosted platforms that document the feature describe audio references as a guide the model follows, not a clip pasted in unchanged.

A reference guides a new clip; it does not edit the clip you uploaded. Sand AI describes targeted editing of existing video as a separate MAGI-2 capability.

How references travel in an API call

The files are never typed into the prompt. They travel as separate items next to one text item:

  • Sand AI's native API (POST /v2/generations): a parts array of 1–21 items — exactly one text item of up to 15,000 characters, plus reference_image, reference_video, and reference_audio items "in input order". Each media item carries an uploaded assetId or a public url.
  • Hosted providers such as Higgsfield: a prompt string plus image_urls, video_urls, and audio_urls arrays.

In both shapes the array order is what the labels point at, so number your files in the same order the request lists them. The rate does not change: Sand AI lists magi-2 at a flat $0.08 per second at 1080p, with audio included.

{
  "model": "magi-2",
  "parts": [
    { "type": "text", "text": "The courier in @Image1 — her face and yellow raincoat only — hurries through a narrow alley at night." },
    { "type": "reference_image", "image": { "assetId": "123456789" } }
  ],
  "duration": 5,
  "aspectRatio": "16:9",
  "resolution": "1080p"
}

That is the shape of Sand AI's own example request, with a scoped line in the text field.

A complete 20-second example

Four references and three beats. The files, in the order they were added: a photo of the character (@Image1), a photo of the location (@Image2), an 8-second tracking shot to take the camera from (@Video1), and a 15-second voice clip (@Audio1).

Reference jobs: @Image1 gives the courier — her face and yellow raincoat only. @Image2 is the location, a wet neon alley. @Video1 supplies the camera only: its slow sideways tracking at walking pace. @Audio1 is the voice she speaks with.

20 seconds, 16:9, one continuous take, rain throughout.

0-7 s: The courier from @Image1 walks into the alley from @Image2 and pulls her hood up. Pink neon reflects in the puddles. The camera tracks her from the side, as in @Video1.

7-14 s: She stops under a lit doorway, checks the parcel under her coat, and looks both ways. Rain taps on the fabric; a scooter passes in the distance.

14-20 s: She turns to camera and says in the voice of @Audio1: "Special delivery. Sign here." She holds out the parcel with a small smile as the shot holds.

Why it is written this way:

  • Jobs first. The opening block gives every reference one job before any action starts, so the labels in the beats already mean something.
  • Every reference is used again. Each label reappears in the beat that needs it.
  • Positive scoping. "Her face and yellow raincoat only" narrows the photo; "a wet neon alley" says what surrounds her.
  • Beats sized to the time. Three beats in 20 seconds, one action each — the same discipline the prompt guide teaches for text-to-video.
  • One camera behavior. The tracking shot is named once, and no second move is requested.

Test it at 5 seconds with the first beat before paying for the full 20: the short attempt costs $0.40 at list price, the full one $1.60.

The prompt generator builds text-to-video prompts in the two-layer format Sand AI's own prompt enhancer produces. For batches of reference shots, the MAGI-2 pricing calculator does the arithmetic.

Sources, checked 26 November 2026: Sand AI's API reference, Sand AI's MAGI-2 announcement, the sand-ai/MAGI-2-preview model card, and Higgsfield's MAGI-2 reference-to-video reference.

Frequently asked questions

How many references can one MAGI-2 request take?
Up to 20 media items: 10 images, 5 video clips, and 5 audio clips. Video clips must be 2–30 seconds each, and your video references and audio references can each total 30 seconds at most.
Do I type @Image1 in the prompt, or pass the image separately?
Both. The files go in separate fields — a parts array on Sand AI's native API, or image_urls, video_urls, and audio_urls on hosted providers — and the labels in the text tell the model which file does what. The labels follow the order the files are listed in.
Can I use references with the open-source MAGI-2 preview?
No. The preview checkpoint generates from text, or from text plus a single first-frame image. Omni-reference with up to 20 items runs on the hosted MAGI-2 model.
Does a reference video get copied exactly?
No. It guides the new clip: name the one property to carry over, such as the motion or the camera path, and describe the rest of the scene yourself. Sand AI lists extreme high-speed motion as a weak spot, so a slow source clip is the safer reference.