POST /v1/videos| 模型名 | 支持模式 | 时长 | 说明 |
|---|---|---|---|
minimax-h3 | 文生视频、参考内容生成 | 4~15 秒 | MiniMax H3 标准模型 |
minimax-h3-max | 文生视频、参考内容生成 | 4~15 秒 | MiniMax H3 Max 模型 |
seconds 指定 4~15 秒的输出时长。调用时必须使用表格中的完整模型名。| 模式 | 传参方式 |
|---|---|
| 文生视频 | 不传 images、videos、audios,或全部传空数组 |
| 参考内容生成 | 至少传入一项图片、视频或音频参考内容 |
prompt 中说明每项素材的作用和编号。| 方式 | Content-Type | 参考素材字段 |
|---|---|---|
| JSON | application/json | images、videos、audios |
| 表单 | multipart/form-data | 只使用可重复的 input_reference |
表单没有 video_reference或audio_reference字段。无论文件类型,均重复使用input_reference。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 是 | Bearer YOUR_API_KEY |
| Content-Type | string | 是 | application/json 或 multipart/form-data |
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | 是 | minimax-h3 或 minimax-h3-max |
| prompt | string | 是 | 视频生成提示词 |
| images | string[] | 否 | 图片 URL 或完整 Base64 data URI |
| videos | string[] | 否 | 可公网访问的视频文件直链 |
| audios | string[] | 否 | 可公网访问的音频文件直链 |
| aspect_ratio | string | 否 | 支持 16:9、9:16、1:1、4:3、3:4、21:9 |
| resolution | string | 否 | 输出分辨率,例如 720p、1080p;可用值以服务端配置为准 |
| seconds | string | 是 | 输出时长,字符串形式,支持 "4"~"15" |
{
"images": [
"https://example.com/ref.png"
],
"videos": [
"https://example.com/ref.mp4"
],
"audios": [
"https://example.com/ref.mp3"
]
}"https://example.com/ref.png",不要填写 Markdown 形式的 [https://...](https://...)。| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | 是 | minimax-h3 或 minimax-h3-max |
| prompt | string | 是 | 视频生成提示词 |
| input_reference | 可重复字段 | 否 | 图片、视频、音频文件或 URL;每项重复传一次 |
| aspect_ratio | string | 否 | 视频宽高比 |
| resolution | string | 否 | 输出分辨率,可用值以服务端配置为准 |
| seconds | string | 是 | 输出时长,支持 4~15 |
input_reference 的传法| 方式 | 示例 |
|---|---|
| 本地图片 | -F "input_reference=@/path/to/ref.png" |
| 本地视频 | -F "input_reference=@/path/to/ref.mp4" |
| 本地音频 | -F "input_reference=@/path/to/ref.mp3" |
| 公网直链 | -F "input_reference=https://example.com/ref.png" |
input_reference)url 和 video_url,两者值相同。| 参数名 | 类型 | 说明 |
|---|---|---|
| id | string | 任务 ID |
| object | string | 固定值 video |
| model | string | 实际使用的模型名称 |
| status | string | queued、in_progress、completed、failed |
| progress | number | 任务进度,0~100 |
| created_at | number | 创建时间戳(秒) |
| completed_at | number | 完成时间戳(秒,仅完成态) |
| url | string | 视频直链(仅完成态) |
| video_url | string | 与 url 同值(仅完成态) |
| error | object | 失败信息,通常包含 code、message |
{
"id": "task_xxxxxxxxxxxxx",
"object": "video",
"model": "minimax-h3",
"status": "queued",
"progress": 0,
"created_at": 1791320000
}{
"id": "task_xxxxxxxxxxxxx",
"object": "video",
"model": "minimax-h3",
"status": "completed",
"progress": 100,
"created_at": 1791320000,
"completed_at": 1791320060,
"url": "https://example.com/output.mp4",
"video_url": "https://example.com/output.mp4"
}{
"id": "task_xxxxxxxxxxxxx",
"object": "video",
"model": "minimax-h3",
"status": "failed",
"progress": 0,
"created_at": 1791320000,
"error": {
"code": "invalid_request",
"message": "请求参数不符合模型能力限制"
}
}GET /v1/videos/{task_id}queued / in_progress 时继续轮询;completed 时读取顶层 url 或 video_url;failed 时读取 error.message。minimax-h3 和 minimax-h3-max 的 seconds 都必须使用字符串,支持 "4"~"15"。images、videos、audios;表单只有可重复的 input_reference。prompt 中明确每项素材的编号和用途。resolution,使用模型默认值。