Skip to main content
GET
/
api
/
balance
Balance
curl --request GET \
  --url https://modelswitch.io/api/balance
{
  "balance": 123
}
Returns the current balance of your account in USD. Authentication: Authorization: Bearer YOUR_JWT_TOKEN

Example

curl https://modelswitch.io/api/balance \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

{
  "balance": 1500.50
}
balance
number
Current account balance in USD.

Notes

When your balance reaches 0, all inference requests return 403 Forbidden. Add funds before your balance is depleted to avoid interruptions.
To add funds, go to Dashboard → Billing → Top up. You can also set up low-balance notifications to be alerted before your account runs out. For a full history of credits and charges, use the Transactions API.