API ReferenceVideo APIs

MiniMax H3 Max API

MiniMax H3 Max 通过 ReachAPI 异步任务接口生成 5-15 秒、480P 或 768P 视频,支持文本、首帧、首尾帧以及参考图片和视频。

MiniMax H3 是另一个模型,分辨率、时长和价格不同,参见 MiniMax H3。

  • Model ID: minimax-h3-max
  • POST /v1/vids/create
  • GET /v1/tasks/{task_id}

认证

Authorization: Bearer YOUR_REACH_API_KEY
Content-Type: application/json

请求参数

字段取值 / 要求
modelminimax-h3-max (必填)
input.content至少一个非空文本项。
input.resolution480P, 768P (必填)
input.duration_seconds5 到 15 秒之间的整数。
input.aspect_ratio纯文本请求必须指定固定比例:21:9、16:9、4:3、1:1、3:4 或 9:16。

纯文本请求必须指定固定比例;首帧和首尾帧模式始终采用输入图片比例,参考模式可指定生效的固定比例或使用 adaptive 跟随参考素材。

参考素材

多模态参考模式最多接受 9 张参考图片和 3 个参考视频;同一请求不能混用首尾帧与参考素材。

Type角色上限取值 / 要求
image_urlfirst_frame1首帧
image_urllast_frame1尾帧;可以不提供首帧
image_urlreference_image9参考图片
video_urlreference_video3参考视频

素材 URL 必须能被上游公开访问。图片 URL 放在 image_url.url,视频 URL 放在 video_url.url。

提交任务

{
  "model": "minimax-h3-max",
  "input": {
    "content": [
      {
        "type": "text",
        "text": "A paper boat drifts through a rainy street at night"
      }
    ],
    "duration_seconds": 8,
    "resolution": "480P",
    "aspect_ratio": "16:9"
  }
}

参考图片请求

{
  "model": "minimax-h3-max",
  "input": {
    "content": [
      {
        "type": "text",
        "text": "Animate the subject in Image 1"
      },
      {
        "type": "image_url",
        "role": "reference_image",
        "image_url": {
          "url": "https://cdn.example.com/subject.png"
        }
      }
    ],
    "duration_seconds": 8,
    "resolution": "768P",
    "aspect_ratio": "16:9"
  }
}

价格

计费项分辨率价格计费依据
输出视频480P$0.05 / 秒实际输出时长
输出视频768P$0.08 / 秒实际输出时长
输入视频480P$0.0553 / 秒参考视频时长
输入视频768P$0.143 / 秒参考视频时长
输入图片不限$0.074 / 张按张计费

任务成功后根据 MiniMax 返回的实际用量结算。 输入视频按请求的输出分辨率使用对应秒价。

响应与轮询

{
  "code": 200,
  "status": "queued",
  "task_id": "task_xxx",
  "data": []
}

使用返回的任务 ID 轮询 GET /v1/tasks/{task_id},直到 status 为 success 或 failed。成功后从 data[].url 读取输出,从 cost.spend 读取实际美元费用。失败任务包含 error_code。

On this page