Skip to content

首尾帧视频

POST https://az.gptplus5.com/minimax/v1/video_generation

官方文档:https://www.minimax.io/platform/document/Model%3Fkey=684261f14c5738213294faa7?key=66d1439376e52fcee2853049&document=video_generation

请求参数

Authorization

在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token

示例:Authorization: Bearer ********************

Header 参数

参数名类型必需说明示例
Content-Typestring必需application/json
Acceptstring必需application/json
Authorizationstring必需Bearer {{YOUR_API_KEY}}

Body 参数 (application/json)

参数名类型必需说明
modelstring必需模型名 传 MiniMax-Hailuo-02
promptstring必需
durationinteger必需视频时长 支持6 ,10

请求示例

json
{
    "model": "MiniMax-Hailuo-02",
    "prompt": "一只小猪在高速公路上快乐的奔跑",
    "duration": 10,
    "first_frame_image": "https://wx4.sinaimg.cn/mw690/8545bf24ly1hq626p2k5aj20j60j7t9t.jpg",
    "last_frame_image": "https://inews.gtimg.com/om_bt/OBcldFgmIx8oKc7VlrEnHqso_pEEeyfa9Va0gHrQR7NBcAA/641",
    "resolution": "768P",
    "prompt_optimizer ": true
}

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,
    "first_frame_image": "https://wx4.sinaimg.cn/mw690/8545bf24ly1hq626p2k5aj20j60j7t9t.jpg",
    "last_frame_image": "https://inews.gtimg.com/om_bt/OBcldFgmIx8oKc7VlrEnHqso_pEEeyfa9Va0gHrQR7NBcAA/641",
    "resolution": "768P",
    "prompt_optimizer ": true
}'

返回响应

🟢200成功

响应 Body

参数名类型必需说明
codeinteger必需
messagestring必需
request_idstring必需
dataobject必需
  └ task_idstring必需
  └ task_statusstring必需
  └ created_atinteger必需
  └ updated_atinteger必需

响应示例

json
{
    "task_id": "306792606023824",
    "base_resp": {
        "status_code": 0,
        "status_msg": "success"
    }
}