Skip to content

扩展视频

POST https://az.gptplus5.com/v1/video/extend

请求参数

Authorization

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

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

Body 参数 (application/json)

参数名类型必需说明
modelstring必需模型名字 如:grok-video-3
promptstring必需
task_idstring必需
aspect_ratiostring可选可选为 2:3, 3:2, 1:1,按照需要扩展视频的尺寸来
sizestring可选720P或者1080P
start_timeinteger必需
upscaleboolean可选

请求示例

json
{
    "model": "grok-video-3",
    "prompt": "play with another white cat",
    "task_id": "grok:7fd641dc-437f-44c3-97a2-e3778e0e10fb",
    "size": "1080p",
    "start_time": 3,
    "upscale": false
}

cURL 示例

bash
curl --location --request POST 'https://az.gptplus5.com/v1/video/extend' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "grok-video-3",
    "prompt": "play with another white cat",
    "task_id": "grok:7fd641dc-437f-44c3-97a2-e3778e0e10fb",
    "size": "1080p",
    "start_time": 3,
    "upscale": false
}'

返回响应

🟢200成功

响应示例

json
{}