← 返回 API 首页

🎞️ 长视频(无限时长)生成 API

你写逐段提示词 → 分段生成 → 重叠续接 → 自动去重合并成一条无缝长视频

📑 目录

1 · 这是什么

MiniMax H3 单次只能生成 4–15 秒。本接口把任意时长的片子拆成多个片段, 逐段生成后用「重叠续接 + 删除重复区」无缝拼成一条长视频,画面、人物、声线跨段连续。

与普通视频接口的区别

项普通接口 /v1/videos/generations长视频接口 /v1/videos/sequences
单次时长4–15 秒最长约 52 秒(12 段 × 5 秒)
执行方式并行调度固定串行(专用通道)
耗时数分钟每段约 5 分钟,整体较长
跨段连续无(每次独立)有(latent 级续接 + 去重)
提示词单段逐段,由你自己写(本接口不做自动分段)

上限

2 · 两个模型(本接口不提供 I2V)

模型说明能引用参考素材吗
H3_T2V_loog纯文生。只靠文字描述角色与场景不能(传了会自动改按 R2V 处理,并回一条 warnings)
H3_R2V_loog多参考。用参考图锁人物/场景,也能用参考视频借运镜能(ref_images / ref_audios / ref_videos)

怎么选?要角色长相稳定、跨段是"同一个人" → 用 H3_R2V_loog 并上传角色图; 不在意具体长相、只要文字描述 → 用 H3_T2V_loog。
本接口没有 I2V(从一张图往下拍),该需求请用普通接口的 minimax_h3_i2v(但那只出单段)。

3 · 快速上手

本接口不做自动分段:段数、每段演什么、时间轴怎么排,都由你写进 segment_prompts。先读第 6 节学会六段式写法,再回来照这个例子提交。

curl -X POST http://47.111.83.139:19180/v1/videos/sequences \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <key>" \
  -d '{
    "model": "H3_T2V_loog",
    "segment_prompts": [
      "subject_definitions:\n<Subject 1> is ...\n\nsummary:\n[reference generation] ...\n\n(第 1 段全文)",
      "subject_definitions:\n...\n\nsummary:\n[video continuation] ...\n\n(第 2 段全文)",
      "……(第 3 段全文)"
    ],
    "segment_seconds": 5,
    "megapixels": 0.6,
    "aspect_ratio": "16:9 (Widescreen)",
    "seed": 20260916
  }'

segment_prompts 两种写法都接受:JSON 字符串数组(推荐), 或一个用独占一行的 --- SEGMENT --- 分隔的大字符串。 数组有几条就生成几段,秒级入队、无需等待。

查询进度

curl http://47.111.83.139:19180/v1/videos/sequences/{id} -H "Authorization: Bearer <key>"
字段含义
statuspending → running → completed / failed
stageclient_prompts 已读取你的提示词 | generating 逐段生成中
segments本任务总段数(= segment_prompts 条数)
data[].url完成后取产物地址

4 · 请求参数

参数类型必填默认说明
modelstring是—H3_T2V_loog 或 H3_R2V_loog
segment_promptsarray / string是—逐段提示词。段数 = 条数。提交前会自动做格式校验,见第 11 节
segment_secondsnumber否5每段生成时长,5–9 秒(低于 5 秒会改按 5 秒并给出警告)。必须与你提示词里的时间轴一致
megapixelsnumber否0.6分辨率档位,范围 0.1–2.0,越界会被拒绝。见速查表,建议 0.6
aspect_ratiostring否16:9 (Widescreen)画幅
seedint否随机随机种子,全片所有段共用同一个种子(保证风格一致)
ref_imagesarray仅 R2V—参考图 URL,最多 9 张(超过会被拒绝)。顺序 = 提示词里的 <Picture 1..N>
ref_audiosarray否—参考音频 URL,最多 3 段(超过会被拒绝),每段 2–15 秒。顺序 = <Audio 1..N>
stepsint否固定 3传了不生效采样步数由模型配方固定为 3
ref_videosarray否—参考视频 URL,最多 3 条,按数组顺序对应 <Video 1..N>。见 7.3
ref_video_modestring否edit参考视频用途,目前只接受 edit;传 guide/boundary 会 400(原因见 7.3)
ref_video_audiobool否true是否使用参考视频自带原声;开启时每条视频会多占一个 <Audio N>
promptstring已废弃—早期的"给一句故事自动分段"入口,现已取消。只传它不传 segment_prompts 会收到 400
duration_secondsnumber已废弃—段数由 segment_prompts 条数决定,此参数不再起作用

5 · 时长怎么算(重要)

H3 每段之间要重叠一小段(固定 22 帧 ≈ 0.917 秒)用于续接,合并时这段重复内容会被删掉。 所以并不是"段数 × 段长"。

公式

每段实际帧数 = 段长秒数 × 24,再吸附到 17k+5 网格(合法值:5, 22, 39, …, 107, 124, 141 …)
5 秒  → 120 帧 → 吸附为 124 帧(5.167 秒)
重叠   = 22 帧 = 0.917 秒
每段净增时长 = 5.167 − 0.917 = 4.25 秒

总时长 = 段帧数 + (段数 − 1) × (段帧数 − 重叠帧数)
       = 124 + (段数 − 1) × 102   (帧)
       = 总帧数 ÷ 24              (秒)

换算速查(segment_seconds = 5)

段数总帧数总时长
332813.7 秒
553222.2 秒
883834.9 秒
994039.2 秒
10104243.4 秒
12(上限)124651.9 秒

想要多长,就写多少段。本接口不再根据目标时长自动推算段数 —— 时长是段数的结果,不是输入。写 8 段就是 34.9 秒,写 9 段就是 39.2 秒。

6 · 提示词规范(每段一份「六段式」)

每一段提示词都必须写成下面六个字段,顺序固定、字段名不能改、一个都不能少。 正文用英文;对白保留中文,写在 <d>[Chinese] …</d> 里。

