Sand.ai · 1 model
MAGI API
Sand.ai's MAGI video models through one API: MAGI-2. From $0.08/s. Text, image and Reference to video, up to 1080p, clips up to 30 s, with audio.
- Models
- 1
- video
- From
- $0.08/s
- MAGI-2
- Below official
- —
- MAGI-2
- Failed runs
- $0
- refunded automatically
Lineup
MAGI video model on CheaperGen
Starting price per second at each model's lowest tier, next to Sand.ai's official price.
T2V · I2V · Ref2V | 1080p | 4–30 s | Included | $0.08/s 1080p | $0.08/s | — |
Try it
Try the MAGI models
Switch models with the tabs. Runs on your balance at the price on the button; failed runs are refunded.
Capabilities
MAGI video capabilities
| Feature | MAGI-2 |
|---|---|
| Text to video | Yes |
| Image to video | Yes |
| Reference to video | Yes |
| Resolutions | 1080p |
| Clip length | 4–30 s |
| Audio | Included |
| Frames | First + last |
| Reference images | Up to 10 |
| Reference videos | Up to 5 |
| Reference audio | Up to 5 |
| Aspect ratios | 6 |
| Released | Nov 2026 |
Quick start
Call the MAGI API
One request shape for every MAGI model: POST /v1/run/{endpoint} with your key, then poll the generation or pass a webhook_url. Switching models means changing the endpoint.
| Model | Endpoint |
|---|---|
| MAGI-2 · Text to Video | sand-ai/magi-2/text-to-video |
| MAGI-2 · Image to Video | sand-ai/magi-2/image-to-video |
| MAGI-2 · Reference to Video | sand-ai/magi-2/reference-to-video |
MAGI-2 · Text to Video
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/sand-ai/magi-2/text-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "A paper boat drifts across a pond as rain taps against the surface.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);Go deeper
Pricing, cost and docs for each MAGI model
FAQ
MAGI API questions
MAGI is Sand.ai's family of AI video models. Through CheaperGen you call MAGI-2 with one API key: POST /v1/run/{endpoint}, then poll the generation or receive a webhook. What each version does: MAGI AI; the newest: MAGI Latest.
MAGI-2 starts at $0.08/s, so a 5-second clip costs $0.40. Pay as you go from prepaid credits; failed generations are refunded.
Create a CheaperGen account, add credits and create a key in Dashboard → API keys. The same key runs every MAGI model and the other 47 models in the catalog; you don't need a Sand.ai account. Step by step: MAGI-2 API key.
Yes. MAGI-2 is developed by Sand.ai; CheaperGen provides API access — the same model and output, at a lower price — and doesn't own it.
MAGI-2 generates synchronized audio at no extra cost. The highest resolution is 1080p (MAGI-2).
MAGI-2 is developed by Sand.ai; CheaperGen provides API access and does not own it. Trademarks belong to their respective owners.