主题
提交视频生成任务
POST
https://az.gptplus5.com/minimax/v1/video_generation
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Content-Type | string | 必需 | application/json | |
Accept | string | 必需 | application/json | |
Authorization | string | 必需 | Bearer {{YOUR_API_KEY}} |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
model | string | 必需 | 模型名 传 MiniMax-Hailuo-02 |
prompt | string | 必需 | |
duration | integer | 必需 | 视频时长 支持6 ,10 |
请求示例
json
{
"model": "MiniMax-Hailuo-02",
"prompt": "一只小猪在高速公路上快乐的奔跑",
"duration": 10
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/minimax/v1/video_generation' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "MiniMax-Hailuo-02",
"prompt": "一只小猪在高速公路上快乐的奔跑",
"duration": 10
}'返回响应
🟢200成功
响应 Body
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
code | integer | 必需 | |
message | string | 必需 | |
request_id | string | 必需 | |
data | object | 必需 | |
└ task_id | string | 必需 | |
└ task_status | string | 必需 | |
└ created_at | integer | 必需 | |
└ updated_at | integer | 必需 |
响应示例
json
{
"task_id": "306792606023824",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}