Model icon
magi-2
Text to Video
Image to Video
Reference to Video
Audio to Video
View more Sand AI models
Model:
MAGI-2 API for long takes with sound: generate 4–30 second 1080p videos with synchronized dialogue, sound effects and ambience from a text prompt, first and last frames, or up to 10 images, 5 videos and 5 audio clips as references. 16 credits ($0.08) per second.
Input
259/15000
Added 0/2

Drop files here, paste files, or add a URL. First and last frames: the first image opens the video and an optional second image closes it. JPG, PNG or WEBP. The video follows the aspect ratio of the first frame.

Added 0/10

Drop files here, paste files, or add a URL. Up to 10 images for characters, objects, scenes or style. Describe in Prompt how each reference is used.

Drop files here, paste files, or add a URL. Up to 5 MP4 or MOV clips for motion, camera work or characters, each 2–30 seconds and up to 30 seconds in total.

Added 0/5

Drop files here, paste files, or add a URL. Up to 5 MP3 or WAV clips for voice, music or rhythm, each 2–30 seconds and up to 30 seconds in total.

Output

Example Output

This is sample data. Generate a new result to see real output.

Task ID:example-magi-2-text-to-video-dialogueCreated:-
Status:finishedProgress:100%
Examples
Pricing details

Pay as you go. No subscription, no hidden fees.

1 credit = $0.005
TierPoYo price
1080p
$0.080/sec
16 credits/sec
5-second video: $0.400 ·10-second video: $0.800
How it's billed: Billed per second of output video.

Charges are based on the final output.

MAGI-2 API

Sand AI's 480B video model for 30-second 1080p takes with native sound

MAGI-2 API: 30-Second 1080p Video with Synchronized Audio

The MAGI-2 API is a video generation API that runs MAGI-2, the 480B-parameter video model Sand AI released on November 24, 2026, as one REST call on PoYo. Send a text prompt, a first frame with an optional last frame, or up to 10 reference images, 5 reference videos and 5 reference audio clips, and the MAGI-2 API returns a 4–30 second 1080p MP4 at 25 fps with dialogue, sound effects and ambience generated together with the picture.

Write a shot list with timings in a prompt of up to 15,000 characters, pick one of six aspect ratios from 9:16 to 21:9, and keep characters and locations consistent with references. Every output second costs 16 credits ($0.08) in every mode, so a 10-second clip is 160 credits ($0.80).

Available MAGI-2 API Modes on PoYo

MAGI-2 Text to Video (magi-2)

Describe the scene, subjects, camera, timing and sound in a prompt of up to 15,000 characters, and put spoken lines in quotes. The MAGI-2 API returns a 4–30 second 1080p video with synchronized audio in 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9.

MAGI-2 First and Last Frames (magi-2 + image_urls)

Send one JPG, PNG or WEBP image in image_urls as the opening frame, or two images to set the opening and closing frames. The video follows the aspect ratio of the first frame, and the prompt describes the motion and sound between them.

MAGI-2 Reference to Video (magi-2 + reference_*_urls)

Combine up to 10 reference images, 5 reference videos and 5 reference audio clips in one task to carry a character, a location, a style or a piece of music into a new scene. Each video or audio clip runs 2–30 seconds, up to 30 seconds per type in total.

Key Features of MAGI-2 API

What the MAGI-2 API is built for: long single takes, sound generated with the picture, and references that keep characters, scenes and music on track.

30-Second Takes with Timed Shot Cuts

Ads and short dramas need more than one shot, and stitching short clips breaks the rhythm. MAGI-2 generates up to 30 seconds in one request and follows a script-level timeline, so you can write each shot with its time range in the prompt. In Sand AI's example, a 30-second prompt lists 15 shots with a hard cut every 2 seconds, and the snowboard chase lands each cut on schedule, down to the officer's line "She's too fast."

  • Up to 30 seconds per generation
  • Shot lists with timings in one prompt
  • Prompts of up to 15,000 characters

Synchronized Dialogue, Sound Effects and Ambience

Adding a voice-over, foley and room tone after the fact takes a second tool and rarely matches the lips. MAGI-2 generates audio and video in the same pass: write the spoken line in quotes and the character says it with matching mouth movement, while music, rain and footsteps follow the scene. In this PoYo test, a 5-second prompt for a street saxophonist in a rainy neon-lit alley returned the melody, the rain and his closing line in one MP4. Set generate_audio to false for a video-only file at the same price.

  • Dialogue with lip sync from quoted lines
  • Music, foley and ambience in one output
  • Audio on by default, same price either way

Multi-Image References for Characters and Scenes

A recurring character only works if the face and costume survive every cut. Send up to 10 images in reference_image_urls and the MAGI-2 API keeps them in view across close-ups, low-angle POV shots and wide shots. In Sand AI's "Giant Flower World" example, reference images of one character and three locations (an iris hillside, a pink rose garden and a lily valley) produced a walk through all three, with leaves and petals used as transitions between scenes.

  • Up to 10 reference images per task
  • Same face and wardrobe across shots
  • Several locations in one video

