注册

扩展视频

POST https://api.quickrouter.ai/v1/video/extend 在线调试 →
Authorization

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

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

请求参数

Header 参数
Content-Type string
必需
示例: application/json
Authorization string
必需
示例: Bearer {{YOUR_API_KEY}}
Body 参数 application/json
model string
必需
模型名字 如:grok-video-3
prompt string
必需
提示词
task_id string
必需
扩展视频任务ID
aspect_ratio string
可选
可选为 2:3, 3:2, 1:1,按照需要扩展视频的尺寸来
size string
可选
720P或者1080P
start_time integer
必需
开始时间
upscale boolean
可选
示例
{
    "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 --location --request POST 'https://api.quickrouter.ai/v1/video/extend' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--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
}'
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer YOUR_API_KEY");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "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
});

var requestOptions = {
   method: 'POST',
   headers: myHeaders,
   body: raw,
   redirect: 'follow'
};

fetch("https://api.quickrouter.ai/v1/video/extend", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
import http.client
import json

conn = http.client.HTTPSConnection("api.quickrouter.ai")
payload = json.dumps({
  "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
})
headers = {
   'Accept': 'application/json',
   'Authorization': 'Bearer YOUR_API_KEY',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1/video/extend", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

返回响应

响应参数 🟢 200 OK · application/json
object
可选
{}
示例
{}