MAGI-2 AI Video Generator

Build a scene from text, references, motion, and sound

MAGI-2 is Sand AI’s video generation model for clips up to 30 seconds at 1080p with native audio. Use text or reference media to describe a scene, plan shot changes, or edit existing video. Start with the online experience or follow the developer API guide.

What can you create with MAGI-2?

A product image, a scene outline, or a sound reference can become the starting point for your next clip. Sand AI’s showcase demonstrates multi-reference scenes, shot timing, style transitions, and video editing.

Bring reference images into a scene

Use product or character references to describe the appearance you want carried through a sequence.

Plan a sequence of shots

Write the order of events and intended cuts so the prompt communicates how a short story should unfold.

Design movement and sound together

Describe dialogue, ambient sound, or music alongside the visible action. Review the resulting audio and video together.

MAGI-2 and MAGI-2 Preview

Choose the release and access route that fit your task. The local deployment tutorial below covers Preview.

Capability or access
MAGI-2
Full model
MAGI-2 Preview
Research release
Clip duration
Up to 30 seconds
10 seconds
Inputs
Text with image, video, and audio references
Text or text with a first-frame image
Parameter scale
480B total, approximately 28B active
Approximately 114B total, 6B active
How to start
VidMuse experience or Sand AI API, subject to access
Official inference code and Preview weights
Local setup guidance on this page
Use the current official release information for availability
8 NVIDIA Hopper GPUs and approximately 307 GB of model files

MAGI-2 capabilities at a glance

Capabilities described in Sand AI’s full-model announcement. Available controls depend on the interface you use.

SpecificationFull MAGI-2 model
OutputUp to 30 seconds, 1080p, 25 fps
Reference inputsUp to 20 media items per native request, including up to 10 images, 5 videos, and 5 audio clips
AudioNative audio-video generation, including dialogue, sound effects, ambience, and music
Creative controlsTimeline and shot-cut control, multiple reference media, and targeted video editing
Online experienceVidMuse, linked from Sand AI’s official website
Developer accessSand AI API, using a model enabled for your organization

Check the official pricing page for API charges and billing availability. Review VidMuse’s displayed terms and pricing for its online experience.

Sand AI API model and pricing information

Choose your starting material

Match your input to what you want MAGI-2 to preserve or create.

Start from text

Describe the scene, action, camera, and sound when you want to build a clip from a written idea.

Add image references

Use images to communicate the subject or environment. In the native API, a reference image provides visual guidance. Dedicated first- and last-frame roles are documented in the Ark-compatible interface.

Add video or audio references

Use the documented media-reference inputs when an existing clip or sound is part of your brief. Check the API’s file and duration limits before uploading.

Write a MAGI-2 prompt you can evaluate

Keep the subject, action over time, camera, and sound explicit. The examples below are starting prompts you can adapt to your own material.

  1. Describe a MAGI-2 scene from text

    For a scene built from text, establish the framing and describe one observable action. This example gives the camera a fixed position and pairs the movement with a specific sound.

    Close-up of a rain-covered window at dusk. Over five seconds, droplets merge and slide down the glass. Warm streetlights blur in the background. The camera stays still. Soft rain taps on the pane.
  2. Guide MAGI-2 with an image

    Attach your window image as a reference and explain what should move. For precise first-frame conditioning, follow the first-frame roles in the API’s Ark compatibility documentation.

    Use the supplied window image as the visual reference. Keep its dusk lighting and composition. Droplets gather into larger trails and roll downward. Keep the camera fixed. Add gentle rain tapping and distant street ambience.
  3. Plan MAGI-2 shots and sound

    For a product brief, describe the intended sequence and which details need to carry across shots. Compare the result against your requested timing, appearance, and audio before revising one instruction at a time.

    A ceramic cup rests on a wooden table. From 0–3 seconds, show a wide view in warm morning light. Cut to a close-up from 3–5 seconds as steam rises. Preserve the cup’s blue glaze. Quiet room ambience and a gentle ceramic clink.

