How to check your API wallet balance

Read your remaining TokenRex wallet balance from code.

Call the balance endpoint

Send a GET request with your key to the balance endpoint to monitor spending or alert before you run out.

Example

curl https://tokenrex.ai/api/public/v1/balance -H "Authorization: Bearer YOUR_TOKENREX_KEY"
Get API keyCost calculatorDocs

Questions

Do I need a separate key for each provider?
No. One TokenRex API key works for every enabled model; change only the model ID.

Related