MAGI-2 API · Sand.ai MAGI-2 独立 API 平台

MAGI-2 API:Sand.ai 1080p 音视频生成接口

MAGI-2 API 是提供 Sand.ai MAGI-2 模型调用的独立 API 平台。单次可生成 4 到 30 秒 1080p 25fps 对白与音效视频,支持首尾帧与 20 个参考素材,按输出每秒 $0.088 计费。

输出规格

1080p 25fps

单次时长

4–30s

参考素材

10+5+5

统一单价

$0.088/s

00:00:30:00 · 16:9 ONE-TAKE@abulu8 · MAGI-2 实测样片30s · 1080p · $2.640
1080p 25fps 直出 · 传入参考图/视频/音频不加价 · 任务失败全额退还

实测创作者案例库

MAGI-2 API 真实成片与作者原词

精选 MAGI-2 真实可播成片与作者原版提示词,涵盖 30 秒穿越机一镜到底、公园双人对白、节拍换装广告和十镜机甲大战。

30.3s · 16:9 · 1080p · $2.640
动作@abulu8 的动作作品 · 30.3 秒 · 16:9

飞越恐龙时代

作者提示词原文 (4,404 chars)
One single CONTINUOUS FPV drone shot, no cuts, one unbroken take. EXTREME real-time speed, relentless. Only ever moves forward in time — never loops or reverses. NO slow motion except one half-second beat at the reveal, then an instant snap back to full velocity. THE CLIP DOES NOT END IN AN ESCAPE OR EXIT, and there is no fade or cut to black — the take simply runs continuously until time runs out, still inside the chaos. CINEMATIC CAPTURE: shot as real FPV drone footage on a cinema camera — ultra-wide FPV lens (12–16mm) with subtle barrel distortion at the frame edges, 180-degree shutter with natural heavy motion blur on fast pans, shallow organic depth of field close to the creatures, fine 35mm film grain, subtle chromatic aberration, real lens flares through the canopy gaps, mud flecks briefly contaminating the lens, humid haze softening the deep forest. Early golden-hour light — low sun shafting through the redwood canopy in broken beams. Cinematic color grade: rich jungle greens and warm earth tones, gold highlights only in the sun shafts, lifted blacks, documentary contrast — the texture of a BBC prehistoric-wildlife documentary shot from a racing drone, NOT a game engine, NOT animation. The flight launches already diving steeply from high above a fern-choked prehistoric canyon at full speed — no calm start — a flight of leathery pterosaurs wheeling far below over the canopy. It punches down through the canopy in a hard vertical breach, bursting through startled flocks of small darting birds that scatter off the branches, banking a full 90° to thread between redwood trunks at ground level, dragonflies flicking through the light shafts. The forest opens into a muddy floodplain where the <<<image_2>>> Thunder-Herd erupts alongside in full charge; the camera corkscrews low between their charging bodies, skimming mud, small scurrying creatures bolting from the herd's path into the ferns. Ahead, the tree line EXPLODES as <<<image_1>>> the Tyrannosaur bursts through at a hard lateral angle, jaws opening wide toward the lens — the single slow-motion beat, teeth and saliva frozen, the herd scattering, every bird in the canopy lifting off at once in a single panicked cloud. Keep <<<image_1>>> design locked through the motion. Then a HARD snap back to full speed: the jaws SNAP SHUT on one fleeing beast from <<<image_2>>>, and the camera commits fully to the kill — whipping into a tight orbiting arc around <<<image_1>>> at point-blank range as it wrenches and thrashes its catch, mud and dust flung with every violent movement. The camera dives beneath the swinging it, arcs up and over the massive head as it rips into the carcass — pterosaurs already circling high above the kill — swoops in close on the jaws tearing and gulping, pulls back for one wide orbit showing the rest of <<<image_2>>> still stampeding past in panic on both sides, then plunges back in tight as <<<image_1>>> lifts its bloodied head and lets out a thunderous roar RIGHT AT the lens, the camera holding close and defiant in the swirling dust and debris, still shaking and whipping around the violence as the take runs out. Sound: a layered wall of primal chaos over a living jungle bed — insect drone, layered birdsong, distant hoots — wind roaring and pitching with every dive, thundering stampede hooves, deep guttural roars building — the birdsong CUTTING to dead silence the instant before the tree line explodes — near-silence for one held breath at the reveal — then a massive concussive ROAR and bone-crunching SNAP as the jaws close, the entire canopy erupting in shrieking, scattering wingbeats, and from there SUSTAINED, ESCALATING violence: wet tearing and crunching, guttural feeding growls, panicked herd bellows, pterosaur screeches circling above, building to one final earth-shaking ROAR right as the clip ends. No wind-down. Global style lock: cinematic photoreal FPV documentary footage, consistent creature design from the references maintained through all motion; real cinema-camera texture with film grain, lens distortion, motion blur and lens contamination, golden jungle grade; constantly shifting altitude and plane, the camera staying locked inside the kill's violence for the entire back half with no escape beat and no fade or cut to black; consistently extraordinary render quality, no distortion artifacts, no subtitles, no watermarks. Aspect ratio 16:9.
去在线试用

