Characters
Create a character
Create a character, to keep the same look across scenes and videos.
POST
https://api.sangtao.ai/v2/charactersAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Body
namestringrequiredUp to 100 characters
appearanceDescriptionstringUp to 1,000 characters
biographystringUp to 2,000 characters
aliasesstringUp to 200 characters
Response
The Character just created, with no images yet. Add images with the two reference image endpoints: Upload a reference image, or Add an image from a link.
Errors
| Status | errorCode | When |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid data — name missing, or a field over its limit |
An error has success: false, errorCode as above, and error is a sentence saying what went wrong.
POST
/characterscurl -X POST "https://api.sangtao.ai/v2/characters" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Mèo Mướp",
"appearanceDescription": "orange tabby cat, chubby body",
"aliases": "Mướp, Bé Mướp"
}'{
"success": true,
"data": {
"id": "ch_3kT9qPz0B",
"name": "Mèo Mướp",
"appearanceDescription": "orange tabby cat, chubby body",
"biography": null,
"aliases": "Mướp, Bé Mướp",
"publishStatus": null,
"createdAt": "2026-11-08T09:12:44Z",
"updatedAt": "2026-11-08T09:12:44Z",
"refImages": []
}
}POST
/characterscurl -X POST "https://api.sangtao.ai/v2/characters" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Mèo Mướp",
"appearanceDescription": "orange tabby cat, chubby body",
"aliases": "Mướp, Bé Mướp"
}'{
"success": true,
"data": {
"id": "ch_3kT9qPz0B",
"name": "Mèo Mướp",
"appearanceDescription": "orange tabby cat, chubby body",
"biography": null,
"aliases": "Mướp, Bé Mướp",
"publishStatus": null,
"createdAt": "2026-11-08T09:12:44Z",
"updatedAt": "2026-11-08T09:12:44Z",
"refImages": []
}
}