POST
https://zx1.deepwl.net
/
v1
/
video
/
extend
视频Extend
curl --request POST \
  --url https://zx1.deepwl.net/v1/video/extend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "task_id": "<string>",
  "images": [
    "<string>"
  ],
  "size": "<string>",
  "aspect_ratio": "<string>",
  "start_time": 123,
  "upscale": true
}
'
{
  "id": "grok:48a67431-0708-46d1-9ab9-83cb84700153",
  "status": "processing",
  "status_update_time": 1762685256
}

视频Extend

Grok 统一视频 extend 入口为 POST /v1/video/extend。与 OpenAI 格式的视频Extend 不同,原任务 ID 通过 Body 的 task_id 传入。
  • 路由入口是 POST /v1/video/extend
  • 必填 modelprompttask_id
  • 可通过 start_time 指定从原视频哪一秒开始延展。

方法与路径

POST /v1/video/extend

请求示例

curl -X POST https://zx1.deepwl.net/v1/video/extend \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "model": "grok-video-3",
    "prompt": "play with another white cat",
    "task_id": "grok:2d8ef725-c4a9-46e0-b133-eca6c297e830",
    "start_time": 4,
    "aspect_ratio": "3:2",
    "size": "1080P",
    "upscale": true
  }'

响应示例

{
  "id": "grok:48a67431-0708-46d1-9ab9-83cb84700153",
  "status": "processing",
  "status_update_time": 1762685256
}

认证

Authorization: Bearer YOUR_API_KEY

Body

model
string
必填
模型名称,例如 grok-video-3
prompt
string
必填
延展片段的提示词。
task_id
string
必填
原始视频任务 ID。
images
array<string>
参考图链接列表,按需补充视觉约束。
size
string
分辨率规格,传 720P1080P
aspect_ratio
string
视频比例,例如 3:2
start_time
integer
从原视频的哪一秒开始延展。
upscale
boolean
是否对输出做高清增强。

Response

id
string
新 extend 任务 ID。
status
string
任务状态,常见值包括 processingcompletedfailed
status_update_time
integer
状态最近更新时间(Unix 时间戳)。

相关接口