Sand.ai: MAGI-2
Video NewSand.ai MAGI-2 1080p video generation with native synchronized audio, text-to-video, and up to 5 reference images ($0.08/sec).
Pricing & Cost Calculator
Published per-unit pricing on OpenDesign Go ($0.08/sec).
| Resolution | Rate | Rule |
|---|---|---|
| 1080p | $0.08 / sec | 4–5s · Native synced audio |
Specs & Parameters
| Parameter | Type | Value / Support |
|---|---|---|
| model | string | magi-2 |
| prompt | string | Required text prompt describing the video |
| resolution / ratio | enum | 1080p · 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 |
| duration | integer | 4–5s in 1s increments (default 5) |
| images | object[] | 1–5 committed image assets (role: reference / first_frame) |
| generate_audio | boolean | Always enabled; setting false returns HTTP 400 |
Routing, Reliability & Privacy
Managed upstream routing with automatic failover, locked public pricing, and zero data retention.
Async API
Call magi-2 using Async Video Tasks API (/api/v1/media/videos/tasks).
Set your OpenDesign Go API key
export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: https://amr-api.open-design.ai
Make your first request
# Step 1: Create async 1080p MAGI-2 task with native audio
curl -fsS -X POST "https://amr-api.open-design.ai/api/v1/media/videos/tasks" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
--data '{
"model": "magi-2",
"prompt": "Softly shifting geometric color blocks in warm studio light",
"resolution": "1080p",
"duration": 5,
"ratio": "16:9"
}'
# Step 2: Poll task status & download 1080p MP4
curl -fsS -H "Authorization: Bearer $COROUTER_API_KEY" "https://amr-api.open-design.ai/api/v1/media/videos/tasks/$TASK_ID"
curl -fsSL -H "Authorization: Bearer $COROUTER_API_KEY" "https://amr-api.open-design.ai/api/v1/media/videos/tasks/$TASK_ID/content" -o magi2.mp4import os, time, uuid, requests
BASE = "https://amr-api.open-design.ai/api/v1/media/videos/tasks"
HEADERS = {"Authorization": f"Bearer {os.environ['COROUTER_API_KEY']}"}
job = requests.post(
BASE,
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "magi-2",
"prompt": "Softly shifting geometric color blocks in warm studio light",
"resolution": "1080p",
"duration": 5,
"ratio": "16:9",
},
).json()
while True:
status = requests.get(f"{BASE}/{job['task_id']}", headers=HEADERS).json()
if status["status"] in ("succeeded", "failed", "cancelled"):
print(status)
break
time.sleep(5)const BASE = "https://amr-api.open-design.ai/api/v1/media/videos/tasks";
const headers = {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.COROUTER_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
};
const createRes = await fetch(BASE, {
method: "POST",
headers,
body: JSON.stringify({
model: "magi-2",
prompt: "Softly shifting geometric color blocks in warm studio light",
resolution: "1080p",
duration: 5,
ratio: "16:9",
}),
});
const { task_id } = await createRes.json();
const poll = await fetch(`${BASE}/${task_id}`, { headers: { Authorization: headers.Authorization } }).then((r) => r.json());
console.log(poll);Inspect response payload & HTTP errors
{
"task_id": "vid_20261127_magi2_91a4",
"model": "magi-2",
"status": "succeeded",
"resolution": "1080p",
"duration": 5,
"ratio": "16:9",
"content_url": "https://amr-api.open-design.ai/api/v1/media/videos/tasks/vid_20261127_magi2_91a4/content"
}
HTTP 401 Unauthorized Invalid or missing Bearer COROUTER_API_KEY.
HTTP 403 Forbidden Workspace key lacks permission for this model or endpoint.
HTTP 404 Not Found Unknown model ID or unavailable endpoint path.
HTTP 429 Too Many Requests Workspace rate limit, concurrency cap, or credit limit reached.
HTTP 502 Bad Gateway Upstream provider returned an error after automatic failover.
HTTP 503 Service Unavailable Upstream provider temporarily unavailable; retry with backoff.
Async Video Pipeline Workflows
End-to-end patterns for MAGI-2: image-to-video first frame and authenticated MP4 download.
curl -fsS -X POST "https://amr-api.open-design.ai/api/v1/media/videos/tasks" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
--data '{
"model": "magi-2",
"prompt": "Slowly pan across the scene as mist drifts through",
"images": [{ "asset_id": "ASSET_ID", "role": "reference" }],
"resolution": "1080p",
"duration": 5,
"ratio": "16:9"
}'curl -fsSL \
-H "Authorization: Bearer $COROUTER_API_KEY" \
"https://amr-api.open-design.ai/api/v1/media/videos/tasks/$TASK_ID/content" \
-o magi2_video.mp4Compare Models
Frequently Asked Questions
MAGI-2 (magi-2) is billed per generated second at 1080p ($0.08/sec) for 4–5s tasks with native synchronized audio included. Polling and content downloads incur no extra charge.
Submit a task with Idempotency-Key to POST https://amr-api.open-design.ai/api/v1/media/videos/tasks, poll GET .../tasks/{task_id} until status is succeeded, then download the 1080p MP4 from .../tasks/{task_id}/content.
MAGI-2 outputs 1080p video with native synchronized audio in 4–5s clips (default 5s) across 6 aspect ratios: 16:9, 4:3, 1:1, 3:4, 9:16, and 21:9.
Yes for image-to-video: pass 1–5 committed image assets via images (role: reference or first_frame). Native audio is always generated; setting generate_audio: false returns HTTP 400.
MAGI-2 is available on Pro and Max workspaces. OpenDesign Go enforces Zero Data Retention and never stores prompts, reference images, or rendered video files.
Explore more models
Full directoryMAGI-2 API
https://amr-api.open-design.ai
# Step 1: Create async 1080p MAGI-2 task with native audio
curl -fsS -X POST "https://amr-api.open-design.ai/api/v1/media/videos/tasks" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
--data '{
"model": "magi-2",
"prompt": "Softly shifting geometric color blocks in warm studio light",
"resolution": "1080p",
"duration": 5,
"ratio": "16:9"
}'
# Step 2: Poll task status & download 1080p MP4
curl -fsS -H "Authorization: Bearer $COROUTER_API_KEY" "https://amr-api.open-design.ai/api/v1/media/videos/tasks/$TASK_ID"
curl -fsSL -H "Authorization: Bearer $COROUTER_API_KEY" "https://amr-api.open-design.ai/api/v1/media/videos/tasks/$TASK_ID/content" -o magi2.mp4import os, time, uuid, requests
BASE = "https://amr-api.open-design.ai/api/v1/media/videos/tasks"
HEADERS = {"Authorization": f"Bearer {os.environ['COROUTER_API_KEY']}"}
job = requests.post(
BASE,
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "magi-2",
"prompt": "Softly shifting geometric color blocks in warm studio light",
"resolution": "1080p",
"duration": 5,
"ratio": "16:9",
},
).json()
while True:
status = requests.get(f"{BASE}/{job['task_id']}", headers=HEADERS).json()
if status["status"] in ("succeeded", "failed", "cancelled"):
print(status)
break
time.sleep(5)const BASE = "https://amr-api.open-design.ai/api/v1/media/videos/tasks";
const headers = {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.COROUTER_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
};
const createRes = await fetch(BASE, {
method: "POST",
headers,
body: JSON.stringify({
model: "magi-2",
prompt: "Softly shifting geometric color blocks in warm studio light",
resolution: "1080p",
duration: 5,
ratio: "16:9",
}),
});
const { task_id } = await createRes.json();
const poll = await fetch(`${BASE}/${task_id}`, { headers: { Authorization: headers.Authorization } }).then((r) => r.json());
console.log(poll);