sangtao.ai
API key

User Assets

Storage usage

How many assets and how much storage each category uses, against its limits.

GEThttps://api.sangtao.ai/v2/user-assets/usage

Authorization

  • X-Api-Keystring · headerrequired

    Your API key, from the API keys page of your account.

Response

One object per category — video, image, audio, document — each with these fields:

  • countnumber

    Assets of this category you have

  • quotaCountnumber

    Most assets allowed in this category

  • usedBytesnumber

    Storage used, in bytes

  • quotaBytesnumber

    Storage allowed, in bytes

Then total, the four added up:

  • countnumber

    Assets you have, all categories

  • usedBytesnumber

    Storage used, all categories, in bytes

  • quotaBytesnumber

    Storage allowed for the four categories added up, in bytes. Limits still apply per category

GET/user-assets/usage
curl "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
    }
  }
}