跳转到主要内容
POST
/
v1
/
videos
/
generations
Hailuo 2.3 接口
curl --request POST \
  --url https://api.evolink.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "MiniMax-Hailuo-2.3",
  "prompt": "A beautiful sunset over the ocean [Static shot]"
}
'
{
  "created": 1757169743,
  "id": "task-unified-1757169743-7cvnl5zw",
  "model": "MiniMax-Hailuo-2.3",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending"
}

授权

Authorization
string
header
必填

所有接口均需要使用Bearer Token进行认证

获取 API Key:

访问 API Key 管理页面 获取您的 API Key

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
string
默认值:MiniMax-Hailuo-2.3
必填

视频生成模型名称

示例:

"MiniMax-Hailuo-2.3"

prompt
string
必填

描述视频内容和镜头运动的提示词。T2V模式必填,I2V模式可选。限制2000字符

支持15种镜头指令:

  • 横移:[Truck left][Truck right]
  • 摇摄:[Pan left][Pan right]
  • 推拉:[Push in][Pull out]
  • 升降:[Pedestal up][Pedestal down]
  • 俯仰:[Tilt up][Tilt down]
  • 变焦:[Zoom in][Zoom out]
  • 特殊:[Shake]
  • 跟随:[Tracking shot]
  • 静态:[Static shot]

使用规则:

  • 组合运动:多个指令放在同一个 [] 中同时生效,如 [Pan left,Pedestal up],建议最多3个
  • 顺序运动:按文字顺序依次执行,如 ...slowly [Push in], then quickly [Pull out]
Maximum string length: 2000
示例:

"A beautiful sunset over the ocean [Static shot]"

image_urls
string<uri>[]

I2V模式的参考图像URL,可选

模式检测:

  • 0张图片 = T2V(文生视频)
  • 1张图片 = I2V(图生视频)

要求:

  • 图像大小:不超过20MB
  • 支持格式:JPG、JPEG、PNG、WebP
  • 宽高比:2:5 到 5:2
  • 短边 > 300px
Maximum array length: 1
示例:
["https://example.com/image.jpg"]
quality
enum<string>
默认值:768p

视频分辨率

各模式支持的分辨率:

  • I2V模式:768p、1080p
  • T2V模式:768p、1080p

时长与分辨率组合:

  • 768p:支持6秒、10秒
  • 1080p:仅支持6秒
可用选项:
768p,
1080p
示例:

"768p"

duration
enum<integer>
默认值:6

视频时长(秒)

  • 6秒(默认)
  • 10秒(1080p不可用)
可用选项:
6,
10
示例:

10

model_params
object

模型特定参数

响应

视频生成任务创建成功

created
integer

任务创建时间戳

示例:

1757169743

id
string

任务ID

示例:

"task-unified-1757169743-7cvnl5zw"

model
string

实际使用的模型名称

示例:

"MiniMax-Hailuo-2.3"

object
enum<string>

任务类型

可用选项:
video.generation.task
progress
integer

任务进度百分比 (0-100)

必填范围: 0 <= x <= 100
示例:

0

status
enum<string>

任务状态

可用选项:
pending,
processing,
completed,
failed
示例:

"pending"