subject_definitions:
<Subject 1> is ……(定义角色/场景/服装,见下)
<Audio 1> is ……(音色/音乐参考,仅 R2V 可用)

summary:
[任务类型] 一句话概括本段

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2]): fully_preserved - ……
<Audio 1>: reference - ……(仅 R2V 可用)

detailed_description:
(风格句)[Shot 1] ……(画面/动作/机位/声音)
[Shot 2] At 00:00.917, ……(切镜后的新内容)

overall_soundscape: 环境音描述
non_diegetic_music: 非叙事音乐描述,或写 N/A

6.1 六个字段逐个说明

字段写什么
subject_definitions给每个反复出现的角色/场景起一个 <Subject N>,写清身份与外观。编号一经分配,全片不变(1=小马 就一直是小马)
summary一个段落,必须以方括号任务类型开头:首段用 [reference generation],第二段起用 [video continuation]
retention_analysis每个 <Subject N> 一行,标注 fully_preserved / partially_preserved / attribute_transfer / weak_reference,并用一句说明保留了什么
detailed_description正文主体。先用一两句定风格,然后按 [Shot 1]、[Shot 2] At MM:SS.mmm, … 逐镜头写:构图、人物位置、环境、动作、镜头运动、声音、对白
overall_soundscape贯穿全片的环境音与物理声(风声、水声、脚步……)
non_diegetic_music只有观众听得到的配乐。不需要就写 N/A

6.2 风格句:必须是一句真的英文,不能留着模板占位符

detailed_description 的第一行是整段的风格句, 必须写出这部片子的视觉基调。第二段起可以写"风格延续"。

❌ 这样写等于没写✅ 写一句真的
[Style sentence in English.]
(方括号里的说明是给你看的提示,不是让你照抄的)
A warm, cinematic children's-fable style with soft morning light, gentle depth of field and unhurried camerawork.
[Continue the established style.] The established warm children's-fable style, character proportions, morning light and calm camerawork continue without interruption.

同理,summary 里的 [任务类型]、时间轴里的 [OVERLAP_END] 之类,都要换成真实内容。接口会扫描方括号并把没替换的报成警告。

6.3 台词怎么写(速览,详见第 9 节)

小马 (S1) 转头对松鼠说:<d>[Chinese] 牛伯伯说浅,松鼠说深,我该听谁的呀?</d>

对白是长视频最容易翻车的地方 —— 多人对话怎么排、每段能装多少字、跨段怎么说、 画外音怎么写,都在 第 9 节,建议逐条读完。

6.4 时间轴铁律(接缝稳不稳就看这个)

两个边界都要管:段首「重放上一段」,段尾「给下一段留一个稳定的桥接镜头」。
只做段首是新手最常犯的漏项 —— 下一段要逐字重放的,就是你这段最后 0.917 秒。 如果那 0.917 秒是"正在走路""正在说话"这种动作中间态,下一段就没有可承接的落点,接缝必然飘。

[Shot N] 是「本段内的局部编号」,不是全片编号。 每一段都从 [Shot 1] 重新数起 —— 第 5 段的第一镜也写 [Shot 1], 不要写成 [Shot 13]。时间码同理,每段都从 00:00.000 起算。

每段的标准三镜头结构

[Shot 1] During 00:00.000-00:00.917,   ← 重放上一段的结尾(首段没有这一镜)
[Shot 2] At 00:00.917,                  ← 新内容 + 对白,推进剧情
[Shot 3] At 00:04.250,                  ← 桥接:稳定、静止、可独立描述,供下一段重放

00:04.250 = 段长 5.167 秒 − 重叠 0.917 秒,是「下一个分段点」所在。 段长 5 秒时这两个时间码是固定的(00:00.917 和 00:04.250)。 段长换成 9 秒则桥接点变成 00:07.333(= 8.708 − 0.917 的近似档位,实际按吸附后帧数算)。

桥接镜头怎么写:定格,不要"正在做某事"

❌ 动作中间态(下一段没法接)✅ 稳定可承接
...the little horse keeps walking toward the bank and the shot holds on the crossing.
还在走,没有落点
...the little horse stands still in the middle of the stream facing the far bank, the water at the middle of its legs, the wheat sack dry on its back. The camera holds a stable side shot at water level.
站定、姿势明确、机位明确
...she turns and starts to speak, gesturing at the door. ...she stands facing the door with one hand resting on the frame, shoulders still, saying nothing. The camera holds steady.

桥接镜头写清四件事就够:主体站位 / 姿态或动作相位 / 机位与景别 / 正在持续的声音。 说白了就是「定格在一个看得清楚的画面上」。

首段(没有上一段)

[Shot 1] 场景开场描述……
[Shot 2] At 00:00.917, 新内容 + 对白……
[Shot 3] At 00:04.250, 桥接:小马站定在河边、低头盯着水面、镜头稳住

第二段起 · 情况 A:重叠之后仍是同一个连续镜头

[Shot 1] During 00:00.000-00:00.917, (逐项复述上一段的桥接镜头)
[Shot 2] At 00:00.917, without a cut, 新内容自然延续……(不要为了分段人为加剪辑点)
[Shot 3] At 00:04.250, 桥接:新的稳定状态

第二段起 · 情况 B:重叠结束处本来就该切镜

[Shot 1] During 00:00.000-00:00.917, (复述上一段的桥接镜头)
[Shot 2] At 00:00.917, the shot cuts to ……(新镜头 + 对白)
[Shot 3] At 00:04.250, 桥接:新的稳定状态

怎么检查自己写对了:把每段的 [Shot 1] 和上一段的 [Shot 3] 并排读一遍 —— 如果两处描述的是同一个画面、同一个姿态、同一个机位, 就对了。对不上就说明桥接镜头没写稳。

6.5 用「画面里有什么」控制人物数量,别写「不要出现谁」

想控制画面里有几个人,靠正向构图(谁在左、谁在右、什么景别、怎么遮挡), 而不是靠写一堆"画面里不要有别人"。后者对模型基本无效,还会把提示词写得很乱。

