S Sand.ai视频
MAGI-2 Text to Video API
由 Sand.ai 提供 Text to Video 与 MAGI-2。Generate up to 30 seconds of video with synchronized sound。
试用 MAGI-2 Text to Video
0/15000
Output frame shape.
The 1080p tier. Pixel dimensions depend on the output aspect ratio.
5s
Length of the generated clip in seconds (4–30s). You pay per second.
Generate synchronized sound, ambience and dialogue. No extra cost.
预计费用…
使用 Google 或电子邮箱免费创建账户,只为你生成的内容付费。
你的 视频 会显示在这里
输入提示词,选择设置,然后点击“运行”。仅成功生成的结果会收费。
MAGI-2 Text to Video API
POST
/api/v1/run/sand-ai/magi-2/text-to-video提交异步任务并返回 202 和生成任务 ID。请轮询 GET /api/v1/generations/{id} 或传入 webhook_url。参见 任务生命周期。
输入参数
| 名称 | 类型 | 说明 | 影响价格 |
|---|---|---|---|
prompt必填 | string | Describe the shot: subject, action, camera movement, lighting and style. | 否 |
aspect_ratio | string (enum) | Output frame shape. 可选值:16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9 默认值:16:9 | 否 |
resolution | string (enum) | The 1080p tier. Pixel dimensions depend on the output aspect ratio. 可选值:1080p 默认值:1080p | 否 |
duration | integer | Length of the generated clip in seconds (4–30s). You pay per second. 范围:4–30s 默认值:5 | 是 |
generate_audio | boolean | Generate synchronized sound, ambience and dialogue. No extra cost. 默认值:true | 否 |
webhook_url | string (URL) | 可选。生成完成后,我们会在此地址 POST 结果,并使用你的 Webhook 密钥进行签名。Webhooks | 否 |
请求
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);响应
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "sand-ai/magi-2",
"endpoint": "sand-ai/magi-2/text-to-video",
"mode": "text-to-video",
"status": "queued",
"input": {
"prompt": "A paper boat drifts across a pond as rain taps against the surface.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"list_price_source": "official",
"list_price_label": "Official",
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}MAGI-2 定价
按 视频按秒计费 按量付费,无需订阅 (月度套餐 为可选项)。生成失败会自动退款。
| 档位 | 官方价格 | CheaperGen | 可节省 |
|---|---|---|---|
1080p | $0.08/s | $0.08/s | — |
- 官方价格:Sand.ai API list price (platform.sand.ai/docs/model-pricing): $0.08 per second at 1080p.。价格核实于 2026年11月25日。
- All three modes cost $0.08 per requested second. Audio and reference inputs are included.
相似的 视频 模型
热门 text-to-video 模型 来自其他开发者。

ByteDance
新增最高 −11%
Seedance2.5
文生视频 · 图生视频 · 参考素材生成视频 · Video Edit
起价$0.092/s官方价格 $0.103
ByteDance 最新视频模型——时长更长、画面更清晰、控制更精准

MiniMax
最高 −29%
MiniMaxH3
文生视频 · 图生视频 · 参考素材生成视频
起价$0.057/s官方价格 $0.08
海螺 H3——动作表现力和物理效果出色,最高 2K

ByteDance
快速版最高 −26%
Seedance2.0 Fast
文生视频 · 图生视频 · 参考素材生成视频
起价$0.051/s官方价格 $0.056
更低延迟、更低成本的 Seedance 2.0 品质

MiniMax
加速版最高 −41%
MiniMaxH3 Fast
文生视频 · 图生视频 · 参考素材生成视频
起价$0.024/sMiniMax 官方 H3 Highspeed API $0.04与 MiniMax 官方 H3 Highspeed API 对比
几秒生成 MiniMax H3——开放权重的推理加速版本