Blog

Magi 2 (2026): Sand AI's Audio-Video Model Explained

Unicorn API Team · · 10 min read

Diagram of the Magi 2 approach: a single model backbone producing synchronized video frames and an audio waveform

Magi 2, written by its makers as MAGI-2, is Sand AI’s video generation model that produces picture and sound together: up to 30 seconds of 1080p video at 25 frames per second, with dialogue, sound effects and music generated in sync with the action. Most people searching for it want to know what it is, how it works, whether it is open source and how to call it from code. A smaller group means something else entirely (the Magi anime, Dota 2’s Ogre Magi, or the Three Wise Men), so the last section covers those.

What is Magi 2?

Magi 2 is a unified audio-video model. “Unified” means one network generates both the frames and the soundtrack, instead of one model making silent video and a second model adding audio afterwards. That matters most for speech: when the same model produces the mouth movement and the voice, lip sync is part of generation rather than a fix applied later.

Sand AI shipped it in two stages:

  • Magi-2 Preview, described in a technical write-up in August 2026, scaled a unified audio-video model to about 114B total parameters while activating only about 6B per token. It is built on an architecture Sand AI calls MagiMoE.
  • MAGI-2, the flagship announced on 24 November 2026, is a 480B-parameter Mixture-of-Experts model aimed at end-to-end creative work: dialogue, singing and sound generated natively inside a single backbone.

In practice, Magi 2 is a text-to-video and image-to-video tool that can be guided by an image and a prompt, and it returns a clip that already has its audio. Clips run from 4 to 30 seconds.

Magi 2 specs at a glance

Here is what Sand AI and the platforms hosting the model have published. Anything not listed here (exact training data, per-language voice quality, the precise license) has not been stated clearly enough to repeat.

SpecMagi 2 (flagship)Magi-2 Preview
DeveloperSand AISand AI
ArchitectureMixture-of-Experts, single audio-video backboneMagiMoE, unified audio-video
Total parameters480BAbout 114B
Active parameters per tokenNot stated in the announcement summaryAbout 6B
Max resolution1080pResearch preview
Clip length4 to 30 secondsResearch preview
Frame rate25 fpsResearch preview
AudioDialogue, singing, sound effects, music, synced to videoJoint audio-video generation

Two numbers are worth reading carefully. “480B” is the total size of the model, but a Mixture-of-Experts model does not run every parameter for every token, so its running cost behaves more like a much smaller dense model. And 30 seconds at 25 fps is 750 frames, which is long for a single generation: many video models top out well under that and expect you to stitch clips together.

Mixture-of-Experts routing where only a few experts are activated for each token
In a Mixture-of-Experts model, a router sends each token to a few experts, so only a small share of the total parameters runs at once.

How does Magi 2 generate video and sound together?

You do not need the internals to use the model, but three ideas explain why it behaves the way it does.

Diffusion, briefly

Most modern video generators are diffusion models: they start from random noise and remove it step by step until a clip matching the prompt remains. They usually work in a compressed “latent” space rather than on raw pixels, which is what makes 1080p video affordable to compute at all.

Mixture-of-Experts

A Mixture-of-Experts (MoE) model splits much of its network into many “experts”, smaller sub-networks, and uses a router to send each token to only a few of them. A token here is a small chunk of the compressed video or audio. The result is a model with a huge total capacity (480B parameters for the flagship) where each step only touches a fraction of it. The preview made this explicit: about 114B parameters in total, about 6B active per token. That ratio is the whole reason Sand AI’s write-up is titled around scaling video models efficiently.

One backbone for both streams

Older pipelines generate silent video, then run a separate audio model on top, then try to align them. Magi 2 puts audio tokens and video tokens through the same backbone, so the model learns that a door slam and the frame where the door shuts belong together, and that a vowel sound and an open mouth occur at the same moment. The practical payoff is better lip sync on dialogue and singing, and sound effects that land on the right frame.

The trade-off is control. When audio and video come out of one pass, you cannot easily swap the voice for a professionally recorded one, keep the voice and regenerate only the picture, or match a brand voice exactly. Separate pipelines are clumsier but more editable. Which one you want depends on whether you value one-shot convenience or per-track control.

Where can you use Magi 2, and is it open source?

At the time of writing, Magi 2 is available in Sand AI’s own product and through partner platforms. Higgsfield offers it in its web app and through its API, and several other creative sites have added it to their model menus. Free trials exist on some of these sites, usually as a small number of starter credits, which explains the “Magi 2 ai free” searches.

On open source, be careful. Sand AI released its earlier MAGI-1 model openly, which is why people search for a Magi 2 GitHub repository. Do not assume the 480B flagship follows the same path: check Sand AI’s official channels for the current license before you plan around self-hosting. Even with open weights, a 480B MoE model needs a multi-GPU server to run, so for most teams the hosted API is the realistic option either way.

Magi 2 is not in the Unicorn API catalog today. If you want to build an audio-synced video feature now, from one key and one bill, the next section shows how to get a similar result from models that are available.

Building a Magi 2-style clip with Unicorn API

