MAGI-2 on Segmind: text, image and reference to 1080p video with native audio
MAGI-2, Sand AI's flagship video model, ships on Segmind as text-to-video, image-to-video and reference-to-video. Each makes 1080p clips up to 30 seconds with lip-synced dialogue, sound effects and ambience generated in the same pass.
Text To VideoMAGI-2 Text to VideoSSAND AIMAGI-2 is Sand AI's flagship video model, released in November 2026. It has 480B parameters with about 28B active, over four times the size of the open-weights MAGI-2 Preview. One single-stream transformer makes picture and sound together, so speech, lip movement and effects stay in sync.
On Segmind it ships as three models: MAGI-2 Text to Video works from a prompt alone, MAGI-2 Image to Video animates a still, and MAGI-2 Reference to Video builds a scene from reference images. Each returns a 1080p, 25 fps clip of 4 to 30 seconds with its soundtrack.
Text to video
MAGI-2 Text to Video takes a prompt of up to 15,000 characters and nothing else. You set the duration, one of six aspect ratios from 21:9 to 9:16, and whether to generate audio. It is built for scripted scenes: a character speaks a quoted line with matching lips while on-screen actions make their own sounds. Write the prompt as a shot list, time-code each shot and end with a Sound: line, and the cuts land where you place them.
ModelMAGI-2 Text to Video1080p text-to-video up to 30 seconds with lip-synced audio.1920s telephone exchange, two shots with a hard cut. Shot 1 (0-3.5 s): medium close-up of a switchboard operator in a cream blouse and a black bakelite headset, seated at a walnut cord board studded with rows of brass jacks. She lifts a brass patch cord, drives the plug into a jack with a sharp clack and says clearly into her mouthpiece, "Hold the line, connecting you to Chicago." Shot 2 (3.5-5 s): hard cut to a close-up of the jack panel as a small amber lamp flicks on beside her plug and a relay buzzes. Sound: the clack of the plug, the relay buzz, the murmur of other operators along the board.
She says the quoted line word for word with matching lips, and the hard cut lands at 3.48 s against the requested 3.5 s.
Brutalist concrete public library at night, one continuous shot with no cuts. The camera starts low at the entrance and pushes forward down the central aisle between three-storey walls of oak shelving, then tilts up to a square coffered skylight where rain streaks across the glass. A librarian in a grey cardigan rolls a steel book cart across the aisle ahead of the camera. Sound: the rattle of the cart wheels on concrete, rain drumming on the skylight, the hum of the reading lamps.
The camera pushes down the aisle past the librarian, then tilts up to the rain-streaked skylight in one 21:9 take.
Mumbai street-food stall at night, framed vertically for a phone screen. Tight shot over the counter: a cook in a white vest cracks two eggs onto a smoking iron griddle, spreads them with a flat steel spatula and presses a buttered pav bun on top. Camera: handheld, close on the griddle, tilting up at the end to the cook's face under a bare bulb. Sound: the crack of the shells, the hiss as the egg hits hot iron, the spatula scraping steel, scooter horns on the road behind.
Two eggs crack onto the griddle and sizzle as they land, the bun is pressed on, and the shot tilts up to the cook under the bulb.
Lisbon metro passage lined with blue-and-white azulejo tiles. Medium shot of an older street musician in a grey flat cap on a folding stool, playing a red button accordion: he pulls the bellows wide and squeezes them shut in a steady rhythm while his right hand works the buttons, and a commuter drops a coin into the open case at his feet. Camera: locked off at chest height. Sound: a fado melody on the accordion in time with the bellows, the coin clinking into the case, footsteps echoing off the tiles.
The accordion melody plays while the bellows open and close, though the model draws a piano accordion instead of a button one.
Use text to video from the API
Send the prompt with the settings you want; this is the default example's full request.
# pip install "segmind>=1.1.0"
# export SEGMIND_API_KEY="YOUR_API_KEY"
import segmind
result = segmind.run(
"magi-2-text-to-video",
prompt="1920s telephone exchange, two shots with a hard cut. Shot 1 (0-3.5 s): medium close-up of a switchboard operator in a cream blouse and a black bakelite headset, seated at a walnut cord board studded with rows of brass jacks. She lifts a brass patch cord, drives the plug into a jack with a sharp clack and says clearly into her mouthpiece, \"Hold the line, connecting you to Chicago.\" Shot 2 (3.5-5 s): hard cut to a close-up of the jack panel as a small amber lamp flicks on beside her plug and a relay buzzes. Sound: the clack of the plug, the relay buzz, the murmur of other operators along the board.",
duration=5,
aspect_ratio="16:9",
generate_audio=True,
)
print(result.get("output"))# 1. Submit the request; the reply carries its request_id
REQUEST_ID=$(curl -s -X POST "https://api.segmind.com/v2/magi-2-text-to-video" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "1920s telephone exchange, two shots with a hard cut. Shot 1 (0-3.5 s): medium close-up of a switchboard operator in a cream blouse and a black bakelite headset, seated at a walnut cord board studded with rows of brass jacks. She lifts a brass patch cord, drives the plug into a jack with a sharp clack and says clearly into her mouthpiece, \"Hold the line, connecting you to Chicago.\" Shot 2 (3.5-5 s): hard cut to a close-up of the jack panel as a small amber lamp flicks on beside her plug and a relay buzzes. Sound: the clack of the plug, the relay buzz, the murmur of other operators along the board.",
"duration": 5,
"aspect_ratio": "16:9",
"generate_audio": true
}' | jq -r .request_id)
# 2. Check its status until it is COMPLETED
curl -s "https://api.segmind.com/v2/requests/$REQUEST_ID/status" \
-H "x-api-key: YOUR_API_KEY"
# 3. Fetch the result
curl -s "https://api.segmind.com/v2/requests/$REQUEST_ID" \
-H "x-api-key: YOUR_API_KEY"Image to video
MAGI-2 Image to Video takes a first_frame_image and a prompt, both required, plus an optional last_frame_image. The still decides how the shot looks: people, wardrobe, set and light. The prompt decides what moves and what is heard, so describe motion and sound as time-coded beats instead of re-describing the picture. Aspect ratios run from 16:9 to 9:16, with no 21:9, and should match the shape of your still.
ModelMAGI-2 Image to VideoAnimate any image into 1080p video with lip-synced audio.1920s telephone exchange, one continuous shot, the camera holds at eye level. 0-1.5 s: the operator drives the raised brass plug into the empty jack in front of her with a sharp clack. 1.5-4 s: she says clearly into her mouthpiece, "Hold the line, connecting you to Chicago." 4-5 s: a small amber lamp flicks on beside her plug and a relay buzzes while the operators behind her keep working the board. Sound: the clack of the plug, her voice, the relay buzz, the murmur of the other operators.
The operator from the still says the line word for word between 1.3 and 3.4 s with matching lips, after audible plug clacks.
Mumbai street-food stall at night, vertical frame, handheld over the counter. 0-1.5 s: the cook cracks the egg in his hand on the edge of the iron griddle and drops it onto the hot metal. 1.5-3.5 s: he spreads it with the flat steel spatula and presses the buttered pav bun down on top. 3.5-5 s: the camera tilts up to his face under the bare bulb. Sound: the crack of the shell, the hiss of egg on hot iron, the spatula scraping steel, scooter horns on the road behind.
The egg cracks and hisses on the griddle, and the model cuts to a griddle close-up and back to the cook on its own.
First frame Last frame
Brutalist concrete public library at night, one continuous shot with no cuts. 0-2 s: the camera pushes forward down the central aisle as the librarian rolls her steel book cart across ahead of it. 2-5 s: the camera keeps moving and tilts up toward the square coffered skylight, ending on rain streaking across the glass. Sound: the rattle of the cart wheels on concrete, rain drumming on the skylight, the hum of the reading lamps.
It ends looking up at a rain-streaked skylight much like the closing image, a target rather than an exact match.
Use image to video from the API
Pass the first frame as an image URL next to the prompt; add last_frame_image to steer the ending.
# pip install "segmind>=1.1.0"
# export SEGMIND_API_KEY="YOUR_API_KEY"
import segmind
result = segmind.run(
"magi-2-image-to-video",
prompt="1920s telephone exchange, one continuous shot, the camera holds at eye level. 0-1.5 s: the operator drives the raised brass plug into the empty jack in front of her with a sharp clack. 1.5-4 s: she says clearly into her mouthpiece, \"Hold the line, connecting you to Chicago.\" 4-5 s: a small amber lamp flicks on beside her plug and a relay buzzes while the operators behind her keep working the board. Sound: the clack of the plug, her voice, the relay buzz, the murmur of the other operators.",
first_frame_image="https://segmind-resources.s3.amazonaws.com/input/magi-2-image-to-video-first-frame-switchboard.jpg",
duration=5,
aspect_ratio="16:9",
generate_audio=True,
)
print(result.get("output"))# 1. Submit the request; the reply carries its request_id
REQUEST_ID=$(curl -s -X POST "https://api.segmind.com/v2/magi-2-image-to-video" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "1920s telephone exchange, one continuous shot, the camera holds at eye level. 0-1.5 s: the operator drives the raised brass plug into the empty jack in front of her with a sharp clack. 1.5-4 s: she says clearly into her mouthpiece, \"Hold the line, connecting you to Chicago.\" 4-5 s: a small amber lamp flicks on beside her plug and a relay buzzes while the operators behind her keep working the board. Sound: the clack of the plug, her voice, the relay buzz, the murmur of the other operators.",
"first_frame_image": "https://segmind-resources.s3.amazonaws.com/input/magi-2-image-to-video-first-frame-switchboard.jpg",
"duration": 5,
"aspect_ratio": "16:9",
"generate_audio": true
}' | jq -r .request_id)
# 2. Check its status until it is COMPLETED
curl -s "https://api.segmind.com/v2/requests/$REQUEST_ID/status" \
-H "x-api-key: YOUR_API_KEY"
# 3. Fetch the result
curl -s "https://api.segmind.com/v2/requests/$REQUEST_ID" \
-H "x-api-key: YOUR_API_KEY"Reference to video
MAGI-2 Reference to Video takes a prompt plus at least one reference: up to 10 images, 5 video clips or 5 audio clips. References decide who and what appears, and the prompt decides what happens, how it is shot and what is heard. Give each reference one job and name it by position, as in "the woman in the first reference image", then list the details to keep. The model recomposes the references into new shots instead of using them as a first frame.
ModelMAGI-2 Reference to VideoTurn reference images into 1080p video with lip-synced audio.Reference 1: operator Reference 2: exchange
1920s telephone exchange, two shots with a hard cut. The operator is the woman in the first reference image: keep her face, dark finger-waved bob, cream blouse with the black ribbon tie and her black bakelite headset with the brass mouthpiece. The room is the walnut cord switchboard from the second reference image, with its brass jacks, amber lamps, wooden stools and arched windows. Shot 1 (0-2.5 s): medium-wide side view along the board, she sits on a stool, lifts a brass patch cord and drives the plug into a jack with a sharp clack; an amber lamp flicks on beside it. Shot 2 (2.5-5 s): hard cut to a close-up of her face and headset as she says clearly into her mouthpiece, "Hold the line, connecting you to Chicago." Sound: the clack of the plug, her voice, a relay buzz, the murmur of other operators.
Her face, blouse, headset and cord board carry over into new angles, and she speaks the line word for word with matching lips.
Reference 1: cook Reference 2: stall
Mumbai street-food stall at night, vertical frame for a phone screen, one handheld shot. The cook is the man in the first reference image: keep his face, thick black moustache, oiled black hair, white cotton vest, the red-and-white checked cloth on his shoulder and the steel kada on his wrist. The stall is the egg-pav handcart from the second reference image, with its black iron griddle, flat steel spatula, tray of white eggs, stack of pav buns, butter tub and the bare bulb on a wire. 0-3 s: tight over the counter, he cracks two eggs onto the smoking griddle, spreads them with the spatula and presses a buttered pav bun down on top. 3-5 s: the camera tilts up to his face under the bare bulb. Sound: the crack of the shells, the hiss of egg on hot iron, the spatula scraping steel, scooter horns on the road behind.
The cook's moustache, vest, checked cloth and kada and the cart's griddle, eggs and pav match the references through crack, spread and press, with griddle sizzle underneath.
Reference 1: musician Reference 2: accordion Reference 3: passage
Lisbon metro passage, one continuous shot, camera locked off at chest height. The musician is the older man in the first reference image: keep his face, white stubble, grey tweed flat cap, brown corduroy jacket and navy sweater. He plays the red button accordion from the second reference image: keep its glossy red body, mother-of-pearl buttons, chrome grille, black bellows and brown leather straps. The setting is the passage from the third reference image, lined with blue-and-white azulejo tiles under a strip of fluorescent tubes. Medium shot: he sits on a folding stool, pulls the bellows wide and squeezes them shut in a steady rhythm while his fingers work the buttons; a commuter in a navy raincoat walks past and drops a coin into the open case at his feet. Sound: a fado melody on the accordion in time with the bellows, the coin clinking into the case, footsteps echoing off the tiles.
The musician, the button accordion and the tiled passage each come from their own reference, with an audible accordion tune.
References can be clips too. This example uses one reference video and one reference audio clip, and no images.
Reference audio: accordion
Five seconds of accordion, sent as the reference audio.
A Victorian glasshouse full of tall palms and ferns at dawn, mist hanging in the air, nobody in frame. Copy the camera movement of the reference video exactly: start low at the entrance, push forward down the central path, then tilt up to the glass roof. The soundtrack is the accordion melody from the reference audio, with soft dripping water. No dialogue.
The glasshouse shot opens between the entrance doors, pushes down the path and tilts up to the roof, as the library clip does. The accordion track plays almost exactly as supplied, and the dripping water barely registers.
Use reference to video from the API
List your reference images as URLs in reference_images, in the order the prompt names them.
# pip install "segmind>=1.1.0"
# export SEGMIND_API_KEY="YOUR_API_KEY"
import segmind
result = segmind.run(
"magi-2-reference-to-video",
prompt="1920s telephone exchange, two shots with a hard cut. The operator is the woman in the first reference image: keep her face, dark finger-waved bob, cream blouse with the black ribbon tie and her black bakelite headset with the brass mouthpiece. The room is the walnut cord switchboard from the second reference image, with its brass jacks, amber lamps, wooden stools and arched windows. Shot 1 (0-2.5 s): medium-wide side view along the board, she sits on a stool, lifts a brass patch cord and drives the plug into a jack with a sharp clack; an amber lamp flicks on beside it. Shot 2 (2.5-5 s): hard cut to a close-up of her face and headset as she says clearly into her mouthpiece, \"Hold the line, connecting you to Chicago.\" Sound: the clack of the plug, her voice, a relay buzz, the murmur of other operators.",
reference_images=[
"https://segmind-resources.s3.amazonaws.com/input/magi-2-reference-to-video-ref-operator.jpg",
"https://segmind-resources.s3.amazonaws.com/input/magi-2-reference-to-video-ref-exchange.jpg",
],
duration=5,
aspect_ratio="16:9",
generate_audio=True,
)
print(result.get("output"))# 1. Submit the request; the reply carries its request_id
REQUEST_ID=$(curl -s -X POST "https://api.segmind.com/v2/magi-2-reference-to-video" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "1920s telephone exchange, two shots with a hard cut. The operator is the woman in the first reference image: keep her face, dark finger-waved bob, cream blouse with the black ribbon tie and her black bakelite headset with the brass mouthpiece. The room is the walnut cord switchboard from the second reference image, with its brass jacks, amber lamps, wooden stools and arched windows. Shot 1 (0-2.5 s): medium-wide side view along the board, she sits on a stool, lifts a brass patch cord and drives the plug into a jack with a sharp clack; an amber lamp flicks on beside it. Shot 2 (2.5-5 s): hard cut to a close-up of her face and headset as she says clearly into her mouthpiece, \"Hold the line, connecting you to Chicago.\" Sound: the clack of the plug, her voice, a relay buzz, the murmur of other operators.",
"reference_images": [
"https://segmind-resources.s3.amazonaws.com/input/magi-2-reference-to-video-ref-operator.jpg",
"https://segmind-resources.s3.amazonaws.com/input/magi-2-reference-to-video-ref-exchange.jpg"
],
"duration": 5,
"aspect_ratio": "16:9",
"generate_audio": true
}' | jq -r .request_id)
# 2. Check its status until it is COMPLETED
curl -s "https://api.segmind.com/v2/requests/$REQUEST_ID/status" \
-H "x-api-key: YOUR_API_KEY"
# 3. Fetch the result
curl -s "https://api.segmind.com/v2/requests/$REQUEST_ID" \
-H "x-api-key: YOUR_API_KEY"Side by side
All three models ran the same 1920s switchboard scene at 5 seconds, 16:9, with audio on.
- Text to video
- Image to video
- Reference to video
Text to video invents the operator and cuts to the jack panel. Image to video holds the uploaded still in one continuous shot. Reference to video puts the referenced woman in the referenced room, then cuts to her close-up.
Shared settings
| Setting | Value | Members | When to use it |
|---|---|---|---|
| duration | 4 to 30 seconds, default 5 | All three | 4 to 6 s to test a prompt, 10 to 15 s for a multi-shot scene, up to 30 s for one continuous take. Billed per requested second; over 15 s needs the async /v2 API |
| aspect_ratio | 16:9 (default), 4:3, 1:1, 3:4, 9:16 | All three | 16:9 for scenes, 9:16 for vertical social clips. On image to video, match the shape of your still |
| aspect_ratio | 21:9 | Text to video, reference to video | Widescreen takes |
| generate_audio | true (default) or false | All three | Leave on for dialogue, foley and ambience; turn off for silent footage or when you will replace the soundtrack |
| last_frame_image | one image | Image to video | Aim the move at a planned closing frame, one camera move away from the first |
| reference_images | up to 10 images | Reference to video | One person, prop or set per image, each named by position in the prompt |
Good to know
- Renders are slow. The 5-second examples here took about three to five minutes each, so test at 5 seconds before you commit to a long take.
- Output is fixed at 1080p. None of the three models has a resolution, seed or prompt-enhancement option.
- Long prompts pay off. MAGI-2 was trained on long, structured captions, so a one-line prompt underuses it.
- Known weak spots. Sand AI notes that very fast motion can cause continuity artifacts and that complex soundscapes lack richer layering. Small background text, such as a menu, comes out garbled.
- Per-model limits. On MAGI-2 Image to Video the last frame is a target, not an exact match. MAGI-2 Reference to Video needs at least one reference. A reference video lends its camera move, and a reference audio clip comes back as the soundtrack almost unchanged, so send the exact take you want.
Resources
- Try MAGI-2 Text to Video on Segmind · API reference
- Try MAGI-2 Image to Video on Segmind · API reference
- Try MAGI-2 Reference to Video on Segmind · API reference
- MAGI-2: A 480B Frontier Video Generation Model — Sand AI's launch post: capabilities (30 s 1080p native audio-video, six aspect ratios, timeline and shot-cut control, omni-reference), showcase clips, architecture, training data, post-training and stated limitations.
- Sand AI Platform API reference — Sand AI's native API for MAGI-2: generation fields (duration, aspect ratio, 1080p resolution, audio, seed, prompt enhancement), reference media limits, statuses and asset uploads.
- Sand AI Platform quickstart — Sand AI's quickstart: generating a MAGI-2 video from a text prompt or a reference image and retrieving the result.
- MAGI-2 Preview model card — Model card and inference code for the open-weights 114B MAGI-2 Preview; notes the model was trained on long, structured captions and ships prompt-enhancement system prompts.
- #magi-2
- #sand-ai
- #model-launch
- #video-generation
- #native-audio


