Seedance
Récupérer une ressource de personnage
Récupérer une ressource de personnage by ID and read its processing status before using it in a Seedance request.
GET
/
api
/
asset
/
assets
/
{id}
cURL
curl \
https://api.cometapi.com/api/asset/assets/<ASSET_ID> \
-H "Authorization: $COMETAPI_ACCESS_TOKEN"import os
import requests
response = requests.get(
"https://api.cometapi.com/api/asset/assets/<ASSET_ID>",
headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/assets/<ASSET_ID>",
{ headers: { Authorization: process.env.COMETAPI_ACCESS_TOKEN } },
);
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/assets/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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/assets/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cometapi.com/api/asset/assets/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/assets/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}Récupérez une ressource du compte authentifié. Envoyez le jeton d’accès brut dans l’en-tête
Utilisez la ressource dans Créer une vidéo Seedance uniquement après
Authorization, sans préfixe Bearer.
curl \
https://api.cometapi.com/api/asset/assets/<ASSET_ID> \
-H "Authorization: $COMETAPI_ACCESS_TOKEN"
| Champ | Description |
|---|---|
data.id | Asset ID used in asset://<ASSET_ID>. |
data.group_id | Groupe propriétaire de la ressource. |
data.asset_type | image, video, or audio. |
data.status | processing, active, or failed. |
data.fail_reason | Motif nettoyé lorsque le traitement échoue. |
data.status=active. Une ressource inconnue, échouée ou en traitement provoque une erreur de requête vidéo.Autorisations
Dernière modification le 1 décembre 2026
⌘I
cURL
curl \
https://api.cometapi.com/api/asset/assets/<ASSET_ID> \
-H "Authorization: $COMETAPI_ACCESS_TOKEN"import os
import requests
response = requests.get(
"https://api.cometapi.com/api/asset/assets/<ASSET_ID>",
headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/assets/<ASSET_ID>",
{ headers: { Authorization: process.env.COMETAPI_ACCESS_TOKEN } },
);
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/assets/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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/assets/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cometapi.com/api/asset/assets/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/assets/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}