注册

Sora OpenAI 编辑

POST https://api.quickrouter.ai/v1/videos/{id}/remix 在线调试 →
Authorization

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

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

请求参数

Path 参数
id string
必需
示例: video_099c5197-abfd-4e16-88ff-1e162f2a5c77
Header 参数
Content-Type string
必需
示例: application/json
Body 参数 application/json
prompt string
必需
{ "prompt": "画面更精细一些", "size": "1280x720" } 请求
示例
{
    "prompt": "画面更精细一些",
    "size": "1280x720"
}

请求示例代码

curl --location --request POST 'https://api.quickrouter.ai/v1/videos/{id}/remix' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "画面更精细一些",
  "size": "1280x720"
}'
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({
  "prompt": "画面更精细一些",
  "size": "1280x720"
});

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

fetch("https://api.quickrouter.ai/v1/videos/{id}/remix", 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({
  "prompt": "画面更精细一些",
  "size": "1280x720"
})
headers = {
   'Accept': 'application/json',
   'Authorization': 'Bearer YOUR_API_KEY',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1/videos/{id}/remix", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

返回响应

响应参数 🟢 200 OK · application/json
error object
必需
message string
必需
message_zh string
必需
type string
必需
{ "id": "video_8a60610c-3a5e-4ca8-be05-405f0dc635d0", "object": "video", "model": "sora_video2", "status": "queued", "progress": 0, "created_at": 1766374127, "seconds": "10", "size": "1280x720", "remixed_from_video_id": "e3215864-dd3c-49b1-8475-e4669b6d5c33", "detail": {} }
示例
{
    "id": "video_8a60610c-3a5e-4ca8-be05-405f0dc635d0",
    "object": "video",
    "model": "sora_video2",
    "status": "queued",
    "progress": 0,
    "created_at": 1766374127,
    "seconds": "10",
    "size": "1280x720",
    "remixed_from_video_id": "e3215864-dd3c-49b1-8475-e4669b6d5c33",
    "detail": {}
}