❌ 别这样写✅ 这样写
Do not create extra characters. The girl and the pig must not appear. No silhouettes or background people. The little witch sits alone at the centre of the frame, her face filling a tight shoulder-up close-up, the softly blurred curtains behind her.
只写"小马很紧张" <Subject 1> stands on the left of the frame, three metres from the water, ears back and head lowered toward the current.

6.6 切镜与运镜怎么写

切镜

第一镜 [Shot 1] 不带时间戳;后续镜头写 [Shot N] At MM:SS.mmm,, 时间戳必须严格递增且落在本段时长内。推荐用这些动词:

the camera cuts to …      the shot cuts to …       the shot transitions to …
the shot changes to …     the shot switches to …

交叉溶解、淡入淡出、划像(cross-dissolve / fade / wipe)只在确实需要时用。

一次切镜要带来新信息 —— 新的主体、新的空间、新的状态、新的视角或时间跳跃。 如果只是远近或轻微角度的变化,用运镜解决,不要切镜。

运镜

完整写法 = 运动类型 + 幅度 + 速度,作为自然英文动作写在镜头里, 不要在句尾堆标签。幅度中等、速度正常时通常省略不写。

The camera pushes in with small amplitude at slow speed toward the folded letter in her hands.
The camera pans right with large amplitude at fast speed, revealing the open doorway.
The camera holds a static shot as the runner exits the frame.
运动类型含义
Zoom In / Zoom Out机身不动,焦距变化
Push In / Pull Out机身向前 / 向后移动
Pan Left / Pan Right机身不动,镜头水平转
Truck Left / Truck Right机身水平横移
Tilt Up / Tilt Down机身不动,镜头垂直转
Pedestal Up / Pedestal Down整个机位上下移动
Arc Shot围绕主体做弧形运动
Tracking Shot跟随运动中的主体
Static Shot机位和镜头都不动
Shake Slightly / Shake Strongly轻微 / 强烈晃动
POV主体的主观视角
Roll Clockwise / Roll Counterclockwise绕镜头轴翻滚

幅度写 with small amplitude / with large amplitude; 速度写 at slow speed / at fast speed。

画面里真实可见的文字

招牌、标语、字幕、霓虹灯等画面上真的看得见的文字,用英文双引号括起来, 原文原标点保留,不翻译:

A red neon sign reading "营业中" glows above the doorway.

7 · 参考素材怎么用(T2V / R2V / 参考视频)

R2V(H3_R2V_loog)—— 用参考图锁外观

7.1 第 2 段起:人物是「继承」来的,不要重新定义一遍

第 2 段开头那段重叠画面里已经有上一段的人物了,他们由 Latent Guide 直接继承。 如果你在 subject_definitions 里把外貌又完整写一遍,等于告诉模型"这是个新人物", 反而容易出现换脸、换装、体型变化。

第 2 段起怎么写
❌ 重新定义<Subject 1> is 小马, a small light-brown young horse with a short dark mane and a white blaze, carrying a cloth sack of wheat.
(又把外貌完整写了一遍)
✅ 继承 + 校准<Subject 1> is 小马 already carried into the opening Latent Guide; <Picture 1> calibrates its established identity, proportions and coat.

只有这几种情况才需要补定义:

参考音频只负责音色:把 <Audio N> 绑到已经在 Latent Guide 里的同一个人物即可, 不需要因此重新定义他的视觉身份。多视图人物设定图(正面/侧面/背面/特写)是同一个人的不同视角, 首次定义时要说明这一点,别当成多个角色。

7.2 新角色什么时候登场

新角色要在重叠区结束之后才进入画面,不要让它出现在 [Shot 1] 的重叠复述里 —— 否则它会和固定画面打架。写法就是先复述旧的,再用 [Shot 2] At 00:00.917, 把新人带进来 (见 10.5 的示例:牛是在 [Shot 2] At 00:02.600, 才入画的)。

T2V(H3_T2V_loog)—— 纯文字描述

绝对不要出现 <Picture N> / <Video N> / <Audio N> 任何标签!
没有对应素材时,这些标签会被当作普通文字处理,等于白写,还会让画面变差。接口会直接拒绝这类提示词。

对照表

项T2VR2V
角色外观来源文字描述<Picture N>
能否写 <Picture N>禁止必须
能否写 <Audio N>禁止可以用
正文是否重复描述外观需要不要
编号越界会怎样400 拒绝400 拒绝(<Picture 5> 但只传了 3 张图)

7.3 参考视频(ref_videos)—— 借用它的运动与风格

⚠️ 目前只建议用在「1 段」的任务里。 参考视频在底层是对每一段都生效、且固定取源视频开头的,多段任务里第 2 段起画面会被拉回 参考素材的起始构图(接缝处看起来像回退)。多段任务请改用 ref_images 锁角色。

参考视频给模型提供构图、镜头运动、剪辑节奏、画面风格的参照, 但不硬锁原画面内容 —— 你可以把源视频里的人物、物件、场景换掉,只借它的"怎么拍"。

参数必填说明
ref_videos否参考视频 URL,最多 3 条
ref_video_mode否目前只接受 edit(也是默认值)
ref_video_audio否是否使用参考视频自带的原声,默认 true

提示词里怎么引用

按 ref_videos 数组顺序对应 <Video 1>、<Video 2>… 在 subject_definitions 里说明它提供什么:

subject_definitions:
<Subject 1> is 小马 in <Picture 1>.
<Video 1> is the reference for the camera movement and pacing of [Shot 1] and [Shot 2].

summary:
[reference generation] ...

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2]): fully_preserved - identity follows <Picture 1>.
<Video 1> (camera movement and pacing): weak_reference - only the camera work is borrowed;
its subjects are not copied.

视觉类参考标签可用的关系词:fully_preserved / partially_preserved / attribute_transfer / weak_reference。 借用运镜风格属于 weak_reference。

