MAGI-2 API

1080p 带原生声音视频生成,支持文本、首尾帧与多模态参考(4–30 秒)

生成 4–30 秒的 1080p 高清视频并默认同步生成声音。显式选择文生视频(text_to_video)、首尾帧图生视频(image_to_video)或多模态参考生视频(reference_to_video,最多 10 图 / 5 视频 / 5 音频)。

1080p 默认带声音4–30 秒整数时长6 种显式画幅比例文生 / 图生 / 参考生三种模式
输入
分辨率
1080p
30s
画面比例
数量
Playground 始终审核提示词和输入图片。通过 API 调用时,可将 nsfw_check 设为 false 来关闭审核。
输出创作者示例
下载 MP4
0:00 / 0:00
/ 核心功能

MAGI-2 API 核心功能

全模式 1080p 输出

所有模式统一输出 1080p 分辨率,采用单一透明费率 16 积分/秒($0.080/秒)。

默认同步生成声音且不加价

generate_audio 默认为 true,同步生成环境音、音效或人声,开启与关闭价格一致。

4–30 秒长镜头自由定长

支持 4 到 30 之间的任意整数秒(默认 5 秒),计费秒数即请求时长,无隐藏阶梯。

三种显式模式严格校验

通过 input.mode 明确选择 text_to_video、image_to_video 或 reference_to_video,跨模式误传字段即时报错。

首帧与可选尾帧关键帧控制

在 image_to_video 模式下通过 first_frame_url 锚定开场画面,并可搭配 last_frame_url 控制收尾构图。

多模态全参考输入

在 reference_to_video 模式下最多组合 10 张图、5 段视频(单段 2–30 秒,合计 ≤30 秒)与 5 段音频(合计 ≤30 秒),用 @Image1/@Video1/@Audio1 指代。

6 种明确画幅比例

支持 21:9、16:9(默认)、4:3、1:1、3:4 与 9:16,覆盖宽银幕、横屏视频与竖屏短视频。

签名回调的异步接口

提交后可通过签名 Webhook 回调或后台查询获取结果,关闭浏览器不会中断已提交任务。

/ 应用场景

MAGI-2 API 应用场景

电影感宽屏长镜头叙事

以 21:9 或 16:9 输出最长 30 秒的 1080p 叙事片段,自带连续运镜与同步环境音。

带声音的竖屏短视频广告

使用 9:16 画幅与英文提示词直接生成 1080p 带声音的竖屏广告概念片与社媒素材。

首尾帧分镜丝滑转场

在 image_to_video 模式传入首帧与尾帧图片,在两张设定图之间生成自然过渡镜头。

产品静物图动态化

把一张棚拍商品主图转化为 1080p 动态展示镜头,并同步生成细腻拟音。

多图参考角色场景

在 reference_to_video 模式上传多张角色与场景参考图,通过 @Image1、@Image2… 在提示词中编排镜头,并结合实测核对跨镜头一致性。

参考视频与音轨驱动节奏

结合参考视频片段与参考音频控制镜头运动节奏、节拍与氛围声场。

概念预告片与提案样片

无需拼接多个短片段,单次直接生成 15–30 秒 1080p 完整概念演示镜头。

后端批量异步渲染管线

通过 callback_url 将渲染任务接入自动化工作流,完成后自动入库与分发。

/ 示例

MAGI-2 API 示例

浏览 8 个经授权展示的示例视频,上方工作台默认预填 30 秒竖屏创作者广告示例。剪辑混剪、截断提示词节选与反推提示词均已明确标注。

阳光街景与多风格首发混剪
剪辑混剪

阳光街景与多风格首发混剪

首发剪辑混剪(非单次 4–30 秒生成)· 根据画面反推的开场片段提示词

In a lively sunlit street, a young adult with short orange hair and a small monkey on their shoulder turns toward the camera, then hurries past market stalls. Use cinematic close-ups and a following camera, with natural street ambience. This reconstructs an opening segment of the longer narrative montage.

306 字
跑鞋 UGC 口播广告
文生视频30s · 9:16

跑鞋 UGC 口播广告

公开原提示词(提示词写明 30 秒、9:16 与配音;原 API 模式及参考素材未确认)

