User Assets
Storage usage
How many assets and how much storage each category uses, against its limits.
GET
https://api.sangtao.ai/v2/user-assets/usageAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Response
One object per category — video, image, audio, document — each with these fields:
countnumberAssets of this category you have
quotaCountnumberMost assets allowed in this category
usedBytesnumberStorage used, in bytes
quotaBytesnumberStorage allowed, in bytes
Then total, the four added up:
countnumberAssets you have, all categories
usedBytesnumberStorage used, all categories, in bytes
quotaBytesnumberStorage allowed for the four categories added up, in bytes. Limits still apply per category
GET
/user-assets/usagecurl "https://api.sangtao.ai/v2/user-assets/usage" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"video": {
"count": 3,
"quotaCount": 20,
"usedBytes": 150000000,
"quotaBytes": 2147483648
},
"image": {
"count": 12,
"quotaCount": 100,
"usedBytes": 8500000,
"quotaBytes": 524288000
},
"audio": {
"count": 2,
"quotaCount": 30,
"usedBytes": 25000000,
"quotaBytes": 524288000
},
"document": {
"count": 0,
"quotaCount": 20,
"usedBytes": 0,
"quotaBytes": 209715200
},
"total": {
"usedBytes": 183500000,
"quotaBytes": 3405774848,
"count": 17
}
}
}GET
/user-assets/usagecurl "https://api.sangtao.ai/v2/user-assets/usage" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"video": {
"count": 3,
"quotaCount": 20,
"usedBytes": 150000000,
"quotaBytes": 2147483648
},
"image": {
"count": 12,
"quotaCount": 100,
"usedBytes": 8500000,
"quotaBytes": 524288000
},
"audio": {
"count": 2,
"quotaCount": 30,
"usedBytes": 25000000,
"quotaBytes": 524288000
},
"document": {
"count": 0,
"quotaCount": 20,
"usedBytes": 0,
"quotaBytes": 209715200
},
"total": {
"usedBytes": 183500000,
"quotaBytes": 3405774848,
"count": 17
}
}
}