原声怎么算编号

参考视频开了原声(ref_video_audio 为 true)时,每条视频会多占一个 <Audio N>。 编号顺序是:独立 ref_audios 在前,视频原声配对在后。

ref_audios 给 1 段 + ref_videos 给 1 条(带原声)
  → <Audio 1> = 那段独立音频
  → <Audio 2> = 那条视频的原声

只要不想用视频自带的声音,传 "ref_video_audio": false 即可, 编号里就不会多出配对的那几条。

几个必须知道的限制

为什么没有「接着往下拍」模式

插件本身还提供两种模式,但在长视频的分段链路里不能安全使用,所以暂未开放:

模式用途为什么暂不开放
guide固定 Guide —— 拿现成视频当起点,逐帧锁定它的结尾状态 它俩会在第 2 段起往同一帧(frame_idx=0)追加硬关键帧, 与段间续接用的 latent 关键帧叠在一起;插件对此不去重,也从未测试过这个组合
boundary仅固定边界 —— 只要求首尾构图一致,中间自由

传这两个值会返回 400 并说明原因。想要"从一段现有视频接着往下拍",现在请用普通接口 /v1/videos/generations 的 R2V + ref_videos(那条路是单段的,没有分段续接,不受此限制)。

8 · 衔接状态必须复述的 6 项

写 [Shot 1] During 00:00.000-00:00.917, … 时,下面 6 项都要写进去。 只靠"文字回忆"上一段,接缝一定会飘。

#复述什么
1景别、机位高度、焦段观感、相机朝向
2每个人物在画面中的左右、前后、远近位置
3人物姿态、视线方向、表情、当前动作进行到哪一步
4关键道具的位置与谁拿着
5场景布局、光线方向、色温、时间状态
6上一段结尾正在持续的环境声 / 对白 / 音乐状态

写的时候有个诀窍:先把上一段的结尾画面写成文字,再把它抄进下一段的 [Shot 1] During …,然后才写新内容。这样接缝几乎不会飘。

9 · 音频与对白(本节最详细)

对白是最容易写错、也最影响成片质量的部分。规则分三块: 谁在说(说话人编号)、怎么说(写法格式)、跨段怎么办(续接与音色)。

9.1 谁在说:说话人编号 (S1) (S2)

(Sx) 是「本段内」的编号,每段重新数。 第 3 段第一个开口的角色也叫 (S1),不是 (S5)。
这和 <Subject N>(全片稳定、跨段不变)是两套完全不同的编号体系,千万别混: <Subject N> 回答"这是谁",(Sx) 回答"这句是谁说的"。

9.2 台词的标准写法

公式:「谁 + 什么声音 + 什么动作 + 说」写在 <d> 外面, <d> 里面只放「语言标签 + 逐字台词」。

The young woman with a quiet, breathy voice (S1) says: <d>[English] I get off at the next station.</d>
元素写在哪说明
说话人身份 + 声音特征<d> 外角色类型、年龄、性别、音色、语速、口音。首次出现时给足,同段后面再说话可以省略
(S1)<d> 外紧跟说话人
动作 / 表情 / 语气<d> 外如 turns and shouts、says softly
语言标签<d> 内[Chinese] / [English] / [Japanese]…
逐字台词<d> 内原文原标点,不翻译、不改写
❌ 抽象描述(模型不知道说了什么)✅ 逐字台词
The squirrel warns him that the water is deep. <Subject 3> (S2) cries out: <d>[Chinese] 小马,别过河!这水可深啦!</d>
He says a few reassuring words. <Subject 4> (S1) says in a low unhurried voice: <d>[Chinese] 水刚没过我的小腿,你过来就是了。</d>
听不清的话用猜测填上 <d>[Chinese] [unclear]</d> —— 听不清就写 [unclear],不要猜

9.3 多角色对话场景怎么写

一个镜头里几个人说话,按画面里的实际发言顺序连续写,每句自带自己的 (Sx)。 不要为每一句话单独开一个 Shot —— 切镜是镜头语言,不是台词分隔符。

[Shot 2] At 00:02.600, the camera cuts to a wide shot across the river.
<Subject 4> (S1) wades into the shallows and says in a low unhurried voice:
<d>[Chinese] 水刚没过我的小腿,你过来就是了。</d>
<Subject 3> (S2) stays on the stone and flicks its tail without speaking,
while <Subject 1> looks from one to the other.

常见情况的写法:

情况怎么写
一问一答两句连着写,各自带 (S1) / (S2),中间用动作衔接
三人轮流按画面顺序写三句,编号按本段发声顺序给;没开口的那位不要给编号
打断 / 抢话<Subject 2> (S2) cuts him off: <d>[Chinese] …</d>,或写 their voices overlap
齐声用复合编号:The two children (S1,S2) shout together, <d>[English] Wait for us!</d>
某人沉默但被提到写成动作,不写台词也不给编号,如 <Subject 3> stays on the stone and flicks its tail

⚠️ 每段能装多少对白?(很实际的问题)

每段 5 秒里,前 0.917 秒是上一段的重复,真正能推进新内容的只有约 4.25 秒。 中文正常语速约 4–5 字/秒,所以:

每段时长净新增建议对白总量
5 秒(默认)约 4.25 秒不超过 2 句、合计约 20 字
8 秒约 7.25 秒不超过 3 句、合计约 35 字
9 秒(上限)约 8.25 秒不超过 3–4 句、合计约 40 字

塞太多对白是长视频最常见的翻车原因: 嘴型对不上、语速被压缩得非常赶、台词被吞掉。宁可少写两句、把每个字说清楚。 不要求每个 Shot 都有人说话 —— 动作、反应、环境空镜、道具细节,都是有效的镜头内容。

9.4 画外音与旁白

人物在画面外说话(旁白、电话另一头、回忆),用固定短语 says in an off-screen voiceover,并且紧跟在那句 <d> 后面说明画面里的人嘴是闭着的:

