getBalance: retrieve account balance
Retrieve an account balance with its account key, Convenient to do your own alarm and query.
Example request
GET https://api.pixelant.ai/api/v1/getBalance
Host: api.pixelant.ai
Content-Type: application/json
x-api-key: sk_0cqyZoycFci4eIQnQSgucyCTkZU...W31wLlefAt9IF2tn1YFV0Example response
Response Structure
| Parameter | Type | Description |
|---|---|---|
| errorId | Integer | Error message: 0 - no error 1 - with error |
| errorCode | String | errorCode: full list of errors |
| errorDescription | String | Short description of the error |
| balance | Decimal | Account balance value in USD |
| packages | Array | Monthly/Weekly Packages |
Example Response
{
"balance": 888,
"errorId": 0,
"packages": [
{
"name": "package1",
"services": null
},
{
"name": "package2",
"services": [
{
"availableServices": [
"ai.solver.rc.v2"
],
"expireTime": "2025-09-14T11:46:03Z",
"remainingCount": 50000,
"totalCount": 50000
},
{
"availableServices": [
"ai.solver.rc.v2_enterprise"
],
"expireTime": "2025-09-17T06:16:05Z",
"remainingCount": 399998,
"totalCount": 200000
}
]
},
{
"name": "package3",
"services": [
{
"availableServices": [
"ai.solver.rc.v2"
],
"expireTime": "2025-09-20T01:10:14Z",
"remainingCount": 50000,
"totalCount": 50000
}
]
},
{
"name": "package4",
"services": [
{
"availableServices": [
"ai.solver.rc.v2"
],
"expireTime": "2025-09-20T01:12:52Z",
"remainingCount": 50000,
"totalCount": 50000
}
]
}
]
}Last updated on