Style Transitions in One Continuous Shot

Music videos and title sequences often move from one look to the next inside a single shot. With five paintings as reference images, Sand AI's example walks along a riverbank in one 30-second continuous take and passes through the styles of The Starry Night, pointillism, Water Lilies, The Great Wave off Kanagawa and Klimt's gold leaf, while the first-person camera keeps moving forward smoothly. The MAGI-2 API accepts the same kind of style references through reference_image_urls.

  • Five painting styles in one 30-second take
  • Steady camera motion through every change
  • Style references as plain images

Character and Music References Together

Reference audio lets a new clip pick up a voice or a melody you already have. The MAGI-2 API takes up to 5 MP3 or WAV clips in reference_audio_urls next to reference images and videos. In this PoYo test, one frame of the saxophonist and 5 seconds of his music from the earlier MAGI-2 clip were sent as references with an 8-second prompt; the result places the same musician on a seaside boardwalk with seagulls, playing along with the referenced music and speaking to the camera at the end.

  • Up to 5 reference audio clips
  • Mix images, videos and audio in one task
  • Same performer in a new setting

Six Aspect Ratios from 9:16 to 21:9

One campaign often needs a vertical cut for social feeds and a wide one for the web or a cinema-style trailer. The MAGI-2 API outputs 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9; in PoYo's tests, 16:9 came back at 1920×1080, 9:16 at 1080×1920 and 21:9 at 2182×950. This 4-second 21:9 clip of a desert rider was generated with generate_audio set to false and a fixed seed, moving from a close-up to a silhouette against the sunset.

  • Vertical, square, landscape and ultrawide
  • 1080p-class frame size for every ratio
  • Optional seed from 0 to 2147483647

Who Can Benefit from MAGI-2 API?

Short Drama and Film Previsualization

Writers and directors can turn a scene script into a 30-second take with timed cuts, spoken lines and ambience through the MAGI-2 API, and keep the same cast across episodes with reference images.

Advertising and Brand Campaigns

Agencies can generate spots with a voice line, music and sound design in one MAGI-2 API request, then render the same concept in 16:9, 9:16 and 1:1 for every placement.

Social Video and UGC

Creators and social teams can produce vertical 1080×1920 clips with a hook, dialogue and a reaction shot, and reuse a host or mascot from reference images to keep a series recognizable.

Music Videos and Performance Clips

Musicians and labels can send a track excerpt as reference audio and a performer image, and use the MAGI-2 API to place the performer in new scenes that move with the music.

AI Video Apps and Platforms

Developers of video editors, story apps and creator tools can add text-to-video, first-and-last-frame and reference-to-video generation through one MAGI-2 API model ID and one per-second price.

Education and Training Content

Course creators and L&D teams can script a presenter who speaks the lesson on camera, set the scene and timing in the prompt, and generate consistent lesson clips with the MAGI-2 API.

How to Use MAGI-2 API on PoYo

Step 1: Register & Create API Key
Sign in to PoYo and create an API key in the dashboard. The same key works for the MAGI-2 API and every other image, video, audio and 3D model on PoYo.
Create API Key →

Step 2: Top Up Credits
Add credits to your account. The MAGI-2 API costs 16 credits ($0.08) per output second in every mode: 80 credits ($0.40) for 5 seconds, 160 credits ($0.80) for 10 seconds and 480 credits ($2.40) for 30 seconds. Failed tasks are refunded automatically.
Add Credits →

Step 3: Call the MAGI-2 API
Send a POST request to https://api.poyo.ai/api/generate/submit, for example: curl -X POST https://api.poyo.ai/api/generate/submit -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model": "magi-2", "input": {"prompt": "At dusk, a lighthouse keeper climbs a spiral staircase, opens the lamp room door and lights the lamp while waves crash against the rocks below.", "duration": 10, "aspect_ratio": "16:9"}}'. Add image_urls for first and last frames, or reference_image_urls, reference_video_urls and reference_audio_urls for references. In Python, send the same body with requests.post(url, headers=headers, json=payload); in JavaScript, with fetch(url, {method: "POST", headers, body: JSON.stringify(payload)}). Poll GET https://api.poyo.ai/api/generate/status/{task_id} with the returned task_id, or pass a callback_url to receive the MP4 when the task finishes.
View Documentation →

Frequently Asked Questions about MAGI-2 API

What is MAGI-2?

MAGI-2 (also written MAGI 2) is the video generation model Sand AI released on November 24, 2026. It has 480 billion parameters, about 28 billion active per token, and generates video and audio together in one sequence, so dialogue, sound effects and ambience match the picture. It creates 1080p clips of up to 30 seconds from text, first and last frames, or image, video and audio references. PoYo offers it as the MAGI-2 API under the model ID magi-2.

How much does the MAGI-2 API cost on PoYo?

