Account
Account
The account an API key belongs to: credits, plan, the key and its limits.
https://api.sangtao.ai/v2/accountAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Any key can read it — no scope needed. Only need the balance? GET /account/balance is lighter.
Response
idstringThe account’s public id, stable. Quote it when you contact support.
namestringThe account’s display name.
emailstringThe account’s email.
emailVerifiedbooleanWhether the email is verified.
createdAtstringWhen the account was made, ISO 8601 in UTC.
creditsobjectThe balance, as GET /account/balance gives it (without the fields only the website uses).
Show child attributesHide child attributes
freeCreditnumberFrom the plan or a bonus; resets monthly.
purchasedCreditnumberBought; never expires.
lockedCreditnumberHeld for jobs running now.
availableCreditnumberfreeCredit + purchasedCredit − lockedCredit
hasPurchasedbooleanWhether credits were ever bought.
subscriptionobject | nullThe monthly plan in use. null when there is none.
Show child attributesHide child attributes
tierstringThe plan.
periodStartstringStart of the current period.
periodEndstringEnd of the current period.
daysLeftnumberDays left in the period.
quotasobject[]What the plan allows, per model.
Show child attributesHide child attributes
modelstring | nullThe model the quota is for, by its public name (e.g. "gpt-image-2.6").
maxPerMonthnumberMost per month.
maxPerDaynumberMost per day.
usedThisPeriodnumberUsed so far this period.
remainingnumberLeft this period.
apiKeyobjectThe key this call was made with.
Show child attributesHide child attributes
namestringThe name you gave it.
prefixstringIts first characters, to tell keys apart — never the whole key.
legacybooleantrue for an old-style key: one per account, full access, no name.
scopesstring[] | nullWhat it may do. null means full access.
createdAtstringWhen it was made.
expiresAtstring | nullWhen it stops working. null: never.
lastUsedAtstring | nullIts last use.
limitsobjectHow much the account may do at once.
Show child attributesHide child attributes
requestsPerMinutenumberMost requests per minute.
maxConcurrentJobsnumberMost jobs running at once.
/accountcurl "https://api.sangtao.ai/v2/account" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "acct_3kT9qPz0B",
"name": "An Nguyễn",
"email": "[email protected]",
"emailVerified": true,
"createdAt": "2026-08-01T03:12:00Z",
"credits": {
"freeCredit": 50,
"purchasedCredit": 100,
"lockedCredit": 8,
"availableCredit": 142,
"hasPurchased": true
},
"subscription": {
"tier": "Pro",
"periodStart": "2026-11-01T00:00:00Z",
"periodEnd": "2026-12-01T00:00:00Z",
"daysLeft": 22,
"quotas": [
{
"model": "gpt-image-2.6",
"maxPerMonth": 3000,
"maxPerDay": 200,
"usedThisPeriod": 412,
"remaining": 2588
}
]
},
"apiKey": {
"name": "Worker VPS-03",
"prefix": "sk_live_ab12",
"legacy": false,
"scopes": [
"jobs:create",
"jobs:read"
],
"createdAt": "2026-10-02T08:00:00Z",
"expiresAt": null,
"lastUsedAt": "2026-11-09T10:01:00Z"
},
"limits": {
"requestsPerMinute": 6000,
"maxConcurrentJobs": 20
}
}
}/accountcurl "https://api.sangtao.ai/v2/account" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "acct_3kT9qPz0B",
"name": "An Nguyễn",
"email": "[email protected]",
"emailVerified": true,
"createdAt": "2026-08-01T03:12:00Z",
"credits": {
"freeCredit": 50,
"purchasedCredit": 100,
"lockedCredit": 8,
"availableCredit": 142,
"hasPurchased": true
},
"subscription": {
"tier": "Pro",
"periodStart": "2026-11-01T00:00:00Z",
"periodEnd": "2026-12-01T00:00:00Z",
"daysLeft": 22,
"quotas": [
{
"model": "gpt-image-2.6",
"maxPerMonth": 3000,
"maxPerDay": 200,
"usedThisPeriod": 412,
"remaining": 2588
}
]
},
"apiKey": {
"name": "Worker VPS-03",
"prefix": "sk_live_ab12",
"legacy": false,
"scopes": [
"jobs:create",
"jobs:read"
],
"createdAt": "2026-10-02T08:00:00Z",
"expiresAt": null,
"lastUsedAt": "2026-11-09T10:01:00Z"
},
"limits": {
"requestsPerMinute": 6000,
"maxConcurrentJobs": 20
}
}
}