AI 服务/真人素材
完成真人认证
查询真人认证结果,并在认证成功后创建 avatarType=RealPerson 的素材组。会话在 AiToEarn 中保留 30 分钟;若返回业务码 12329,表示认证结果尚未就绪,可以稍后重试。
POST
/
api
/
ai
/
volcengine
/
assets
/
visual-validation-sessions
/
{bytedToken}
/
complete
完成真人认证
curl --request POST \
--url https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"groupId": "group_xxx",
"name": "real_person_group",
"avatarType": "RealPerson",
"createdAt": "2026-07-02T12:00:00.000Z",
"updatedAt": "2026-07-02T12:00:00.000Z",
"description": "string"
}
}授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
路径参数
创建真人认证会话时返回的 Token。
响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
Hide child attributes
Hide child attributes
素材组 ID。
示例:
"group_xxx"
素材组名称。
示例:
"real_person_group"
人像类型。Virtual 表示普通素材组,RealPerson 表示真人认证素材组。
可用选项:
Virtual, RealPerson 示例:
"RealPerson"
创建时间。
更新时间。
素材组描述。
请求 ID。
错误响应时间戳,Unix 毫秒。
最后修改于 2026年9月2日
⌘I
完成真人认证
curl --request POST \
--url https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/volcengine/assets/visual-validation-sessions/{bytedToken}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"groupId": "group_xxx",
"name": "real_person_group",
"avatarType": "RealPerson",
"createdAt": "2026-07-02T12:00:00.000Z",
"updatedAt": "2026-07-02T12:00:00.000Z",
"description": "string"
}
}