<Subject 1> (S1) says in an off-screen voiceover: <d>[Chinese] 我到现在还记得那条路。</d> while its lips remain completely closed.

旁白仍然占 (Sx) 编号,只是注明是画外音。不要因为"看不到人"就不给编号。

9.5 对白跨段(长视频专属,最需要小心)

最好的做法:让分段点落在一句话说完之后。这样最省事,接缝也最稳。

如果一句话必须横跨两段,注意四件事:

  1. 上一段的结尾要把这句话说到一个可辨识的状态(说到哪几个字、什么语气、嘴型什么样), 这个状态会作为下一段的重叠 Guide 传下去
  2. 下一段的重叠复述里要写明"上一句还没说完、声音在延续",而不是重新开口
  3. 两段都要写 <scenetrans> 标记这句话的接续点,并明确说明音频跨段连续
  4. 那句话的说话人在两段里用同一个 (Sx)(这是唯一需要跨段保持编号的情况)

可用的连续性表述:continues seamlessly across the cut、 continues uninterrupted into the next shot、 carries over from the previous shot、remains audible across the transition。

如果一句话被影片结尾生生截断(话说一半就到点了),用 <cutoff> 标记。

跨段对白示例(第 2 段结尾 → 第 3 段开头)

── 第 2 段的结尾(最后 0.917 秒)──
<Subject 1> (S1) is midway through a sentence, mouth open and voice
continuing: <d>[Chinese] 可是我一直以为<scenetrans></d> The line is not
finished when the segment ends.

── 第 3 段的重叠复述 ──
[Shot 1] During 00:00.000-00:00.917, <Subject 1> holds the exact ending
state: the same standing pose, mouth still open, the unfinished sentence
<d><scenetrans>这水很深</d> continuing seamlessly across the cut. From
00:00.917, the sentence finishes and the little horse turns away.

不要重复已经说完的台词。 如果第 2 段里那句话已经说完了,第 3 段就不能再写一遍 —— 合并时虽然会删掉重叠画面, 但音频重复听起来非常明显。

9.6 用 ref_audios 做音色参考

9.7 延续上一段的声音(原声 / 环境声)

9.8 环境声:overall_soundscape

用 1–4 句英文概括整段的环境音、物理动作声、非语言人声(风、雨、脚步、布料摩擦、撞击、呼吸、笑声、喘息)。

overall_soundscape: Birdsong, a light breeze in the grass, the river's steady
gurgle, and slow splashing as the ox wades into the shallows.

9.9 配乐:non_diegetic_music

用 1–3 句英文描述只有观众听得到的配乐,聚焦乐器、速度、节奏、强弱变化。

non_diegetic_music: Sparse piano notes at a slow tempo, joined by sustained low
strings that gradually increase in volume before fading out.

想让成片有统一的轻音乐底子,最省事的做法是每段都用同一句话,只在最后一段写"收束"。

10 · 完整示例

下面两份都是可复制的完整全文(每份 3 段,成片 13.7 秒)。每段都是三镜头结构(重放 → 新内容 → 桥接 00:04.250): 10.1–10.3 是 T2V(纯文字描述外观),10.4–10.7 是 R2V(用参考图锁外观、带音色参考)。 两份的六字段都齐全,第二段起都写了正确的重叠复述 —— 对着改就行。

10.1 T2V · 第 1 段(首段,没有上一段)

subject_definitions:
<Subject 1> is 小马, a small light-brown young horse with a short dark mane
and a white blaze on its forehead, carrying a small cloth sack of wheat.
<Subject 2> is the forest riverbank: a shallow clear brook with smooth pebbles,
mossy grey stones, tall pines and dappled morning sunlight.

summary:
[reference generation] Xiaoma arrives at the river and hesitates.

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - the same
light-brown coat, dark mane, white blaze and wheat sack.
<Subject 2> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - the same
brook, pebbles, pines and morning light.

detailed_description:
A warm, cinematic children's-fable style with soft morning light and calm camerawork.
[Shot 1] A sunny meadow beside a shallow forest river. The little horse trots into
frame along the bank with the cloth sack of wheat on its back.
[Shot 2] At 00:00.917, the little horse slows to a stop at the water's edge, lowers
its head and looks at the flowing water; its ears flick forward and back. The camera
is a medium-wide shot that slowly pushes in.
[Shot 3] At 00:04.250, the little horse stands at the water's edge with its weight
settled on all four hooves, head lowered toward the current and body angled slightly
across the frame; the wheat sack rests on its back. The brook keeps running past the
stones, sunlight keeps shifting on the surface and its mane drifts in the light
breeze; the camera eases forward in a very slow, steady push.

overall_soundscape: Birdsong, a light breeze in the grass, and the steady
gurgle of the shallow river.

non_diegetic_music: A soft, playful light orchestral bed of piano and strings
in a warm children's-fable mood; no lyrics.

10.2 T2V · 第 2 段(续接段,注意 [Shot 1] 复述的是上一段的 [Shot 3])

subject_definitions:
<Subject 1> is the same 小马, a small light-brown young horse with a short dark
mane, a white blaze and the cloth sack of wheat.
<Subject 2> is the same forest riverbank: shallow clear brook, smooth pebbles,
mossy grey stones, tall pines, dappled morning sunlight.

summary:
[video continuation] The shot opens on the previous segment's ending state at the
water's edge, then the little horse steps toward the water and pulls back.

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - the same
light-brown coat, dark mane, white blaze and wheat sack.
<Subject 2> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - the same
brook, pebbles, pines and morning light.

detailed_description:
The established warm children's-fable style, morning light and calm camerawork
continue without interruption.
[Shot 1] During 00:00.000-00:00.917, the little horse stands at the water's edge with
all four hooves on the smooth stones, head lowered toward the current and body angled
slightly across the frame, the wheat sack on its back; the brook keeps running past
the stones and its mane drifts in the breeze.
[Shot 2] At 00:00.917, without a cut, the little horse takes half a step toward the
water, then pulls back and tosses its head with a worried snort.
[Shot 3] At 00:04.250, the little horse stands one pace back from the water facing the
river with its weight settled on all four hooves and its ears tipped back; the brook
keeps flowing past the stones and the grass sways behind it. The camera eases back in
a very slow, steady pull.

