Sand.ai MAGI-2 非同期動画生成モデル(1080p・ネイティブ音声・4–5 秒・最大 5 枚の参照画像対応・$0.08/sec)。
料金・コスト計算機
OpenDesign Go の実従量課金レート($0.08/sec)。
| 解像度 | 単価 | ルール |
|---|---|---|
| 1080p | $0.08 / sec | 4–5 秒・ネイティブ音声付き |
仕様・API パラメータ
| パラメータ | 種別 | 値 / 対応仕様 |
|---|---|---|
| model | string | magi-2 |
| prompt | string | 必須・動画内容のプロンプト |
| resolution / ratio | enum | 1080p · 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 |
| duration | integer | 4–5 秒(1 秒刻み、標準 5) |
| images | object[] | 1–5 枚のコミット済み画像アセット(reference / first_frame) |
| generate_audio | boolean | ネイティブ同期音声を常時生成(false 指定時は HTTP 400) |
ルーティング・信頼性・プライバシー
自動フェイルオーバー対応のマルチ経路ルーティング、固定公開単価、ゼロデータ保持(ZDR)。
非同期動画 API
Async Video Tasks API (/api/v1/media/videos/tasks) で magi-2 を呼び出します。
OpenDesign Go API キーを設定
export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: 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);レスポンス形式と標準 HTTP エラーコード
{
"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.
非同期動画パイプライン
MAGI-2 の実践レシピ:初フレームからの Image-to-Video と認証付き MP4 ダウンロード。
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.mp4モデル比較
よくある質問
MAGI-2(magi-2)は 1080p 動画の生成秒数課金($0.08/秒・1 タスク 4〜5 秒)で、ネイティブ同期音声が含まれます。ポーリングとダウンロードは無料です。
POST https://amr-api.open-design.ai/api/v1/media/videos/tasks(Idempotency-Key 付与)でタスクを投入し、GET .../tasks/{task_id} が succeeded になったら .../tasks/{task_id}/content から 1080p MP4 を取得します。
解像度は 1080p 固定(ネイティブ同期音声付き)、長さは 4〜5 秒(標準 5 秒)、比率は 16:9・4:3・1:1・3:4・9:16・21:9 の 6 種に対応しています。
images 配列で 1〜5 枚のコミット済み画像アセット(reference / first_frame)を指定できます。ネイティブ音声は常時生成され、generate_audio: false は HTTP 400 となります。
Pro および Max ワークスペースで利用可能です。OpenDesign Go はゼロデータ保持(ZDR)を徹底し、プロンプト・参照画像・生成動画を保存しません。
他のモデルを探す
モデル一覧を見るMAGI-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);