The goal is a short 1080p clip of a character speaking a line, with the mouth and motion following the audio. Without a unified model, you split the work into three calls:

  1. Start frame: generate the character with Nano Banana 2 Lite (4 credits per image) or GPT Image 1.5 if you need legible on-screen text.
  2. Voice: synthesize the line with Elevenlabs Eleven V4 Turbo, priced at 5.6 credits per 1,000 characters, rounded up to whole credits.
  3. Audio-driven video: pass the image and the audio to LTX 2.5 Fast Audio to Video, which animates the frame to match the sound and is priced per second of output.

Each media call follows the same pattern: POST /v1/jobs with a model id and an input object, then poll GET /v1/jobs/{id} until status is "succeeded", and read the file from outputs[0].url. Create a key at /keys and export it as UNICORN_API_KEY.

import os
import time
import requests

BASE = "https://api.unicornapi.net"
HEADERS = {
    "Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}",
    "Content-Type": "application/json",
}

def run_job(model, input_data, poll_seconds=5, timeout_seconds=900):
    """Start a media job and wait for its first output URL."""
    resp = requests.post(f"{BASE}/v1/jobs", headers=HEADERS,
                         json={"model": model, "input": input_data})
    resp.raise_for_status()
    job_id = resp.json()["id"]

    deadline = time.time() + timeout_seconds
    while time.time() < deadline:
        job = requests.get(f"{BASE}/v1/jobs/{job_id}", headers=HEADERS).json()
        if job["status"] == "succeeded":
            return job["outputs"][0]["url"]
        if job["status"] == "failed":
            raise RuntimeError(f"{model} job {job_id} failed: {job}")
        time.sleep(poll_seconds)
    raise TimeoutError(f"{model} job {job_id} did not finish in time")

# 1. Start frame (4 credits)
image_url = run_job("nano-banana-2-lite", {
    "prompt": "Portrait of a lighthouse keeper in a yellow raincoat, "
              "facing camera, stormy sea behind, cinematic light",
    "aspect_ratio": "16:9",
})

# 2. Voice line (under 1,000 characters, so 5.6 rounds up to 6 credits)
audio_url = run_job("elevenlabs-text-to-speech-v4-turbo", {
    "text": "Forty years I've kept this light. Tonight, the sea finally answered back.",
})

# 3. Animate the frame to the voice: 10 s at 1080p = 15.6 x 10 = 156 credits
video_url = run_job("ltx-2-5-fast-audio-to-video", {
    "prompt": "The keeper speaks to camera, rain on his hood, waves crashing behind",
    "image_url": image_url,
    "audio_url": audio_url,
    "resolution": "1080p",
    "duration": 10,
})

print("Video:", video_url)

This run costs 4 + 6 + 156 = 166 credits, which is $1.66 on a monthly plan or about $2.49 with top-up credits. To see the exact price before running any job, call POST /v1/models/price; the request format is in the API documentation. If you are working inside Cursor or Claude Code, the same models are available as tools through the MCP setup.

Variations worth knowing

  • Music video instead of dialogue: pass a song file as audio_url and describe the motion you want. LTX 2.5 Fast animates to whatever audio you give it.
  • Silent motion shots: for B-roll that gets sound later, Grok Imagine Video 1.5 animates a start frame for 1 to 15 seconds at a very low per-second rate, and Grok Imagine Video 1.0 runs text-to-video or image-to-video for 6 to 30 seconds, the same maximum length as Magi 2.
  • Better prompts: a chat model such as Gemini 4 Neon can turn a one-line idea into a shot description and a script before any media credits are spent. Our Gemini 4 API guide covers setup.
Four-step pipeline from start image to voice track to audio-driven video to finished MP4
A Magi 2-style result built from separate models: start frame, voice track, then an audio-to-video model that animates the frame to the sound.

What does a Magi 2-style clip cost on Unicorn API?

Since Magi 2 itself is not in the catalog, the useful comparison is between the routes you can actually run. Credits cost $0.01 each on monthly plans (Starter $25, Creator $50, Studio $100, Pro $200) and $0.015 each as top-ups that never expire. All numbers below come from the published per-model prices on the pricing page.

RouteModelsOutputCreditsPlan price
Talking clip, 1080pNano Banana 2 Lite + Eleven V4 Turbo + LTX 2.5 Fast10 s with voice166$1.66
Talking clip, 720pSame, at 720p (10.8 credits/s)10 s with voice118$1.18
Talking clip, 1440pSame, at 1440p (22.8 credits/s)10 s with voice238$2.38
Silent motion, shortGrok Imagine Video 1.5, 1080p10 s, no audio track80$0.80
Silent motion, longGrok Imagine Video 1.0, 1080p30 s, no audio track240$2.40
Silent motion, draftGrok Imagine Video 1.5, 480p5 s, no audio track12$0.12

The pattern to notice: resolution drives cost more than anything else. Draft at 480p or 720p, pick the take you like, and only render the final at 1080p or above.

Common mistakes and trade-offs with audio-video models