overall_soundscape: Birdsong, a light breeze in the grass, the steady gurgle of
the shallow river, and a soft anxious whinny.

non_diegetic_music: The same soft, playful piano-and-strings fable bed,
unhurried, with no lyrics.

10.3 T2V · 第 3 段(收尾段)

subject_definitions:
<Subject 1> is the same 小马, a small light-brown young horse with a short dark
mane, a white blaze and the cloth sack of wheat.
<Subject 2> is the same forest riverbank: shallow clear brook, smooth pebbles,
mossy grey stones, tall pines, dappled morning sunlight.

summary:
[video continuation] The little horse finally steps into the shallow water and
crosses to the far bank, ending on a calm wide shot of the empty river.

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - the same
light-brown coat, dark mane, white blaze and wheat sack.
<Subject 2> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - the same
brook, pebbles, pines and morning light.

detailed_description:
The established warm children's-fable style, morning light and calm camerawork
continue without interruption.
[Shot 1] During 00:00.000-00:00.917, the little horse stands one pace back from the
water facing the river with its weight settled on all four hooves and its ears tipped
back; the brook keeps flowing past the stones and the grass sways behind it.
[Shot 2] At 00:00.917, the little horse steps forward into the shallow water and wades
across, the current breaking around its legs. It neither sinks nor struggles.
[Shot 3] At 00:04.250, the little horse stands on the far bank with its weight on all
four hooves and its head turned back to look across the river, the wheat sack dry on
its back. The water keeps sliding past the shallows and its mane drifts in the breeze;
the camera eases back into a wide shot of the two banks and the quiet river.

overall_soundscape: Birdsong, a light breeze in the grass, water splashing
around hooves, and the river's steady gurgle settling back to stillness.

non_diegetic_music: The same soft piano-and-strings fable bed, resolving into
one gentle sustained chord as the little horse reaches the far bank.

10.4 R2V · 第 1 段(首段,用 <Picture N> 锁外观)

subject_definitions:
<Subject 1> is 小马 in <Picture 1>.
<Subject 2> is the forest riverbank in <Picture 2>.
<Subject 3> is the little red squirrel in <Picture 3>.
<Audio 1> is the voice-timbre reference for <Subject 1> (S1).
<Audio 2> is the voice-timbre reference for <Subject 3> (S2).

summary:
[reference generation + audio reference] Xiaoma reaches the river and meets a
squirrel who warns him that the water is deep.

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - identity follows <Picture 1>.
<Subject 2> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - identity follows <Picture 2>.
<Subject 3> (appears in [Shot 2], [Shot 3]): fully_preserved - identity follows <Picture 3>.
<Audio 1>: reference - <Subject 1> (S1) speaks with <Audio 1>'s timbre; its words are not copied.
<Audio 2>: reference - <Subject 3> (S2) speaks with <Audio 2>'s timbre; its words are not copied.

detailed_description:
A warm, cinematic children's-fable style with soft morning light and calm camerawork.
[Shot 1] A sunny meadow beside a shallow forest river. <Subject 1> walks in from
the left and stops at the water's edge, lowering its head toward the current.
<Subject 2> fills the background with tall pines and dappled morning light.
[Shot 2] At 00:00.917, the camera cuts to a low angle as <Subject 3> darts up onto
a mossy stone in the foreground. <Subject 3> (S2) cries out: <d>[Chinese] 小马,
别过河!这水可深啦!</d> <Subject 1> (S1), using <Audio 1>'s timbre, backs
half a step from the water and answers without turning away: <d>[Chinese] 可是牛
伯伯说,这水很浅呀。</d>
[Shot 3] At 00:04.250, <Subject 1> stands one pace back from the water with its
weight settled on all four hooves and its body still facing the river, ears tipped
back; <Subject 3> stays on the mossy stone just in front of it with its tail curled
up. The brook keeps running past the stones and the squirrel's tail twitches lightly;
the camera holds a steady medium shot.

overall_soundscape: Birdsong, a light breeze in the grass, and the steady
gurgle of the shallow river.

non_diegetic_music: A soft, playful light orchestral bed of piano and strings
in a warm children's-fable mood; no lyrics.

10.5 R2V · 第 2 段(续接段 + 新角色入场)

注意三件事:① 既有人物不再重复描述长相,改写成 already carried into the opening Latent Guide; <Picture N> calibrates …; ② 新角色在重叠区结束之后才登场,并把它的 <Picture N> 和 <Audio N> 一起补进来;③ 段尾写 [Shot 3] 桥接。

subject_definitions:
<Subject 1> is 小马 already carried into the opening Latent Guide; <Picture 1>
calibrates its established identity, proportions and coat.
<Subject 2> is the forest riverbank already carried into the opening Latent
Guide; <Picture 2> calibrates the brook, stones and pines.
<Subject 3> is the little red squirrel already carried into the opening Latent
Guide; <Picture 3> calibrates its established identity.
<Subject 4> is the old ox in <Picture 4>.
<Audio 3> is the voice-timbre reference for <Subject 4> (S3), preserving his
deep, unhurried delivery.

summary:
[video continuation + reference generation + audio reference] An old ox wades
into the shallows on the far bank and tells Xiaoma the water is shallow,
contradicting the squirrel.

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - <Picture 1>
recalibrates it while the opening Latent Guide preserves its pose.
<Subject 2> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - <Picture 2>
recalibrates the brook, stones and pines.
<Subject 3> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - <Picture 3>
recalibrates it while the Latent Guide preserves its pose on the stone.
<Subject 4> (appears in [Shot 2], [Shot 3]): fully_preserved - identity follows <Picture 4>.
<Audio 3>: reference - <Subject 4> (S3) speaks with <Audio 3>'s timbre; its words
are not copied.

