主题
扩展视频
POST
https://az.gptplus5.com/v1/video/extend
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
model | string | 必需 | 模型名字 如:grok-video-3 |
prompt | string | 必需 | |
task_id | string | 必需 | |
aspect_ratio | string | 可选 | 可选为 2:3, 3:2, 1:1,按照需要扩展视频的尺寸来 |
size | string | 可选 | 720P或者1080P |
start_time | integer | 必需 | |
upscale | boolean | 可选 |
请求示例
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
{}