注册

人脸识别

⚠️ 测试中

POST https://api.quickrouter.ai/kling/v1/videos/identify-face 在线调试 →
Authorization

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

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

请求参数

Header 参数
Content-Type string
可选
示例: application/json
Authorization string
可选
示例: Bearer {{YOUR_API_KEY}}
Body 参数 application/json
video_id string
可选
通过可灵AI生成的视频的ID;用于指定视频、判断视频是否可用于对口型服务;与video_url参数二选一填写,不能同时为空,也不能同时有值;仅支持使用30天内生成的时长不超过60秒的视频
video_url string
可选
所上传视频的获取URL;用于指定视频,并判断视频是否可用于对口型服务;与video_id参数二选一填写,不能同时为空,也不能同时有值;视频文件支持.mp4/.mov,文件大小不超过100MB,视频时长不超过60s且不短于2s,仅支持720p和1080p、长宽的边长均位于512px~2160px之间,上述校验不通过会返回错误码等信息
示例
{
    "video_id": "827297867148050499",
    "video_url": ""
}

请求示例代码

curl --location --request POST 'https://api.quickrouter.ai/kling/v1/videos/identify-face' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{
    "video_id": "827297867148050499",
    "video_url": ""
}'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_API_KEY");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "video_id": "827297867148050499",
  "video_url": ""
});

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

fetch("https://api.quickrouter.ai/kling/v1/videos/identify-face", 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({
  "video_id": "827297867148050499",
  "video_url": ""
})
headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
}
conn.request("POST", "/kling/v1/videos/identify-face", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

返回响应

响应参数 application/json
object string
可选
示例
{}