MiniMax-H3 创建任务
创建一个异步的 MiniMax-H3 视频生成任务。接口返回任务 ID,之后可通过查询接口获取任务状态和视频结果。
请求地址
| 项目 | 值 |
|---|---|
| 请求方法 | POST |
| Base URL | https://api.unigateway.ai |
| 接口路径 | /v2/video_generation |
| 完整地址 | https://api.unigateway.ai/v2/video_generation |
请求头
| 请求头 | 值 |
|---|---|
Authorization | Bearer <YOUR_UNIGATEWAY_API_KEY> |
Content-Type | application/json |
请求体示例
{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "A red toy car moves slowly across a white tabletop, fixed camera, continuous shot."
}
],
"resolution": "2K",
"duration": 4,
"ratio": "16:9"
}
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
model | string | 模型 ID,使用 MiniMax-H3。 |
content | array | 视频生成的输入内容。示例使用文本提示词。 |
content[].type | string | 内容类型,文本提示词使用 text。 |
content[].text | string | 描述待生成视频内容的文本提示词。 |
resolution | string | 请求输出的分辨率,示例为 2K。 |
duration | number | 请求生成的视频时长,单位为秒,示例为 4。 |
ratio | string | 请求输出的画面比例,示例为 16:9。 |
示例值不代表全部可选值或支持的参数组合。
成功响应
{
"task_id": "PUBLIC_TASK_ID"
}
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
task_id | string | 已创建的任务 ID,用于查询任务状态和生成结果。 |
后续操作
保存 task_id,使用以下地址查询任务:
GET https://api.unigateway.ai/v2/query/video_generation/{task_id}
将 {task_id} 替换为创建接口返回的实际值。创建成功表示任务已受理,不表示视频已经生成完成。