Skip to content

首尾帧生成视频

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /minimax/v1/video_generation:
    post:
      summary: 首尾帧生成视频
      deprecated: false
      description: ''
      tags:
        - 海螺 Minimax 平台
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: 模型名称。仅支持 MiniMax-Hailuo-02(注意:首尾帧生成功能不支持 512P 分辨率)
                last_frame_image:
                  type: string
                  description: >-
                    视频的结束帧图片。支持公网 URL 或 Base64 编码的 Data
                    URL(data:image/jpeg;base64,...)。格式:JPG/JPEG/PNG/WebP,体积 <
                    20MB,短边 > 300px,长宽比 2:5 至 5:2 之间
                first_frame_image:
                  type: string
                  description: >-
                    视频的起始帧图片。支持公网 URL 或 Base64 编码的 Data URL。格式要求同
                    last_frame_image。⚠️ 生成视频尺寸遵循首帧图片,首尾帧尺寸不一致时会按首帧裁剪尾帧
                prompt:
                  type: string
                  description: 视频的文本描述,最大 2000 字符。
                duration:
                  type: integer
                  description: 视频时长(秒)。可用值:6 或 10(10秒仅支持 768P)
                resolution:
                  type: string
                  description: 视频分辨率。可选值:768P(默认,支持 6s/10s), 1080P(仅支持 6s
                prompt_optimizer:
                  type: boolean
                  description: 是否自动优化 prompt。设为 false 可进行更精确的控制
                callback_url:
                  type: string
                  description: 接收任务状态更新通知的回调 URL。配置后会收到任务状态变更的异步通知
                aigc_watermark:
                  type: boolean
                  description: 是否在生成的视频中添加 AIGC 水印
              required:
                - model
                - last_frame_image
                - first_frame_image
                - prompt
                - duration
                - resolution
                - prompt_optimizer
                - callback_url
                - aigc_watermark
              x-apifox-orders:
                - model
                - last_frame_image
                - first_frame_image
                - prompt
                - duration
                - resolution
                - prompt_optimizer
                - callback_url
                - aigc_watermark
            example:
              model: MiniMax-Hailuo-02
              last_frame_image: >-
                https://filecdn.minimax.chat/public/97b7cd08-764e-4b8b-a7bf-87a0bd898575.jpeg
              first_frame_image: >-
                https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg
              prompt: A little girl grow up [推进].
              duration: 6
              resolution: 1080P
              prompt_optimizer: true
              callback_url: https://your-domain.com/api/video/callback
              aigc_watermark: false
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  task_id:
                    type: string
                  base_resp:
                    type: object
                    properties:
                      status_code:
                        type: integer
                      status_msg:
                        type: string
                    required:
                      - status_code
                      - status_msg
                    x-apifox-orders:
                      - status_code
                      - status_msg
                required:
                  - task_id
                  - base_resp
                x-apifox-orders:
                  - task_id
                  - base_resp
              example:
                task_id: '106916112212032'
                base_resp:
                  status_code: 0
                  status_msg: success
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 海螺 Minimax 平台
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-414215435-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

AnyAPI — 专业的 AI 接口聚合服务