注册

Sora 角色创建 - QuickRouter API 中转接口

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

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

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

请求参数

Header 参数
Content-Type string
必需
示例: application/json
Body 参数 application/json
images array[string]
可选
model string
必需
orientation
可选
enum<string> 可选 枚举值:
portrait
可选
竖屏
landscape
可选
横屏
prompt string
必需
duration
可选
enum<integer> 时长 可选 枚举值: 10 sora-2,sora-2-pro 可用 15 sora-2,sora-2-pro 可用 25 sora-2-pro可用
character_url string
可选
创建角色需要的视频链接,注意视频中一定不能出现真人,否则会失败
character_timestamps string
可选
视频角色出现的秒数范围,格式 {start},{end}, 注意 end-start 的范围 1-3秒
size
可选
enum<string> 必需 枚举值:
large
可选
高清
small
可选
一般 { "images": [], "model": "sora-2", "orientation": "portrait", "prompt": "make animate", "duration": 15, "character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4", "character_timestamps": "1,3", "size": "large" } 请求
示例
{
    "images": [],
    "model": "sora-2",
    "orientation": "portrait",
    "prompt": "make animate",
    "duration": 15,
    "character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4",
    "character_timestamps": "1,3",
    "size": "large"
}

请求示例代码

curl --location --request POST 'https://api.quickrouter.ai/v1/video/create' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "images": [],
  "model": "sora-2",
  "orientation": "portrait",
  "prompt": "make animate",
  "duration": 15,
  "character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4",
  "character_timestamps": "1,3",
  "size": "large"
}'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_API_KEY");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
   "images": [],
   "model": "sora-2",
   "orientation": "portrait",
   "prompt": "make animate",
   "duration": 15,
   "character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4",
   "character_timestamps": "1,3",
   "size": "large"
});

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

fetch("https://api.quickrouter.ai/v1/video/create", 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({
   "images": [],
   "model": "sora-2",
   "orientation": "portrait",
   "prompt": "make animate",
   "duration": 15,
   "character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4",
   "character_timestamps": "1,3",
   "size": "large"
})
headers = {
   'Authorization': 'Bearer YOUR_API_KEY',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1/video/create", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

返回响应

响应参数 🟢 200 OK · application/json
object
可选
{ "id": "sora-2:task_01k900ag82ecgbewj2xa3758z0", "status": "pending", "status_update_time": 1762010677921 }
示例
{
    "id": "sora-2:task_01k900ag82ecgbewj2xa3758z0",
    "status": "pending",
    "status_update_time": 1762010677921
}