Seedance
啟用真人驗證
為 pending 的形象素材群組啟用簽名真人驗證工作階段。
POST
/
api
/
asset
/
groups
/
{id}
/
liveness
cURL
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"import requests
response = requests.post(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
{ method: "POST" },
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/asset/groups/{id}/liveness",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/api/asset/groups/{id}/liveness"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/api/asset/groups/{id}/liveness")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}/liveness")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}啟用等待中的
回應包含
real 群組之驗證工作階段。使用群組 liveness.platform_wrapper_url 中的 expires 和 signature 查詢值。此端點使用已簽名 URL 控制存取,因此不需要存取權杖。
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"
data.session_ref。驗證頁面會使用此值開啟驗證服務。請勿將工作階段參照儲存或再次用作群組 ID。
如果簽名無效或已過期,端點會回傳 HTTP 403。端點只接受等待中的真人群組。真人完成驗證後,使用取得形象素材群組或取得驗證狀態,直到群組變為 active。查詢參數
最後修改於 2026年12月1日
⌘I
cURL
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"import requests
response = requests.post(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
{ method: "POST" },
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/asset/groups/{id}/liveness",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/api/asset/groups/{id}/liveness"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/api/asset/groups/{id}/liveness")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}/liveness")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}