Create a polished, highly realistic 30-second UGC-style advertisement for ASICS Gel Nimbus running shoes. A young, attractive woman named Maya is the presenter. She should look and sound like a real lifestyle content creator recording a genuine product recommendation, not a professional actress reading a script. Scene 1: Doorway hook (0–6 sec) Maya stands at her apartment doorway, holding her ASICS Gel Nimbus shoes. She looks directly into the camera with an excited but natural expression. Dialogue: “Okay, I think I just found my new favourite running shoes. Look at these!” She brings the teal ASICS Gel Nimbus close to the camera, showing the design. Scene 2: First impressions (6–14 sec) Cut to Maya sitting down and putting on the shoes. Show close-up shots of the teal upper, cushioning, ASICS logo, and sole. Dialogue: “These are the ASICS Gel Nimbus, and first of all, they’re so comfortable. I love how they feel on my feet.” Scene 3: Lifestyle montage (14–23 sec) Maya walks out onto the sidewalk, followed by shots of her jogging through a beautiful green park. Capture natural movement, shoe close-ups, and a few candid moments. Voiceover: “They feel soft, supportive, and honestly, I love how they look too. Perfect for my everyday walks and running sessions.” Scene 4: Final recommendation (23–30 sec) Maya stops on a park pathway, looks into the camera, and smiles. Dialogue: “If you’re looking for a pair that feels as good as it looks, definitely check these out.” End with a premium close-up hero shot of the teal ASICS Gel Nimbus and the ASICS logo. Production requirements: Natural female voice with conversational delivery. Accurate lip synchronization. Authentic UGC filming style mixed with premium commercial shots. Consistent Maya appearance and identical shoes throughout. Teal ASICS Gel Nimbus prominently visible. Realistic outdoor lighting and natural skin textures. Soft upbeat background music mixed below the dialogue. Natural ambient sounds during the outdoor montage. No robotic voice, exaggerated expressions, or artificial-looking movements. Vertical 9:16 format, 30 seconds. Finished ad direction: A genuine creator-style product recommendation with a strong opening hook, natural praise, lifestyle footage, and a clear product reveal.

2299 字
品牌与电商综合能力混剪
剪辑混剪

品牌与电商综合能力混剪

品牌宣传混剪(非单次 4–30 秒生成)· 根据画面反推的单段提示词

A young adult skateboarder wearing a light jacket and dark trousers glides through a spacious modern concrete concourse. Track alongside the skateboard at low height, with soft daylight through the glass roof and natural wheel sounds. A smooth continuous shot. This reconstructs the skateboard segment of the promotional montage.

329 字
风格化 3D 动画叙事短片
多镜头剪辑

风格化 3D 动画叙事短片

多镜头剪辑短片(非单次 4–30 秒生成)· 根据画面反推的单段提示词

Stylized 3D animated short scene in warm daylight. On a city sidewalk, a caring rescuer kneels beside an injured pedestrian while passersby pause nearby, then cut to an expressive close-up of a woman with round glasses speaking gently in a bright classroom. Smooth cinematic camera pans, rich Pixar-inspired lighting, and soft ambient city and room audio. This reconstructs a segment of the multi-shot animated short.

417 字
多参考图定时切镜排练室
参考生视频12s · 4:3

多参考图定时切镜排练室

画面公开的截断提示词节选(后半段未公开)· 需替换为 @Image1… 并自备参考图片

SHOT — waiting room / <<<image_1>>> with <<<image_7>>> <<<image_2>>> <<<image_6>>> <<<image_3>>> <<<image_5>>> <<<image_4>>> Style: ARRI large-format cinematic, 8K, razor-sharp, high dynamic range, true-to-life colour with real film density, faint organic film grain. Precise, restrained, nothing accidental. Strictly photoreal, no CGI feel. TIMING (mandatory, absolute — total length 12 seconds): 0.0–3.0s — PHASE 1, the wide high-corner shot. 3 seconds, locked off. 3.0–8.0s — PHASE 2, medium close-up of <<<image_7>>>. 5 seconds, the longest hold in the film, locked off. 8.0–10.0s — PHASE 3, medium close-up of <<<image_2>>>. 2 seconds, locked off. 10.0–12.0s — PHASE 4, medium close-up of <<<image_6>>>. 2 seconds, locked off, holding to the last frame. The three transitions happen INSTANTLY at 3.0s, 8.0s and 10.0s, each lasting only a handful of frames and taken out of the incoming shot's...

900 字
三图参考蓝光舞台表演
参考生视频

三图参考蓝光舞台表演

含参考图版式的展示视频 · 根据画面反推的提示词,需自备参考图片

Combine the full-length black gown costume from @Image1, the performer's face from @Image2, and the stark backlit corridor stage from @Image3 into a moody theatrical performance bathed in deep cobalt-blue light. Alternate between a dramatic silhouetted wide shot down the illuminated runway, an intimate close-up with atmospheric haze, and a low tracking shot following the sweeping hem across tiled floors, accompanied by brooding cinematic sound. This reconstructs the generated performance, not the input-reference header layout.

532 字
东京夜间街头赛车与漂移
文生视频

东京夜间街头赛车与漂移

