虚拟人像素材
创建虚拟人像组
创建虚拟人像素材组。请求体只有 name(必填)和 description(可选)。火山方舟 CreateAssetGroup 没有 avatarType,GroupType 选填且默认 AIGC。本接口不接收 GroupType 和 avatarType。返回的 avatarType 固定为 Virtual。真人认证是另一组接口,只传 callbackUrl。
POST
/
api
/
ai
/
volcengine
/
assets
/
groups
创建虚拟人像组
curl --request POST \
--url https://aitoearn.cn/api/ai/volcengine/assets/groups \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "product-avatar"
}
'import requests
url = "https://aitoearn.cn/api/ai/volcengine/assets/groups"
payload = { "name": "product-avatar" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'product-avatar'})
};
fetch('https://aitoearn.cn/api/ai/volcengine/assets/groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/volcengine/assets/groups"
payload := strings.NewReader("{\n \"name\": \"product-avatar\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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": "product-avatar",
"avatarType": "Virtual",
"createdAt": "2026-07-02T12:00:00.000Z",
"updatedAt": "2026-07-02T12:00:00.000Z",
"description": "string"
}
}授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
Hide child attributes
Hide child attributes
⌘I
创建虚拟人像组
curl --request POST \
--url https://aitoearn.cn/api/ai/volcengine/assets/groups \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "product-avatar"
}
'import requests
url = "https://aitoearn.cn/api/ai/volcengine/assets/groups"
payload = { "name": "product-avatar" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'product-avatar'})
};
fetch('https://aitoearn.cn/api/ai/volcengine/assets/groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/volcengine/assets/groups"
payload := strings.NewReader("{\n \"name\": \"product-avatar\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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": "product-avatar",
"avatarType": "Virtual",
"createdAt": "2026-07-02T12:00:00.000Z",
"updatedAt": "2026-07-02T12:00:00.000Z",
"description": "string"
}
}