Whether you use Magi 2 on a partner platform or a multi-model pipeline, the same problems come up.

  • Treating “30 seconds” as the default. Longer clips cost more and drift more: faces change, objects wander. Generate in shorter shots and cut them together unless you truly need one continuous take.
  • Writing scripts that are too long for the clip. Normal speech runs at a steady pace, and a paragraph will not fit in ten seconds. Read the line aloud with a timer before you generate. In a split pipeline, check the audio length first and set the video duration to match.
  • Prompting only the picture. With a unified model like Magi 2, describe the sound too: “rain on a tin roof, distant thunder, he speaks quietly”. If you leave audio unspecified, the model guesses.
  • Rendering finals before testing. A single 1080p failure costs as much as several low-resolution drafts. Price check first, then draft cheap.
  • Expecting edit-level control from a one-pass model. If a client needs a specific voice actor or a licensed track, a unified generator is the wrong tool for that shot. Generate the audio yourself and drive the video from it.
  • Ignoring rights. Generated voices that imitate real people and music that imitates real songs carry legal risk regardless of which model made them.

The bigger trade-off is between one model and several. Magi 2 gives you a coherent clip from one prompt, which is great for social content and pitch reels. A pipeline costs more calls but lets you replace any single part, such as a better voice, a new start frame or a different video model, without redoing the rest. Teams shipping a product feature often prefer the pipeline for exactly that reason, and can browse the full model catalog to swap parts as new models arrive.

Other meanings of “Magi 2”: the anime, Dota 2 and the Wise Men

Search engines group several unrelated things under “Magi 2”. Here is the short version of each.

Magi anime season 2

The anime Magi: The Labyrinth of Magic has a second season, titled Magi: The Kingdom of Magic. It continues the story of Aladdin, Alibaba and Morgiana directly, so watch the first season first. It streams on licensed anime services, and availability varies by country, so check what is offered in your region.

Magi: Adventure of Sinbad season 2

Magi: Adventure of Sinbad is a prequel series about Sinbad’s younger years. It has not received a second season. The original manga goes further than the anime if you want the rest of the story.

Puella Magi Madoka Magica season 2 or movie 2

Despite the shared word, Puella Magi Madoka Magica is unrelated to Magi. It has no second TV season; the story continues in films instead, with a further film announced. Check the official channels for current release information.

Ogre Magi in Dota 2

Ogre Magi is a hero in Dota 2, a two-headed ogre known for Multicast, which can repeat his spells. People searching “dota 2 ogre magi” want builds and patch notes, not video models.

What “magi” means, and MAGI2 the protein

Magi is the plural of magus: originally priests of Zoroastrianism and earlier Iranian religions, and the root of the word “magic”. The Biblical Magi are the Three Wise Men of the nativity story. In biology, MAGI2 (also written MAGI-2) is a human protein, membrane-associated guanylate kinase inverted 2, involved in cell junctions. If you landed here for any of those, the sections above should point you the right way. If you came for the video model, the fastest next step is to grab a key and run the pipeline example in Python above.

Frequently asked questions

Is there a Magi 2?

Yes, in two senses. MAGI-2 is Sand AI's video generation model, which creates 1080p clips up to 30 seconds long with synchronized audio. A preview with about 114B total parameters came first, followed by a 480B Mixture-of-Experts flagship. If you meant the anime, Magi: The Labyrinth of Magic was followed by a second season called Magi: The Kingdom of Magic.

Is there a Magi season 2?

Yes. The second season of Magi: The Labyrinth of Magic is titled Magi: The Kingdom of Magic, and it continues Aladdin, Alibaba and Morgiana's story directly. The prequel series Magi: Adventure of Sinbad is a separate show about Sinbad's younger years, and it has not received a second season. Fans asking for 'Magi season 3' are usually waiting on more of the main series.

Where can I watch Magi season 2?

Magi: The Kingdom of Magic streams on licensed anime services, and Crunchyroll has carried it in many regions. Licensing differs by country and changes over time, so check the official streaming apps available where you live, or use a legal streaming search tool that shows current availability. Physical Blu-ray releases are another option if a series rotates off streaming in your region.

What exactly is a magi?

Magi is the plural of magus. It originally meant priests of Zoroastrianism and earlier Iranian religions, which is also where the word 'magic' comes from. In Christian tradition, the Biblical Magi are the Three Wise Men who visit the infant Jesus. Modern uses borrow the word: the anime Magi, the Ogre Magi hero in Dota 2, the MAGI2 human protein, and Sand AI's MAGI-2 video model.

Is Magi 2 open source?

Do not assume so. Sand AI released its earlier MAGI-1 model openly, which is why people search for a Magi 2 GitHub repository, but the 480B flagship is offered through Sand AI's own product and partner platforms. Check Sand AI's official channels for the current license before you plan to self-host. A model that size would also need serious multi-GPU hardware to run.

Can I use Magi 2 through an API?

Sand AI's model is available through partner platforms, including Higgsfield's web app and API. It is not in the Unicorn API catalog at the time of writing. If you need audio-synced video from one key today, Unicorn API offers LTX 2.5 Fast Audio to Video, which animates an image to match a voice or music track, plus Grok Imagine Video models for clips up to 30 seconds.