Wallet balance API

Use an Asale API key to check available, frozen, and payable balances, recent spending, and key usage.

A script holding an sk-asale-… API key can fetch its account's wallet snapshot without a browser login. This endpoint is on api.asale.ai, not the inference gateway gw.asale.ai.

Request

curl https://api.asale.ai/api/v1/me/wallet/balance \
  -H "Authorization: Bearer $ASALE_API_KEY"

You can also pass the same key in an x-api-key or x-goog-api-key header. Create and manage keys on the API keys page.

Response fields

FieldMeaning
balanceAvailable balance
frozenFrozen balance
payableSeller earnings not yet released
debtAmount owed
unitUnit for the amounts above: micro_usdt; 1 USDT = 1,000,000 micro-USDT
recent_consumptionThis account's spending tasks in the last 24 hours, newest first, up to 200; not filtered to this key
recent_consumption_window_hoursSpending lookback window, currently 24
api_keyThis key's rate limits, budget, and cumulative usage

balance, frozen, payable, and debt are account-level values matching the wallet page; the figures inside api_key are for the key used on this request. This is a current snapshot, not a paginated feed. An unknown, expired, or disabled key returns 401 or 403; see the API overview for the error format.