Account Balance
Get account balance info
You can query your account balance and other billing details through this API. To make a request, you only need your AIMLAPI key obtained from your account dashboard.
get
Body
–Optional
Responses
200Success
application/json
get
/v1/billing/balanceasync function main() {
const response = await fetch("https://api.aimlapi.com/v1/billing/balance", {
headers: {
"Authorization": "Bearer <YOUR_AIMLAPI_KEY>",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(JSON.stringify(data, null, 2));
}
main();200Success
{
"balance": 10000000,
"lowBalance": false,
"lowBalanceThreshold": 10000,
"lastUpdated": "2025-11-25T17:45:00Z",
"autoDebitStatus": "disabled",
"status": "current",
"statusExplanation": "Balance is current and up to date"
}Last updated
Was this helpful?