Talking characters
Scenes where people speak on camera and the mouth movement has to match the line.
Also known as MAGI 2, MAGI-2.0, Sand AI MAGI-2, Sand.ai video model
Sand AI MAGI-2 - a frontier video model that generates picture and sound together, with dialogue, lip-sync and shot cuts you can place on a timeline.
Best for Dialogue and lip-synced clips, music-driven scenes, and sequences with deliberate shot cuts.
Access the MAGI-2 video model via REST API on VideoGenAPI, with endpoints, a live playground and developer docs.
Explore the interface and see how easy it is to generate videos with MAGI-2. Create an account and pick a plan to start generating.
Discover what's possible with MAGI-2 AI video generation
Generated with the MAGI-2 API at up to 1080p. Results vary with prompt detail and requested duration.
The MAGI-2 API is a REST interface that lets developers generate AI videos programmatically using Sand AI's MAGI-2 model. It supports text-to-video, image-to-video through a single POST endpoint. VideoGenAPI handles authentication, billing, and provider infrastructure - you only need one API key to start building with the MAGI-2 API.
Integrate the MAGI-2 API in your app in under 5 minutes with these four steps.
Sign up free at VideoGenAPI.com and generate your API key from the dashboard. No Sand AI account needed.
POST to https://videogenapi.com/api/v1/generate with your API key, model "magi-2", and a text prompt describing your video.
Use the returned generation_id to poll GET /api/v1/status/{id} until the job completes. Video completion webhooks are not available yet.
Once status is "completed", retrieve the video URL from the response and embed it in your app, website, or workflow.
MAGI-2 is the flagship video model from Sand AI, the lab behind MAGI-1, one of the first open autoregressive video models. Released on November 24, 2026, it is a large mixture-of-experts Transformer: Sand AI puts it at 480 billion parameters in total with about 28 billion active per token (Higgsfield's announcement says 400 billion), trained on roughly three times the data of the open MAGI-2 Preview released in August. MAGI-2 generates video and audio in a single pass: speech with lip-sync, sound effects and music come out with the picture. Its other signature is directed editing: you can place shot cuts at chosen seconds on a timeline and set the shot size of each segment. On Sand AI's own platform it renders up to 30 seconds at 1080p and accepts up to 20 references (10 images, 5 videos and 5 audio clips). On VideoGenAPI, MAGI-2 handles text-to-video and image-to-video for 5 to 15 second clips at up to 1080p, included in monthly plans and billed per video. For how it stacks up against ByteDance's flagship, read MAGI-2 vs Seedance 2.5 (/blog/magi-2-vs-seedance-2-5).
Scenes where people speak on camera and the mouth movement has to match the line.
Clips where the soundtrack and the picture are generated together and stay in sync.
A close-up, then a cut to a wide shot, inside a single generation instead of stitching clips.
Quick start guide to integrate MAGI-2 in your application
| Parameter | Type | Required | MAGI-2 values |
|---|---|---|---|
| model | string | Yes | "magi-2" |
| prompt | string | Yes | Scene description, up to 1,000 characters. |
| image_url | string | No | Public jpg, png, gif or webp URL. Animates the image (image-to-video). |
| duration | integer | No | 5 to 15 seconds, up to 15s on every plan. |
| resolution | string | No | 480p, 720p, 1080p. |
| aspect_ratio | string | No | 16:9, 4:3, 1:1 or 9:16 (text-to-video). |
| seed | integer | No | Fixed value for reproducible output, -1 for random. |
| add_audio | boolean | No | MAGI-2 generates native audio with the video. |
Average generation time: ~88s. Poll GET /api/v1/status/{id} with the returned generation_id. Full reference: /docs/generate.
{
"model": "magi-2",
"prompt": "Two friends argue in a rainy diner booth at night, close-up on her as she says "You promised me", cut at 5s to a wide shot of the empty street outside, neon hum and rain on the window",
"duration": 10,
"resolution": "480p"
}
{
"success": true,
"generation_id": "gen_abc123xyz",
"status": "in_progress",
"estimated_time": 88}
const response = await fetch('https://videogenapi.com/api/v1/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model: 'magi-2',
prompt: 'Two friends argue in a rainy diner booth at night, close-up on her as she says \"You promised me\", cut at 5s to a wide shot of the empty street outside, neon hum and rain on the window',
duration: 10 })
});
const data = await response.json();
console.log(data.generation_id);
curl -X POST https://videogenapi.com/api/v1/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "magi-2",
"prompt": "Slow push in, soft natural light, subtle movement",
"image_url": "https://example.com/your-image.jpg",
"duration": 5
}'
MAGI-2 is billed per video, not per second of output. See the cost calculator for your volume.
per MAGI-2 video on the Starter plan
| Plan | Monthly | Videos | Cost / video |
|---|---|---|---|
| Basic | $29 | 1,500 | $0.019 |
| Starter | $49 | 4,500 | $0.011 |
| Unlimited | $199 | No cap | Flat |
How the MAGI-2 API compares on resolution, clip length, generation speed and price. All models below share one API key.
| Model | Provider | Max resolution | Clip length | Avg. speed | Price / video |
|---|---|---|---|---|---|
| MAGI-2 API This page | Sand AI | 1080p | 5-15s | ~88s | Included, from $0.011 |
| Seedance 2.5 API | ByteDance | 1080p | 5-30s | ~150s | Included, from $0.011 |
| FLUX 3 Max API | Black Forest Labs | 1080p | 5-20s | ~12s | $0.25/s |
| Kling 3.0 API | Kuaishou | 1080p | 5-10s | ~250s | Included, from $0.011 |
Switching between these models means changing the magi-2
value in your request body. The endpoint, authentication and status polling stay the same.
Create a key and call the MAGI-2 API in minutes, plus 19 other models on the same endpoint.
Free account · Plans from $29/mo · Cancel anytime