detailed_description:
The established warm children's-fable style, morning light and calm camerawork
continue without interruption.
[Shot 1] During 00:00.000-00:00.917, the little horse stands one pace back from the
water facing the river with its weight on all four hooves and ears tipped back;
<Subject 3> is perched on the mossy stone just in front of it with its tail curled
up; the brook keeps running past the stones.
[Shot 2] At 00:00.917, a heavy footfall sounds and both heads turn; the camera swings
across the river to reveal <Subject 4> wading slowly into the shallows on the far
bank, the water barely reaching his shins. <Subject 4> (S3), using <Audio 3>'s
timbre, says in a low unhurried voice: <d>[Chinese] 水才到我的小腿,过得去。</d>
[Shot 3] At 00:04.250, <Subject 1> stands at the water's edge on the near bank with
its head turned toward the far side and its weight settled on all four hooves;
<Subject 4> stands in the shallows across the river with the water at his shins, and
<Subject 3> remains on the mossy stone in the foreground. The current keeps sliding
past the ox's legs and the grass sways in the breeze; the camera holds a steady wide
shot across the water.

overall_soundscape: Birdsong, a light breeze in the grass, the river's steady
gurgle, and slow splashing as the ox wades into the shallows.

non_diegetic_music: The same soft, playful piano-and-strings fable bed,
unhurried, with no lyrics.

10.6 R2V · 第 3 段(收尾段)

subject_definitions:
<Subject 1> is 小马 already carried into the opening Latent Guide; <Picture 1>
calibrates its established identity, proportions and coat.
<Subject 2> is the forest riverbank already carried into the opening Latent
Guide; <Picture 2> calibrates the brook, stones and pines.
<Subject 3> is the little red squirrel already carried into the opening Latent
Guide; <Picture 3> calibrates its established identity.
<Subject 4> is the old ox already carried into the opening Latent Guide;
<Picture 4> calibrates its established identity and build.
<Audio 1> is the voice-timbre reference for <Subject 1> (S1).
<Audio 2> is the voice-timbre reference for <Subject 3> (S2).

summary:
[video continuation + audio reference] Xiaoma stops asking and tests the water
himself, crossing the shallow river to the far bank while the squirrel calls
after him and the ox waits.

retention_analysis:
<Subject 1> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - <Picture 1>
recalibrates it while the Latent Guide preserves its stance.
<Subject 2> (appears in [Shot 1], [Shot 2], [Shot 3]): fully_preserved - <Picture 2>
recalibrates the brook, stones and pines.
<Subject 3> (appears in [Shot 1], [Shot 2]): fully_preserved - <Picture 3>
recalibrates it while the Latent Guide preserves its pose on the stone.
<Subject 4> (appears in [Shot 1], [Shot 3]): fully_preserved - <Picture 4>
recalibrates it while the Latent Guide preserves its position in the shallows.
<Audio 1>: reference - <Subject 1> (S1) speaks with <Audio 1>'s timbre; its words are not copied.
<Audio 2>: reference - <Subject 3> (S2) speaks with <Audio 2>'s timbre; its words are not copied.

detailed_description:
The established warm children's-fable style, morning light and calm camerawork
continue without interruption.
[Shot 1] During 00:00.000-00:00.917, <Subject 1> stands at the water's edge on the
near bank with its head turned toward the far side and its weight on all four hooves;
<Subject 4> stands in the shallows across the river and <Subject 3> remains on the
mossy stone in the foreground; the current keeps sliding past the ox's legs.
[Shot 2] At 00:00.917, <Subject 1> turns away from both of them and faces the water
squarely. <Subject 1> (S1) says quietly, without turning around:
<d>[Chinese] 我自己试试就知道了。</d> It steps off the bank into the stream and
wades forward, the current breaking around its legs.
[Shot 3] At 00:04.250, <Subject 1> stands in the middle of the stream facing the far
bank with its weight settled on all four legs, the water at the middle of its legs and
the wheat sack dry on its back; <Subject 4> waits in the shallows ahead. The current
keeps breaking in small ripples around its legs and its mane drifts in the breeze; the
camera eases back into a steady wide shot of the river.

overall_soundscape: Birdsong, a light breeze, water splashing around hooves,
and the river's steady gurgle.

non_diegetic_music: The same soft piano-and-strings fable bed, resolving into
one gentle sustained chord as the little horse reaches the far bank.

10.7 提交(R2V 3 段)

{
  "model": "H3_R2V_loog",
  "segment_prompts": ["第1段全文", "第2段全文", "第3段全文"],
  "ref_images": [
    "https://.../小马.png",
    "https://.../河边.png",
    "https://.../松鼠.png",
    "https://.../牛.png"
  ],
  "ref_audios": [
    "https://.../小马音色.wav",
    "https://.../松鼠音色.wav",
    "https://.../牛音色.wav"
  ],
  "segment_seconds": 5,
  "megapixels": 0.6,
  "aspect_ratio": "16:9 (Widescreen)",
  "seed": 20260916
}

ref_images / ref_audios 的数组顺序就是提示词里的编号, 必须一一对应:小马=<Picture 1>,河边=<Picture 2>, 松鼠=<Picture 3>,牛=<Picture 4>; 音色同理,小马=<Audio 1>,松鼠=<Audio 2>,牛=<Audio 3>。

编号是对应关系,不是出场顺序。某个角色在哪几段说话,就只在那几段里引用它的 <Audio N>;但编号始终跟着它本人走,不会因为换段而变。

11 · 提交前自检

提交后接口会先做一次格式校验(纯文本层面:字段、时间码、标签编号), 不合格直接返回 400 并指出是第几段的哪个问题,不会白白占用算力。

会被拒绝(400)的情况