How to start using MAGI-2 online

The VidMuse experience is linked from Sand AI’s official website. Check the controls and access shown in your account.

1

Open MAGI-2 on VidMuse

Follow the Try MAGI-2 on VidMuse button. Review the sign-in, access, and pricing information shown by the service.

2

Choose MAGI-2 and prepare your input

Select MAGI-2 where available. Write a scene description and add reference material supported by the interface.

3

Review the generation settings

Choose the available duration, framing, and sound settings for your clip. Check the displayed cost before submitting.

4

Generate and inspect the result

Watch the completed clip with sound. Check subject details, motion, shot changes, and audio, then save the result using the service’s download controls.

Create a first MAGI-2 video through the API

Use this server-side command-line workflow with curl, Python 3, and access to the magi-2 model in your Sand AI organization.

  1. Set up server-side authentication

    Create a key in the Sand AI console and set SAND_API_KEY in your server or terminal environment. Keep the key in server-side configuration. Confirm your organization has model access and sufficient balance.

  2. Create a five-second MAGI-2 task

    This request saves the creation response to magi-create.json. A successful submission returns HTTP 202 and a generation ID. Preserve that ID before checking progress.

    curl --fail-with-body "https://api.sand.ai/v2/generations" \
      -H "Authorization: Bearer ${SAND_API_KEY:?Set SAND_API_KEY on your server}" \
      -H "Content-Type: application/json" \
      --data-binary '{
      "model": "magi-2",
      "parts": [
        {
          "type": "text",
          "text": "Rain runs down a window at dusk. The camera stays still. Soft rain taps against the glass."
        }
      ],
      "duration": 5,
      "aspectRatio": "16:9",
      "resolution": "1080p",
      "generateAudio": true
    }' --output magi-create.json
  3. Retrieve your MAGI-2 task

    Run this after a successful creation response. It saves the latest status to magi-status.json. For queued or processing tasks, query the same ID at the documented ten-second interval.

    SAND_GENERATION_ID=$(python3 -c 'import json; print(json.load(open("magi-create.json"))["id"])')
    curl --fail-with-body "https://api.sand.ai/v2/generations/${SAND_GENERATION_ID:?Missing generation ID}" \
      -H "Authorization: Bearer ${SAND_API_KEY:?Set SAND_API_KEY on your server}" \
      --output magi-status.json
  4. Download the completed video

    When status is succeeded, check that output and output.videoUrl are present. Open the returned URL to download the video before output.urlExpiresAt. If it expires, retrieve the same task again for a fresh URL. Stop polling a failed or canceled task and inspect its error information.

Run MAGI-2 Preview locally

This section covers the 10-second Preview release. The official MAGI-2 Preview setup calls for 8 NVIDIA Hopper GPUs, approximately 307 GB of model files, Python 3.12, a recent CUDA toolkit, and ffmpeg for audio muxing.

  1. Get MAGI-2 Preview source and weights

    On the GPU host, install Git and the Hugging Face CLI, then run these commands. Keep the downloaded checkpoint directory names intact. Allow additional storage for the container, caches, and generated outputs.

    git clone https://github.com/SandAI-org/MAGI-2-preview.git
    cd MAGI-2-preview
    hf download sand-ai/MAGI-2-preview --local-dir ckpt
  2. Start the MAGI-2 Preview dependency container

    From the checked-out repository, start Docker with NVIDIA GPU support. The image provides dependencies and the /workspace mount supplies your code and checkpoints. Record your checkout commit and image build information when comparing runs.

    docker pull sandai/magi-2-preview:latest
    docker run --gpus all -it --rm -v "$PWD:/workspace" sandai/magi-2-preview:latest
  3. Run the MAGI-2 Preview demo batch

    Inside the container, confirm the working directory and run the official demo batch. Preview generates at low resolution and its refiner produces the 1080p tier. Output MP4 files are written under output/demo by default.

    cd /workspace
    bash scripts/run_demo.sh
  4. Optionally enhance your Preview prompt

    The official enhancer has separate text-to-video and image-to-video templates. It asks a configured language model for a structured caption and renders it for the video pipeline. Configure your provider and credentials in a private deployment. The reference implementation skips enhancement when its API key is empty.

