Checking your AI credit balance: the page, GET /v1/ai/balance and aio balance

All in One AIAI Credits & Costs·· 10 views· 3 min read

Your AI credit balance is shown in three places: on the All in One AI page, through the API and in the terminal, with the aio command. It is always the same number, with two decimal places. Checking it spends no credits.

On the page

The balance is at the top of the All in One AI page, on every tab, next to the button to buy more. People on your team with access see the same balance, because they spend the account balance.

Through the API

Use GET /v1/ai/balance, with a key that has the ai:read permission. On Linux and macOS:

curl "https://api.mozout.com/v1/ai/balance" -H "Authorization: Bearer $MOZOUT_API_KEY"

In Windows PowerShell:

curl.exe "https://api.mozout.com/v1/ai/balance" -H "Authorization: Bearer $env:MOZOUT_API_KEY"

The response, without a Coding Plan:

{
"data": {
"credits": 1250.5,
"currency": "credits"
}
}

Field What it is
credits The AI credits on the account, with two decimal places.
currency Always credits. It is not your account currency.
subscription Only with a Coding Plan: the points left this week and this month, when they come back and whether credits are used when the points run out.

The balance is the same with a sandbox_ key and a prod_ key. You can read it with your test key.

In the terminal

aio balance

It shows your credits and, with a Coding Plan, the points for the week and the month, the dates they come back and whether credits are used when the plan runs out. aio auth status also shows the balance, with the key in use, masked. See how to install aio.

AI credits are not your account balance. The balance in USD pays invoices. AI credits only pay for AI requests. See credit balance in your account.
You do not have to keep checking: when the balance runs low, the "AI Low Balance" email arrives. See the emails All in One AI sends.

Want to see your balance now? Open All in One AI.

See All in One AI

SEE ALSO

AI credits: how to buy them, the volume tiers and what each request uses

The emails All in One AI sends: activation, credits added, suspension and reactivation

Before a large batch of AI requests: checking the balance and the price first

AI in the terminal with the aio command: installing, logging in and chatting

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from ₦9,900.00/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.