众扬汇 AI 开放平台 API 文档

首尾帧视频生成

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: "本页接口说明详见下方接口定义;参数取值与返回以本平台实测为准。"
  version: 1.0.0
paths:
  /minimax/v1/video_generation:
    post:
      summary: 首尾帧视频生成
      deprecated: false
      description: "MiniMax-Hailuo-02 模型的首尾帧视频生成能力:新增 last_frame_image 参数,配合 first_frame_image 控制视频的起始与结束画面。支持分辨率与时长:768P(6s、10s)、1080P(6s)。"
      tags:
        - 视频模型/MiniMax视频模型
      parameters:
        - name: Authorization
          in: header
          description: "该字段的取值与含义以本平台实际返回为准。"
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
            default: Bearer {{YOUR_API_KEY}}
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: "可用取值:MiniMax-Hailuo-02"
                prompt:
                  type: string
                duration:
                  type: integer
                resolution:
                  type: string
                  enum:
                    - 768P
                    - 1080P
                first_frame_image:
                  type: string
                  description: "将指定图片作为视频的起始帧,支持公网 URL 或 Base64 编码的 Data URL(data:image/jpeg;base64,...)。"
                last_frame_image:
                  type: string
                  description: "将指定图片作为视频的结束帧,支持公网 URL 或 Base64 编码的 Data URL(data:image/jpeg;base64,...)。"
                'prompt_optimizer ':
                  type: boolean
                  description: "是否自动优化 prompt,默认 true;设为 false 可进行更精确的控制。"
              required:
                - model
                - prompt
                - first_frame_image
                - last_frame_image
            examples: {}
      responses:
        '200':
          description: "该字段的取值与含义以本平台实际返回为准。"
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                required:
                  - id
              example:
                task_id: '106916112212032'
                base_resp:
                  status_code: 0
                  status_msg: success
          headers: {}
      security: []
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

使用提示:本页接口的 Base URL 为 https://api.allyang.cn,请求头需携带 Authorization: Bearer <令牌>(令牌在控制台「令牌管理」中创建)。示例中的任务 ID、时间戳与文件地址均为示意值,实际以平台返回为准。

模型名请在「模型广场」复制后填入,不要手输;计费、限流与在售清单以平台实测为准(部分数值待补)。