Resolve access and generation problems

The MAGI-2 API rejects my model access. What should I check?

Confirm that your key belongs to the intended organization and that magi-2 is enabled for that organization. Review its balance and the current platform access information in the official console.

My MAGI-2 request timed out. Should I submit again?

Keep the task ID from the creation response and retrieve that task. Creation requests can produce another billable task if resubmitted. If an error supplies details.generation_id, query that ID before creating another generation.

The MAGI-2 task completed, but its download link expired. What now?

Retrieve the same generation ID again. Check the latest status, output.videoUrl, and output.urlExpiresAt before downloading. A successful task can have an unavailable output, so confirm the URL is present.

Why does my MAGI-2 Preview video have no sound?

Check that ffmpeg is installed and available on PATH in the inference environment. Preview uses it to mux audio into the output. Confirm that the resulting MP4 includes an audio track.

Why can MAGI-2 Preview not find its checkpoints?

Compare your ckpt directory with the official layout. Confirm the full repository is mounted at /workspace and that ckpt contains the downloaded component directories. If you use MAGI2_CKPT_ROOT, point it to the checkpoint root visible inside the container.

Why is the Preview output 1088 pixels wide?

The generated dimensions follow the VAE stride. The 1080p tier generates at 1088 × 1920. Follow the official entry-point options for output-width and output-height when you need rescaling to exact delivery dimensions.

Check the official MAGI-2 sources

“precision timeline control, and video editing”
Sand AI, MAGI-2 full-model announcementThe full-model announcement describes capabilities and provides the official showcase.MAGI-2 full-model announcement
“Save the string id for polling.”
Sand AI Platform, Sand AI API referenceThe API reference documents request fields, task states, output retrieval, and error handling.Sand AI API reference
“NVIDIA Hopper GPUs, 8 of them.”
Sand AI on GitHub, MAGI-2 Preview inference codeThe Preview repository supplies environment instructions, the demo script, and prompt enhancement code.MAGI-2 Preview inference code

MAGI-2 questions before you start

What is MAGI-2?

MAGI-2 is Sand AI’s full-scale video generation model. Its official announcement describes clips up to 30 seconds at 1080p with native audio, multiple reference-media types, timeline control, and video editing.

Where can I try MAGI-2 online?

Sand AI’s website links to the MAGI-2 experience on VidMuse. Follow the page’s main button, then check the availability and terms shown for your account.

Does MAGI-2 have an API?

Yes. Sand AI documents the magi-2 model on its API platform. Your organization must have access to the model. The developer guide above covers submission, task retrieval, and downloading.

How much does MAGI-2 cost?

Check the linked official API pricing page for its current rate and billing availability. For the online experience, review the price or credits shown by VidMuse before submitting a generation.

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

The full model has 480B total parameters and approximately 28B active, and supports clips up to 30 seconds. Preview has approximately 114B total and 6B active parameters, supports 10-second clips, and has released inference code and weights. Use the version comparison above to select your route.

Can I use MAGI-2 with a reference image?

The native API supports reference_image inputs for visual guidance. For explicit first- and last-frame roles, consult the Ark compatibility documentation. Preview accepts a first-frame image with a text prompt.

Can MAGI-2 generate speech and other sounds?

Sand AI describes native audio-video generation including dialogue, sound effects, ambience, and music. The native API has a generateAudio option that defaults to true. Check the selected service’s available controls.

Start your MAGI-2 video

Choose a scene, prepare your text or reference material, and describe how the action and sound should unfold. Open the VidMuse experience to start online, or use Sand AI’s API documentation for a developer workflow.