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.
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.
Use product or character references to describe the appearance you want carried through a sequence.
Write the order of events and intended cuts so the prompt communicates how a short story should unfold.
Describe dialogue, ambient sound, or music alongside the visible action. Review the resulting audio and video together.
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 |
Capabilities described in Sand AI’s full-model announcement. Available controls depend on the interface you use.
| Specification | Full MAGI-2 model |
|---|---|
| Output | Up to 30 seconds, 1080p, 25 fps |
| Reference inputs | Up to 20 media items per native request, including up to 10 images, 5 videos, and 5 audio clips |
| Audio | Native audio-video generation, including dialogue, sound effects, ambience, and music |
| Creative controls | Timeline and shot-cut control, multiple reference media, and targeted video editing |
| Online experience | VidMuse, linked from Sand AI’s official website |
| Developer access | Sand 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 informationMatch your input to what you want MAGI-2 to preserve or create.
Describe the scene, action, camera, and sound when you want to build a clip from a written idea.
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.
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.
Keep the subject, action over time, camera, and sound explicit. The examples below are starting prompts you can adapt to your own material.
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.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.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.The VidMuse experience is linked from Sand AI’s official website. Check the controls and access shown in your account.
Follow the Try MAGI-2 on VidMuse button. Review the sign-in, access, and pricing information shown by the service.
Select MAGI-2 where available. Write a scene description and add reference material supported by the interface.
Choose the available duration, framing, and sound settings for your clip. Check the displayed cost before submitting.
Watch the completed clip with sound. Check subject details, motion, shot changes, and audio, then save the result using the service’s download controls.
Use this server-side command-line workflow with curl, Python 3, and access to the magi-2 model in your Sand AI organization.
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.
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.jsonRun 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.jsonWhen 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.
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.
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 ckptFrom 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:latestInside 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.shThe 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.
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.
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.
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.
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.
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.
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.
“precision timeline control, and video editing”
“Save the string id for polling.”
“NVIDIA Hopper GPUs, 8 of them.”
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.
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.
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.
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.
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.
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.
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.
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.