> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax H3 Max 参考生视频

> 根据参考图、参考视频和参考音频生成视频。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

## 可选参数

* `enable_safety_checker`：布尔值，默认为 `true`。设为 `false` 可关闭安全检查。
* `callback_url`：可选的 Webhook URL，放在请求根级。不使用回调时请查询任务状态。

## 使用指南

使用 `minimax/h3-max/reference-to-video`。至少提供一张参考图，可选添加参考视频和参考音频，所有列表中的素材总数最多 12 个。按列表顺序以 `Image 1`、`Video 1` 和 `Audio 1` 引用素材。首帧和尾帧不能与参考素材组合使用。

`model` 和可选的 `callback_url` 放在请求根级。生成参数放在 `input` 中。

## 参数详情

* `prompt`：必填的非空字符串，最多 50,000 个字符。
* `duration`：5 到 15 秒的整数；默认为 5。小数时长会被拒绝。
* `resolution`：`480p`、`768p` 或 `1080p`；默认为 `768p`。
* `aspect_ratio`：六种固定比例（`21:9`、`16:9`、`4:3`、`1:1`、`3:4`、`9:16`）或 `adaptive`；默认为 `adaptive`。
* `reference_image_urls`：必填数组，包含 1-9 张静态 JPEG、PNG 或 WebP 图片，每张最大 30 MB。支持的比例为 `1:1`、`4:3`、`3:4`、`16:9`、`9:16`、`5:2` 和 `2:5`；上传前请先校正图片方向。
* `reference_video_urls`：可选数组，最多 3 段 MP4/MOV 视频，每段最大 50 MB。每段必须为 2-15 秒，合计最多 15 秒。视频必须为恒定 24 fps、方形像素、旋转元数据为 0，比例为 `16:9` 或 `9:16`。按请求的输出时长截取帧后，计入的帧数必须为 48、120、240 或 360。其他时长组合会被拒绝。
* `reference_audio_urls`：可选数组，最多 3 段 MP3/WAV 音频，每段最大 15 MB。每段必须为 2-15 秒，且不超过输出时长，合计最多 15 秒。音频必须为 32 kHz 的单声道或立体声，解码后的采样数能被 800 整除。
* 所有参考 URL 都必须是公开的 HTTP(S) 下载链接。三个列表中的素材总数不得超过 12 个。


## OpenAPI

````yaml zh/api-manual/video-series/minimax-h3-max-reference-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - MiniMax H3 Max 参考生视频
  description: 根据参考图、参考视频和参考音频生成视频。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - MiniMax H3 Max Reference to Video
      summary: 提交 MiniMax H3 Max 参考生视频任务
      operationId: submitMinimaxH3MaxReferenceToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              imageReferences:
                summary: 参考图
                value:
                  model: minimax/h3-max/reference-to-video
                  input:
                    prompt: Image 1 walks through a sunlit street
                    reference_image_urls:
                      - https://example.com/subject.jpg
              mixedReferences:
                summary: 混合参考
                value:
                  model: minimax/h3-max/reference-to-video
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      Image 1 follows the movement in Video 1 with the
                      atmosphere of Audio 1
                    duration: 10
                    resolution: 768p
                    reference_image_urls:
                      - https://example.com/subject.jpg
                    reference_video_urls:
                      - https://example.com/motion.mp4
                    reference_audio_urls:
                      - https://example.com/atmosphere.wav
                    aspect_ratio: adaptive
                    enable_safety_checker: false
      responses:
        '200':
          description: 任务提交成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
              example:
                code: 200
                data:
                  task_id: task-unified-1787970600-abcd1234
                  status: not_started
                  created_time: '2026-08-29T10:30:00Z'
        '400':
          description: 请求参数无效
        '401':
          description: 未授权
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: minimax/h3-max/reference-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook 回调 URL。
        input:
          type: object
          required:
            - prompt
            - reference_image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 50000
              description: |-
                描述目标视频的非空提示词。

                必须包含至少一个非空白字符。
            duration:
              type: integer
              minimum: 5
              maximum: 15
              default: 5
              description: 请求的输出时长（秒）。
            resolution:
              type: string
              enum:
                - 480p
                - 768p
                - 1080p
              default: 768p
              description: 输出分辨率。
            enable_safety_checker:
              type: boolean
              default: true
              description: 设为 false 可关闭安全检查。
            aspect_ratio:
              type: string
              enum:
                - '21:9'
                - '16:9'
                - '4:3'
                - '1:1'
                - '3:4'
                - '9:16'
                - adaptive
              default: adaptive
            reference_image_urls:
              type: array
              minItems: 1
              maxItems: 9
              items:
                type: string
                format: uri
                description: 公开可访问的 HTTP(S) 下载 URL。
              description: >-
                必填的参考图：静态 JPEG/PNG/WebP，每张最大 30
                MB。支持的比例：1:1、4:3、3:4、16:9、9:16、5:2、2:5。上传前请先校正方向。
            reference_video_urls:
              type: array
              maxItems: 3
              items:
                type: string
                format: uri
                description: 公开可访问的 HTTP(S) 下载 URL。
              description: >-
                MP4/MOV，每个最大 50 MB，每段 2–15 秒，合计最多 15 秒。恒定 24 fps、方形像素、无旋转、16:9 或
                9:16。按输出时长截取后，计入的帧数必须为 48、120、240 或 360。
            reference_audio_urls:
              type: array
              maxItems: 3
              items:
                type: string
                format: uri
                description: 公开可访问的 HTTP(S) 下载 URL。
              description: >-
                MP3/WAV，每个最大 15 MB，每段 2–15 秒，合计最多 15 秒。单声道/立体声，32
                kHz，解码后的采样数必须能被 800 整除。每段不得超过输出时长。
          description: 参考素材总数最多 12 个。参考视频和参考音频需要至少一张参考图。
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
            status:
              type: string
              enum:
                - not_started
                - running
                - failed
            created_time:
              type: string
              format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.