Characters
Delete a character
Delete a character and its reference images.
DELETE
https://api.sangtao.ai/v2/characters/{id}Authorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
Deletes the character and its reference images. Videos already made are not affected. A Video Studio project that still uses this character treats it as not there.
Response
data is { "deleted": true }.
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | CHARACTER_NOT_FOUND | No such character, or it is not yours |
An error has success: false, errorCode as above, and error is a sentence saying what went wrong.
DELETE
/characters/{id}curl -X DELETE "https://api.sangtao.ai/v2/characters/ch_3kT9qPz0B" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"deleted": true
}
}DELETE
/characters/{id}curl -X DELETE "https://api.sangtao.ai/v2/characters/ch_3kT9qPz0B" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"deleted": true
}
}