跳转到主要内容
POST
/
v1
/
videos
Hailuo 首尾帧图生视频
curl --request POST \
  --url https://api.powertokens.ai/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "MiniMax-Hailuo-02",
  "images": [
    "https://example.com/assets/frame-start.png",
    "https://example.com/assets/frame-end.png"
  ],
  "prompt": "The child grows up naturally.",
  "seconds": "6",
  "size": "1080P"
}
'
{
  "id": "<string>",
  "task_id": "<string>",
  "object": "video",
  "model": "<string>",
  "status": "queued",
  "progress": 0,
  "created_at": 123
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
model
enum<string>
必填

当前能力使用的模型名称。

可用选项:
MiniMax-Hailuo-02
images
string[]
必填

首尾帧图片数组,顺序固定为 [首帧, 尾帧]

Required array length: 2 elements
prompt
string

可选的视频提示词。

seconds
string

目标视频时长,单位秒。

size
string

目标输出规格或分辨率。具体可选值以当前模型支持范围为准。

响应

提交成功,返回统一 OpenAI 风格视频任务对象。

id
string
task_id
string
object
string
示例:

"video"

model
string
status
string
示例:

"queued"

progress
integer
示例:

0

created_at
integer<int64>