图生视频生成
接口:POST /minimax/v1/video_generation 归属:视频模型/MiniMax视频模型 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/minimax/v1/video_generation:
post:
summary: 图生视频生成
description: ''
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、I2V-01-Director、I2V-01-live、I2V-01。"
prompt:
type: string
description: "成片文案,最长 2000 字。MiniMax-Hailuo-02 与 I2V-01-Director 可用 [指令] 做镜头调度:把指令写进 prompt 即可精确控制运镜。共 15 条:左右移 [左移]/[右移];左右摇 [左摇]/[右摇];推拉 [推进]/[拉远];升降 [上升]/[下降];上下摇 [上摇]/[下摇];变焦 [变焦推近]/[变焦拉远];其他 [晃动]、[跟随]、[固定]。用法:同一组 [] 里的多条指令同时生效(例:[左摇,上升],建议最多 3 条);前后出现的指令按顺序依次生效;自然语言也能描述运镜,但标准指令更准。"
duration:
type: integer
resolution:
type: string
enum:
- 768P
- 1080P
first_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
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: []