Seedance
Eine Zeichen-Asset-Gruppe erstellen
Erstellen Sie eine CometAPI-Zeichen-Asset-Gruppe für Seedance-Referenzen. Virtuelle Gruppen werden sofort aktiv. Gruppen für echte Personen erfordern eine Lebenderkennung.
POST
/
api
/
asset
/
groups
cURL
curl https://api.cometapi.com/api/asset/groups \
-H "Authorization: $COMETAPI_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"my-character","type":"virtual"}'import os
import requests
response = requests.post(
"https://api.cometapi.com/api/asset/groups",
headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
json={"name": "my-character", "type": "virtual"},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.cometapi.com/api/asset/groups", {
method: "POST",
headers: {
Authorization: process.env.COMETAPI_ACCESS_TOKEN,
"Content-Type": "application/json",
},
body: JSON.stringify({ name: "my-character", type: "virtual" }),
});
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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'my-character',
'type' => 'virtual'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/api/asset/groups"
payload := strings.NewReader("{\n \"name\": \"my-character\",\n \"type\": \"virtual\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/api/asset/groups")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"my-character\",\n \"type\": \"virtual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"my-character\",\n \"type\": \"virtual\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {
"id": "ag-example",
"name": "my-character",
"group_type": "virtual",
"status": "active",
"created_at": 1777385418
}
}Erstellen Sie vor dem Hochladen eines Zeichenbilds eine Gruppe. Senden Sie das rohe Access-Token im Header
Die Antwort enthält die CometAPI-Gruppen-ID in
Für eine Gruppe einer echten Person fahren Sie mit Eine Zeichen-Asset-Gruppe abrufen und Echtpersonenprüfung aktivieren fort. Für eine virtuelle Gruppe fahren Sie mit Ein Zeichen-Asset hochladen fort.
Authorization ohne Präfix Bearer.
curl \
https://api.cometapi.com/api/asset/groups \
-H "Authorization: $COMETAPI_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "my-character",
"type": "virtual"
}'
Anfragefelder
| Feld | Typ | Beschreibung |
|---|---|---|
name | string | Gruppenname mit 1 bis 64 Zeichen. |
type | string | Verwenden Sie virtual für eine virtuelle Figur oder real für eine echte Person. |
data.id. Eine virtual-Gruppe gibt data.status=active zurück. Eine real-Gruppe gibt data.status=pending zurück und enthält data.liveness.platform_wrapper_url.
Antwortfelder
| Feld | Beschreibung |
|---|---|
data.id | Gruppen-ID für Upload- und Gruppenendpunkte. |
data.group_type | Der gesendete Gruppentyp. |
data.status | active, pending oder expired. |
data.liveness | Für eine ausstehende Gruppe einer echten Person vorhanden. |
Autorisierungen
Body
application/json
Zuletzt geändert am 1. Dezember 2026
⌘I
cURL
curl https://api.cometapi.com/api/asset/groups \
-H "Authorization: $COMETAPI_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"my-character","type":"virtual"}'import os
import requests
response = requests.post(
"https://api.cometapi.com/api/asset/groups",
headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
json={"name": "my-character", "type": "virtual"},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.cometapi.com/api/asset/groups", {
method: "POST",
headers: {
Authorization: process.env.COMETAPI_ACCESS_TOKEN,
"Content-Type": "application/json",
},
body: JSON.stringify({ name: "my-character", type: "virtual" }),
});
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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'my-character',
'type' => 'virtual'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/api/asset/groups"
payload := strings.NewReader("{\n \"name\": \"my-character\",\n \"type\": \"virtual\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/api/asset/groups")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"my-character\",\n \"type\": \"virtual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"my-character\",\n \"type\": \"virtual\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {
"id": "ag-example",
"name": "my-character",
"group_type": "virtual",
"status": "active",
"created_at": 1777385418
}
}