把画面、声音与 1080p 细节整合进同一套流程

MAGI-2 由 Sand.ai 研发,总参数 480B(单次推理激活约 28B),从第一帧起就让口型、脚步碰撞声和画面构图在同一条推理链路里对齐。

MoE 总量 / 激活480B / 28B (5.8%)
预训练数据4T Tokens (~1B)
固定成片规格1080p · 25fps
AA-Video-I2V#1 (1163 +/- 14 Elo)

画面和声音一起生成

生成画面的同时直接合成人声对白、动作音效、环境声和配乐,人物口型和脚步、关门声贴合画面节奏,无需生成后二次配音。需要纯无声画面时将 generate_audio 设为 false 即可。

一次生成 4 到 30 秒的 1080p 视频

固定输出 1080p、25 fps 视频,可在 4 到 30 秒之间按整秒指定时长。把开场、动作和收尾放进同一次请求里,避免拼接多段 5 秒短片时常出现的亮度跳变与音频断层。

放大到 1080p 时再次核对参考图

先生成基础动态视频,随后在二阶段放大到 1080p 时再次读取你传入的原始参考图,让主角五官、衣物纹理和商品包装文字即使到第 20 秒以后也清晰稳固。

一次最多传 20 个参考素材

单次请求可同时传入 10 张参考图、5 段参考视频和 5 段参考音频。图片用来锁住人物长相、服装和场景;reference_videos 用来引导动作和运镜节奏;reference_audios 用来贴合人声音色和音乐节拍。

锁住开头与结尾关键帧

传入 1 张图即可从静帧直接延展出运动与声效;按顺序传入 2 张图则能分别定死开场与收尾画面,由 MAGI-2 自动生成中间连续的推镜位移与光影过渡。

所有模式统一计费,失败全额退还

不论纯文生视频、首尾帧还是带满 20 个参考素材、是否开启声音,统一只按生成视频 $0.088/秒计费(4 秒 $0.352、8 秒 $0.704、30 秒 $2.640)。传入参考素材不加价,异常失败任务全额自动退款。

MAGI-2 API 的四种输入方式

每次向 POST /v1/videos/tasks 发起请求时从以下四种方式中选一种。首尾帧 images 与多模态 reference_* 不能在同一次请求里混用。

只用文字生成

纯文本描述

写明主体、光线、运镜以及对白与音效提示(最多 5,000 字),在 4 到 30 的整数秒和六种比例中任选组合,不传任何媒体链接。

常见场景
双人对白短剧、一镜到底长镜头、多时段定时分镜与日系动画短片。

用一张首帧图起镜

首帧起势

传入 1 张公开 HTTPS 图片作为视频第一帧,视频会自动沿用这张图的宽高比,无须再填画幅比例。

常见场景
电商商品棚拍图动态化、品牌海报动画化以及锁死开场构图的镜头。

用首尾两张图定开头和结尾

起止关键帧

按顺序传入两张公开 HTTPS 图片分别定死第一帧和最后一帧,让 MAGI-2 顺滑补全中间的镜头运动与环境转场。

常见场景
日夜光影交替、人物穿搭切换、空间推进转场与产品形态展开。

用图片、视频和音频做参考

最多 20 项参考 · 参考素材 $0 收费

单次可组合最多 10 张参考图、5 段参考视频(每段 2–30 秒)和 5 段参考音频,在提示词里写清每个素材承担的角色。注意 reference_videos 用于提供动作与运镜参考,不用于直接局部修改原视频。

固定外观 (@image1..10)
锁定人物五官、服装、商品细节与场景风格,跨镜头不走样。
参考运镜 (@video1..5)
借鉴样片的镜头移动轨迹、动作节奏或人物肢体走位。
参考音色 (@audio1..5)
延续指定配音音色、说话语速与背景音乐节拍氛围。
需要完整的接口字段说明、轮询状态与重试策略?查看完整接口文档
Character and multi-scene reference inputs for MAGI-2 omni-reference
官方实测示例使用多张人物参考图与三组花海场景图共同锁定外观。
179 / 5000

纯文字描述多个镜头切换时,建议写成 Shot 1 (0-5s) 与 Shot 2 (5-10s) 分段结构,切换节奏更稳定。

5s

输出分辨率

1080p · 25 fps