根据画面反推的提示词 · 原提示词与 API 参数未公开

Stylized 3D animated Tokyo night street race. Start inside the cabin of a retro orange sports car where a cool driver in dark sunglasses exchanges banter with a young passenger in a white hoodie as neon highway lights streak past the windows. Cut to an aerial tracking shot of the orange car weaving through highway traffic alongside a black rival with purple underglow, then swing low around a wide asphalt overlook as both cars execute a smoky 360-degree drift against the glowing Tokyo skyline. Energetic engine revs, tire screech, and dialogue audio.

554 字
夜间工业街区双人街舞
文生视频30s · 16:9

夜间工业街区双人街舞

根据画面反推的提示词(公开规格 30 秒、16:9;完整原提示词未公开)

Wide locked-off and subtle push-in shot down the center of an empty nighttime industrial city street lit by cool overhead streetlights. Two young women perform a hip-hop street dance duet in contrasting outfits—one in an all-black jacket and cargo trousers, the other in a light blue cropped zip hoodie and cream wide-leg pants—building from alternating call-and-response grooves into tightly synchronized choreography, with crisp rhythmic dance music and subtle outdoor acoustics.

481 字

MAGI-2 API · 价格

文生、首尾帧图生与多模态参考生视频共用统一的 1080p 每秒费率;同步声音、画幅比例与参考素材均不额外加价。

+10%
充值满 $1,500,额外赠送 10%积分.
查看充值档位
版本 / 档位输出分辨率标准价WaveSpeedfal
全部模式(文生 / 图生 / 参考)1080p折合 ≈ $0.073 / 秒常规 $0.080 / 秒16.0 积分 / 秒US$0.08 / 秒贵 10%-
/ API 接入

接入 MAGI-2 API

请求随表单同步。网站使用登录会话;API调用使用你的API Key。完整参数、任务创建与查询流程见文档。

  1. 选择输入

    选择生成模式、填写提示词,并按需添加首尾帧或参考素材。

  2. 核对请求

    提交前确认时长(4–30 秒)、画幅比例、音频开关及可选的 callback_url。

  3. 查看结果

    通过 callback_url 接收签名回调,或用任务 ID 查询视频链接。

参数
说明
modelmagi-2
input按所选模式严格校验的 1080p 视频输入对象。
input.mode生成模式:text_to_video、image_to_video 或 reference_to_video。
input.prompt必填场景描述(1–8,000 字符,建议使用英文)。
input.resolution输出分辨率,固定为 1080p。
input.aspect_ratio输出画幅比例:21:9、16:9(默认)、4:3、1:1、3:4 或 9:16。
input.duration输出时长,4–30 的整数秒(默认 5 秒)。
input.generate_audio是否同步生成声音(默认 true,不额外加价)。
input.reference_image_urlsreference_to_video 可选参考图片数组,最多 10 张。
{
  "model": "magi-2",
  "input": {
    "nsfw_check": true,
    "output_count": 1,
    "prompt": "Create a polished, highly realistic 30-second UGC-style advertisement for ASICS Gel Nimbus running shoes.\n\nA young, attractive woman named Maya is the presenter. She should look and sound like a real lifestyle content creator recording a genuine product recommendation, not a professional actress reading a script.\n\nScene 1: Doorway hook (0–6 sec)\n\nMaya stands at her apartment doorway, holding her ASICS Gel Nimbus shoes. She looks directly into the camera with an excited but natural expression.\n\nDialogue:\n\n“Okay, I think I just found my new favourite running shoes. Look at these!”\n\nShe brings the teal ASICS Gel Nimbus close to the camera, showing the design.\n\nScene 2: First impressions (6–14 sec)\n\nCut to Maya sitting down and putting on the shoes. Show close-up shots of the teal upper, cushioning, ASICS logo, and sole.\n\nDialogue:\n\n“These are the ASICS Gel Nimbus, and first of all, they’re so comfortable. I love how they feel on my feet.”\n\nScene 3: Lifestyle montage (14–23 sec)\n\nMaya walks out onto the sidewalk, followed by shots of her jogging through a beautiful green park. Capture natural movement, shoe close-ups, and a few candid moments.\n\nVoiceover:\n\n“They feel soft, supportive, and honestly, I love how they look too. Perfect for my everyday walks and running sessions.”\n\nScene 4: Final recommendation (23–30 sec)\n\nMaya stops on a park pathway, looks into the camera, and smiles.\n\nDialogue:\n\n“If you’re looking for a pair that feels as good as it looks, definitely check these out.”\n\nEnd with a premium close-up hero shot of the teal ASICS Gel Nimbus and the ASICS logo.\n\nProduction requirements:\n\nNatural female voice with conversational delivery.\nAccurate lip synchronization.\nAuthentic UGC filming style mixed with premium commercial shots.\nConsistent Maya appearance and identical shoes throughout.\nTeal ASICS Gel Nimbus prominently visible.\nRealistic outdoor lighting and natural skin textures.\nSoft upbeat background music mixed below the dialogue.\nNatural ambient sounds during the outdoor montage.\nNo robotic voice, exaggerated expressions, or artificial-looking movements.\nVertical 9:16 format, 30 seconds.\n\nFinished ad direction: A genuine creator-style product recommendation with a strong opening hook, natural praise, lifestyle footage, and a clear product reveal.",
    "resolution": "1080p",
    "aspect_ratio": "9:16",
    "duration": 30,
    "generate_audio": true,
    "mode": "text_to_video"
  }
}
/ 对比

