MAGI-2 API logo - Sand AI AI video model
Built by Sand AI Live on the API

MAGI-2 API

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.

Provider
Sand AI
Max resolution
1080p
Avg. generation
~88s
Price
From $0.011/video
  • Plans from $29/mo, cancel anytime
  • No Sand AI account needed
  • One key for 20 models

Access the MAGI-2 video model via REST API on VideoGenAPI, with endpoints, a live playground and developer docs.

Interactive demo

Try MAGI-2 right now

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.

Playground Demo - MAGI-2
Demo Mode
magic_button AI Powered
Be specific for best results 0/1000
Sign up to generate videos
Create a free account to access the full playground and generate videos with MAGI-2 on a monthly plan.
timer ~88s generation
rocket_launch Get Started Free

Demo Preview

Demo Mode
MAGI-2
MAGI-2
by Sand AI
MAGI-2 by Sand AI: text-to-video and image-to-video with native synchronized audio (speech, lip-sync, effects and music) and timeline-directed shot cuts, at up to 1080p.
1080p • 5-15s • ~88s processing
Gallery

MAGI-2 examples

Discover what's possible with MAGI-2 AI video generation

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

Generated with the MAGI-2 API at up to 1080p. Results vary with prompt detail and requested duration.

What is the MAGI-2 API?

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.

Sand AI
Provider
REST
API protocol
~88s
Avg. generation

How to use the MAGI-2 API

Integrate the MAGI-2 API in your app in under 5 minutes with these four steps.

  1. 1

    Create your VideoGenAPI account

    Sign up free at VideoGenAPI.com and generate your API key from the dashboard. No Sand AI account needed.

  2. 2

    Send a request to the MAGI-2 API

    POST to https://videogenapi.com/api/v1/generate with your API key, model "magi-2", and a text prompt describing your video.

  3. 3

    Poll for completion

    Use the returned generation_id to poll GET /api/v1/status/{id} until the job completes. Video completion webhooks are not available yet.

  4. 4

    Download your video

    Once status is "completed", retrieve the video URL from the response and embed it in your app, website, or workflow.

Documentation

About MAGI-2

info Overview

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).

stars Key Strengths

  • check_circle Video and audio in one pass: speech with lip-sync, sound effects and music
  • check_circle Shot cuts placed on a timeline, with a chosen shot size per segment
  • check_circle Frontier quality: second on Higgsfield's Video Arena at launch (1,146 Elo)
  • check_circle Text-to-video and image-to-video at up to 1080p on VideoGenAPI
  • check_circle Included in monthly plans, billed per video instead of per second

check_circle Supported Features

  • Text to Video
  • Image to Video

settings Specifications

  • Max Resolution: 1080p
  • Duration Range: 5-15s
  • Avg. Processing: ~88s

workspace_premium Why MAGI-2 via VideoGenAPI?

  • check_circle
    Unified API: Access MAGI-2 alongside 19 other models with one API key - no separate Sand AI setup.
  • check_circle
    Per-video pricing: MAGI-2 videos count against your monthly plan, from $0.011/video, with no per-second billing.
  • check_circle
    Production-ready: one REST endpoint, status polling, an MCP server for AI agents, and full docs.
Use cases

What you can build with MAGI-2

1

Talking characters

Scenes where people speak on camera and the mouth movement has to match the line.

2

Music and mood pieces

Clips where the soundtrack and the picture are generated together and stay in sync.

3

Multi-shot scenes

A close-up, then a cut to a wide shot, inside a single generation instead of stitching clips.

API reference

MAGI-2 API documentation

Quick start guide to integrate MAGI-2 in your application

code Endpoint

POST https://videogenapi.com/api/v1/generate

tune MAGI-2 API parameters

Request parameters accepted by the MAGI-2 API on POST /api/v1/generate
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.

send Request Example

{
  "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"
}

download Response Example

{
  "success": true,
  "generation_id": "gen_abc123xyz",
  "status": "in_progress",
  "estimated_time": 88}

integration_instructions Code Examples

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);

MAGI-2 image-to-video request

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
  }'
Pricing

MAGI-2 API pricing

MAGI-2 is billed per video, not per second of output. See the cost calculator for your volume.

$0.011

per MAGI-2 video on the Starter plan

MAGI-2 API cost per video by VideoGenAPI plan
Plan Monthly Videos Cost / video
Basic $29 1,500 $0.019
Starter $49 4,500 $0.011
Unlimited $199 No cap Flat
  • check_circle One API key for MAGI-2 and 19 other models
  • check_circle No Sand AI account required
  • check_circle Billed per video, never per second of output
Start with the MAGI-2 API
Comparison

MAGI-2 API vs alternatives

How the MAGI-2 API compares on resolution, clip length, generation speed and price. All models below share one API key.

Comparison of the MAGI-2 API against alternative AI video generation models on VideoGenAPI
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.

Limits

MAGI-2 API limitations

  • Plan duration and resolution caps apply even when the model supports higher output. See pricing.
  • Jobs are asynchronous: poll GET /api/v1/status/{id}. Video completion webhooks are not available yet.
  • Rate limits and fair-use throttling are documented on /docs/rate-limits.
  • Prompts and images that violate the content guidelines are rejected.
Reviewed by Enzo Lanne · Founder, VideoGenAPI ·
FAQ

MAGI-2 API questions

What is MAGI-2? expand_more
MAGI-2 is Sand AI's flagship video model, released on November 24, 2026. It is a large mixture-of-experts model (480B total parameters and about 28B active, according to Sand AI) that generates video with synchronized audio, including speech, lip-sync, sound effects and music.
How do I call MAGI-2 on VideoGenAPI? expand_more
Send POST /api/v1/generate with "model": "magi-2", a prompt and a duration of 5, 10 or 15 seconds. Add "image_url" for image-to-video and "resolution" ("720p" or "1080p"), then poll GET /api/v1/status/{id}.
Does MAGI-2 generate audio? expand_more
Yes. MAGI-2 produces sound in the same pass as the picture: dialogue with lip-sync, sound effects and music.
Is MAGI-2 open source? expand_more
Not yet. Sand AI released the smaller MAGI-2 Preview (114B parameters, about 6B active, 10-second clips) as open weights in August 2026 and says it will open-source the full MAGI-2 later, without a date or license announced.
How does MAGI-2 compare with Seedance 2.5? expand_more
On Higgsfield's Video Arena at launch, Seedance 2.5 ranked first (1,219 Elo) and MAGI-2 second (1,146), and Seedance 2.5 won 61% of direct matchups. MAGI-2 is much cheaper per second at list price. Full comparison: MAGI-2 vs Seedance 2.5 (/blog/magi-2-vs-seedance-2-5).
How much does one MAGI-2 API video cost? expand_more
Each MAGI-2 generation counts as one video in your VideoGenAPI plan, whatever its length within plan limits. On Starter ($49/month for 4,500 videos) that is about $0.011 per video, with clips up to 15 seconds. Unlimited ($199/month) removes the monthly cap. Per-second video APIs bill every second of output instead, so a 10-second clip costs ten times a 1-second one.

Ready to ship with MAGI-2?

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