跳转到主要内容
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-2.3",
  "image": "https://example.com/assets/first-frame.png",
  "prompt": "The girl looks at the camera and smiles.",
  "seconds": "6",
  "size": "720P"
}
'
{
  "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-2.3,
MiniMax-Hailuo-2.3-Fast,
MiniMax-Hailuo-02
image
string
必填

首帧图片 URL 或 Data URL。

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>