Genjutsu 与 MAGI-2 API 对比

使用同一个 API Key 调用视频到视频编辑(Genjutsu 1.0 / 1.0 Lite)与 1080p 带声音视频生成(MAGI-2)。

模型核心能力与适用场景分辨率时长 / 计费口径起价
Genjutsu 1.0 / Lite API基于源视频和参考图片完成动作迁移(1.0)与物体替换(1.0 与 1.0 Lite),支持 480p–1080p。1.0: 480p / 720p / 1080p · Lite: 720p / 1080p源视频 ≤30 秒(物体替换 4–30 秒)23.4 积分 ($0.117) / 秒
MAGI-2 API当前页面文生、首尾帧图生与多模态参考生视频,固定 1080p 带原生声音,支持 4–30 秒。1080p4–30 秒整数 · 默认带声音16.0 积分 ($0.080) / 秒
/ 常见问题

MAGI-2 API 常见问题

了解计费、生成结果与 API 接入。没找到答案?

MAGI-2 支持哪几种生成模式?

必须在 input.mode 中显式指定:text_to_video(仅提示词,不可传素材)、image_to_video(必填 first_frame_url,可选 last_frame_url)或 reference_to_video(图片、视频、音频至少一项)。

reference_to_video 模式的素材上限是多少?

最多 10 张参考图片(reference_image_urls)、最多 5 段参考视频(reference_video_urls,单段 2–30 秒且合计 ≤30 秒)、最多 5 段参考音频(reference_audio_urls,合计 ≤30 秒),三者至少提供一项。

提示词有什么长度限制和写作建议?

prompt 为必填项,最长 8,000 字符,建议使用英文以获得更稳定的遵循效果;在参考模式下可用 @Image1、@Video1、@Audio1 按数组顺序指代对应素材。

MAGI-2 怎么计费?

全模式统一按 1080p 每秒 16 积分($0.080/秒)计费,总费用 = 16 × duration(4–30 整数秒)。参考素材、画幅比例和音频开关均不影响价格。

关闭 generate_audio 会更便宜吗?

不会。generate_audio 默认为 true,开启与关闭使用相同的 16 积分/秒费率。

支持哪些分辨率和画幅比例?

分辨率固定为 1080p;画幅比例支持 21:9、16:9(默认)、4:3、1:1、3:4 与 9:16,不接受 auto/adaptive。

duration 允许填什么值?

支持 4 到 30 之间的整数秒(默认 5 秒),小数或超出范围会返回 HTTP 400。

text_to_video 模式下可以同时传图片或视频链接吗?

不可以。各模式严格按契约校验,text_to_video 不接受任何素材字段,跨模式传入其他字段会返回 HTTP 400。

任务失败或长时间未完成会怎么处理?

失败任务或超过 24 小时仍未完成的任务会被置为失败,扣费为 0 并自动释放全部预留积分。

生成的视频可以保存多久?

APIstable 转存后的视频链接保留 14 天,请及时下载保存。

是否支持随机种子、单次多条输出或官方回退?

不提供 seed 与官方回退参数。`output_count` 可设 1–4,单次最多生成 4 条独立视频;每条成功的视频单独计费,失败的不扣费。

MAGI-2 的开发方是谁?接入的是正式版还是 114B Preview?

MAGI-2 由 Sand.ai 推出。本站远程 API 接入的是 MAGI-2 正式版(480B 总参数 / 约 28B 激活参数),而非早期 114B Preview。

为什么 4 秒输出视频实际略长?有哪些已知局限?

生成文件可能包含约 0.24 秒尾帧余量,但仍严格按请求的整数 duration 计费。Sand.ai 官方说明提示高速运动或复杂多轨音效场景偶发瑕疵,建议先小规模测试目标镜头。

CREATE VIDEO

现在试用 MAGI-2

在工作台输入提示词,生成视频。