开启同步音频
校验通过
预计费用$0.440(440)
POST /v1/videos/tasks
{
  "model": "magi-2",
  "prompt": "Slow dolly shot through a rain-lit glasshouse at dusk. Water droplets run down steel frames as warm sodium streetlamps reflect in puddles. Soft rain ambience and distant city hum.",
  "duration": 5,
  "resolution": "1080p",
  "generate_audio": true,
  "aspect_ratio": "16:9"
}

研发厂商与模型谱系

出自 Sand.ai 的三代视频模型演进

Sand.ai 由 Swin Transformer 共同作者曹越于 2024 年 1 月在北京创立。公司从初代分块预测 MAGI-1 迭代至 114B MAGI-2 Preview,并在 2026 年 11 月推出面向 MAGI-2 API 的 480B 旗舰版本。

2025 年24B / 4.5B

MAGI-1

Sand.ai 用因果分块预测验证了可续写视频结构,主要解决长时序连贯预测问题。

核心架构分块自回归扩散 Transformer
开源状态已开源(Apache 2.0)
AA v2.1初代视频续写底座
2026 年 8 月114B total / ~6B active

MAGI-2 Preview

研究预览版验证了文本、音频与视频 token 在单流稀疏 MoE 中的缩放规律。

核心架构单流 Multi-Head Latent MoE
开源状态已公开权重(Apache 2.0)
AA v2.1综合均值 998.5 Elo
2026 年 11 月 24 日480B total / ~28B active

MAGI-2

参数规模扩大逾 4 倍,原生输出 30 秒 1080p 音画视频与 20 项参考控制,升至 AA I2V 第 1。

核心架构Multi-Head Latent MoE + Head Parallel(4T 语料)
开源状态旗舰接口已上线(官方计划开源)
AA v2.1综合均值 1150.3 Elo(+151.8)

公开盲测成绩与五家厂商对比

切换查看 Artificial Analysis v2.1 四条赛道成绩、Higgsfield 六模型正面对阵胜率,以及 Sand.ai、字节跳动、快手、阿里巴巴与 MiniMax 同档 1080p 规格价格。

评测赛道名次Elo 分数同业对照
图生视频(含原生音频)第 1 名1163 +/- 14 Elo领先 Seedance 2.5(1158)与 MiniMax H3 768p(1135 +/- 13)
图生视频(纯画面无声)第 1 名1153 Elo领先 MiniMax H3 纯画面图生视频(1108)
文生视频(纯画面无声)第 2 名1144 Elo领先 MiniMax H3 纯画面文生视频(1126)
文生视频(含原生音频)第 7 名1150 +/- 13 Elo落后于 Wan 3.0(1175)、Utopai X(1173)与 MiniMax H3(1164 +/- 12)
四项赛道综合均值较预览版 +151.8 分1150.3 Elo相比 MAGI-2 Preview 的 998.5 综合分大幅跃升

2026 年 11 月 26 日榜单快照显示,MAGI-2 在图生视频有声与无声双榜均列第 1,而纯文生视频有声赛道由 Wan 3.0(第 1)和 MiniMax H3(第 3)领先。

Artificial Analysis v2.1

按输出秒数透明计费($0.088 / 秒)

MAGI-2 API 仅按生成的 1080p 成片秒数计费($0.088/秒),上传参考图、参考视频与参考音频均不加价。

$0.088/ second · 1080p
预付额度档位
$1010,000 credits
  • 可生成约 113 秒 1080p 成片
  • 约合 22 条 5 秒标准短视频
  • 任务执行失败 100% 自动退还积分
预付额度档位推荐配置
$2525,000 credits
  • 可生成约 284 秒 1080p 成片
  • 约合 56 条 5 秒标准短视频
  • 任务执行失败 100% 自动退还积分
预付额度档位
$5050,000 credits
  • 可生成约 568 秒 1080p 成片
  • 约合 113 条 5 秒标准短视频
  • 任务执行失败 100% 自动退还积分
预付额度档位
$100100,000 credits
  • 可生成约 1136 秒 1080p 成片
  • 约合 227 条 5 秒标准短视频
  • 任务执行失败 100% 自动退还积分
生成时长视频规格原生音轨积分耗量(1000=$1)输出总价(USD)
4s1080p · 25 fps原生免费包含352$0.352
5s1080p · 25 fps原生免费包含440$0.440
8s1080p · 25 fps原生免费包含704$0.704
10s1080p · 25 fps原生免费包含880$0.880
15s1080p · 25 fps原生免费包含1,320$1.320
30s1080p · 25 fps原生免费包含2,640$2.640

开发者常见问题

讲清楚 MAGI-2 模型能力、MAGI-2 API 平台定位、HTTP 422 参数规则与按秒计费方式。

开始接入

在 MAGI-2 API 创建密钥,发出第一条视频请求

登录 MAGI-2 API 控制台即可创建 API Key、查看余额明细,并在在线试用里直接验证请求参数。