检查项说明
六字段缺失 / 重复 / 顺序错subject_definitions → summary → retention_analysis → detailed_description → overall_soundscape → non_diegetic_music,一个不少、顺序不变
第 2 段起没有重叠开场必须在 detailed_description 里写 [Shot 1] During 00:00.000-00:00.917, …。写在别处、或写成别的时间码都不行
重叠时间码不对固定是 00:00.917(22 帧 ÷ 24fps)。写成 00:01.000 之类会被拒绝
T2V 里出现 ref 标签没有 ref_images 时写 <Picture N>、没有 ref_audios 时写 <Audio N>,都会被拒绝
引用编号越界传了 3 张图却写 <Picture 5>;传了 1 段音频却写 <Audio 2>
<Video N> 越界没传 ref_videos 却写了 <Video N>,或编号超过 ref_videos 条数
传了 guide / boundary这两种模式在分段链路里未经证伪,暂未开放(见 7.3 末尾)
镜头时间码超出段长[Shot 2] At 00:07.000 但 segment_seconds 只给了 5 —— 时间码用本段局部时间,要从 00:00.000 起算并落在段长内
段数超过 12单批上限 12 段
ref_images 超过 9 张H3 模型硬限制,报错信息会写清「最多 9 张,收到 N 张」
ref_audios 超过 3 段同上,上限 3 段
megapixels 越界范围 0.1–2.0。超上限会被直接拒绝,不让你白等
请求体过大上限 2 MB(逐段提示词正常只有几十 KB)

只会警告、不拦生成的情况

下面这些不算错,会正常受理,但响应里会带一个 warnings 数组提醒你:

检查项说明
方括号里像是模板占位符例如 [Style sentence in English.]、[Continue the established style.] 没替换成真实内容
summary 没有 [任务类型] 开头首段应为 [reference generation],第二段起 [video continuation]
用了参考素材但 retention_analysis 是空的每个实际用到的参考标签应写一行
model 写 T2V 却带了参考素材已自动改按 R2V 处理,但会告诉你 —— 免得你以为跑的是 T2V
model 写 R2V 却一个参考都没给多半是忘了传 ref_images;确实不需要就改用 H3_T2V_loog
aspect_ratio 传了不认识的值已按 16:9 处理,并列出可用值
seed / segment_seconds 不是数字已按默认值处理(随机种子 / 5 秒)
segment_seconds 超过 9已按 9 秒处理。想要更长请增加段数,不是加长单段
segment_seconds 低于 5已按 5 秒处理 —— 本接口单段最短 5 秒。要更短的成片请减少段数,不要缩短单段

被拒绝时的响应长这样

{
  "error": "segment_prompts 格式校验未通过",
  "issues": [
    { "segment": 2, "field": "detailed_description",
      "problem": "没有找到 \"During 00:00.000-00:00.917\"",
      "hint": "第 2 段起必须先写 [Shot 1] During 00:00.000-00:00.917, ..." }
  ],
  "docs": "http://47.111.83.139:19180/longvideo"
}

segment 是第几段(从 1 开始),field 是哪个字段, problem 是具体问题,hint 是改法。照着改完重新提交即可。

12 · 响应与产物

创建任务

{ "id": "seq_1401250001", "object": "video.sequence",
  "model": "H3_T2V_loog", "status": "pending",
  "segments": 3 }

任务完成

{ "id": "seq_1401250001", "status": "completed", "segments": 3,
  "data": [{ "url": "http://47.111.83.139:19180/videos/video/H3_finite_segments/seq_1401250001_00001_.mp4" }] }

产物是单个 MP4(H.264 + AAC 立体声 32kHz),已是合并好的完整长视频, 不需要你再拼接。下载地址带签名/时效,请及时转存。

失败

{ "status": "failed", "error": "参考素材下载失败" }

两种失败要分开看:格式问题在提交时就会 400(见第 11 节); status: failed 是入队之后才发生的(素材下载失败、资源不足、服务异常等)。

13 · 生成后自检清单

每段生成后请检查:

如果音频切口有"爆音",可以做极短的等功率交叉淡化; 但不能靠保留重复音频来掩盖接缝。

14 · 常见错误与禁止做法

❌ 错误做法✅ 正确做法
忽略上一段画面,把新剧情直接写成 [Shot 1][Shot 1] 先复述重叠状态,新内容放 [Shot 2]
T2V 里写 <Picture 1>(或任何 ref 标签)用文字写全外观;R2V 才能用 <Picture N>
R2V 里 ref_images 顺序与 <Picture N> 对不上严格一一对应:第 1 张 = <Picture 1>
R2V 正文里又重复描述一遍角色长相外观锁在图上,正文只写动作/环境/机位/声音
风格句留着 [Style sentence in English.] 没替换写成真的英文句子,如 The target video uses warm cinematic...
segment_seconds 与提示词里的时间轴不一致写 5 秒段就传 segment_seconds: 5,时间码落在段长内
第 2 段复制第 1 段改几个字第 2 段起必须承接直接上一段的结尾状态,不是回到第一段
把整段长片塞进一段提示词拆成多段,每段 5–9 秒
每段都堆上全部历史参考素材只带当前段真正需要的素材
把台词写成"它警告了一句"写出逐字台词 <d>[Chinese] …</d>
把角色/场景写成剧情摘要,没有逐镜头信息每个镜头都写构图、位置、动作、镜头、声音
只听清一半就随便编台词听不清写 [unclear]

15 · 速查表

分辨率档位(16:9)

megapixels实际输出说明
0.4864×480最快
0.61056×608推荐,速度与画质平衡
1.01376×768更清晰,明显更慢

耗时参考(0.6MP、每段 5 秒)

环节耗时
提交 + 格式校验秒级
每段生成约 5 分钟
3 段整体(含合并)约 16 分钟
9 段整体(含合并)约 50 分钟

关键参数默认值

参数默认
segment_seconds5
megapixels0.6
steps固定 3(不可改)
重叠帧数22 帧(0.917 秒,不可改)
单批段数上限12
此API仅供内部、工作学习及研究使用,禁止第三方使用,严禁用于违法生产和转发