The MAGI-2 API costs 16 credits ($0.08) per output second, the same rate for text-to-video, first and last frames and reference-to-video. References, the audio setting and the aspect ratio keep the rate the same: a 5-second clip is 80 credits ($0.40), 10 seconds is 160 credits ($0.80) and 30 seconds is 480 credits ($2.40). You pay only for the seconds you generate, and failed tasks are refunded automatically.

How long can a MAGI-2 video be, and what resolution does it output?

Set duration to any whole number of seconds from 4 to 30; the default is 5. Every video is 1080p: in PoYo's tests, 16:9 returned 1920×1080, 9:16 returned 1080×1920 and 21:9 returned 2182×950. The MAGI-2 API returns one MP4 file with H.264 video at 25 fps and, with audio on, an AAC stereo track. Sand AI brings the base output to 1080p with a latent super-resolution stage that re-reads the reference images, which keeps small faces and on-screen text sharp.

Does MAGI-2 generate dialogue and sound?

Yes. With generate_audio at its default of true, MAGI-2 generates dialogue with lip sync, sound effects, ambience and music in the same pass as the video. Put spoken lines in quotes in the prompt and describe the sounds you want. Set generate_audio to false to receive a video-only MP4; the MAGI-2 API price per second stays the same.

How do first and last frames work in the MAGI-2 API?

Put one JPG, PNG or WEBP image in image_urls to set the opening frame, or two images to set the opening and closing frames, and describe the motion in the prompt. The output follows the aspect ratio of the first frame, so leave aspect_ratio empty or set it to auto. Each MAGI-2 API task uses one of two input modes: image_urls for frames, or the reference_* fields for references.

How many reference images, videos and audio clips can I send?

One MAGI-2 API task accepts up to 10 reference images, up to 5 reference videos (MP4 or MOV) and up to 5 reference audio clips (MP3 or WAV). Mix them freely, or send reference audio on its own to set the voice, music or rhythm. Each video or audio clip runs 2–30 seconds, and the clips of each type add up to 30 seconds at most. Describe in the prompt what each reference is for, for example the character, the location or the music.

Which aspect ratios does MAGI-2 support?

Text-to-video and reference-to-video tasks take 16:9 (the default), 9:16, 1:1, 4:3, 3:4 or 21:9. First-and-last-frame tasks use auto, which follows the aspect ratio of the first frame.

How do I control shots and cuts in a MAGI-2 prompt?

Write the video as a shot list: give each shot a time range, the framing, the action, the camera move and any spoken line, in a prompt of up to 15,000 characters. Sand AI built MAGI-2 for script-level timing, with cuts placed by timestamp or by action. In Sand AI's timeline example, a 30-second prompt with 15 shots and a hard cut every 2 seconds is followed shot by shot.

How long does a MAGI-2 generation take?

In PoYo's tests, 4–8 second clips took about 3–6 minutes. The MAGI-2 API runs as an asynchronous task: the submit request returns a task_id at once, and you poll the task status or receive the result through a callback_url.

What is the difference between MAGI-2 and MAGI-2 Preview?

MAGI-2 Preview, released on August 5, 2026, is a research preview with about 114 billion parameters (about 6 billion active). MAGI-2 scales this to 480 billion parameters (about 28 billion active) and was pretrained on 4 trillion tokens. Sand AI reports that its average Elo across four Artificial Analysis Video Arena v2.1 leaderboards rose from 998.5 for the Preview to 1150.3 for MAGI-2. The MAGI-2 API on PoYo runs the full MAGI-2 model.

Is MAGI-2 open source?

The open-source release from Sand AI on GitHub is MAGI-2 Preview, the 114B research model from August 2026. Sand AI has announced plans to open-source the full MAGI-2 and publish a technical report. Until then, MAGI-2 is available through APIs, including the MAGI-2 API on PoYo, which you can try in the Playground on this page.

How do I call the MAGI-2 API from Python or JavaScript?

Send a POST request to https://api.poyo.ai/api/generate/submit with the header Authorization: Bearer YOUR_API_KEY and a JSON body such as {"model": "magi-2", "input": {"prompt": "...", "duration": 5}}. Python can use requests.post with json=payload, and JavaScript can use fetch with body: JSON.stringify(payload). Then poll GET https://api.poyo.ai/api/generate/status/{task_id} until the status is finished and read the video URL from the result.

Why Use PoYo for MAGI-2 API Access

One API Key for Every Model

Call the MAGI-2 API with the same request format and API key you use for image, video and audio models on PoYo, and send a generated image straight into MAGI-2 as a first frame or reference.

One Price per Second

Every MAGI-2 API task costs 16 credits per output second, whatever the mode, references or audio setting. The estimate is shown before you submit, and failed tasks are refunded automatically.

Playground with Video Preview

Try prompts, frames and references in the Playground, play the result with its sound, download the MP4, then copy the JSON request into your code.

Developer-Friendly Integration

Use the documented MAGI-2 API fields, asynchronous task polling and callback URLs, so 30-second generations run in the background of your application.