Skip to main content
GET
/
v1
/
credits
Get Credits
curl --request GET \
  --url https://api.shuyou.ai/v1/credits \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "total_credits": 100,
    "total_usage": 25,
    "balance": 75
  }
}

Response fields

FieldTypeDescription
data.total_creditsnumberTotal credits allocated to the account.
data.total_usagenumberTotal credits consumed.
data.balancenumberRemaining credit balance (total_creditstotal_usage).
{
  "data": {
    "total_credits": 100,
    "total_usage": 25,
    "balance": 75
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_KEY

Response

Credit balance response

data
object
required