Browse documentation

Account & catalog

API billing balance

View as Markdown
Read the prepaid USD balance for the account that owns the API key.

Add funds in the API Console

API funding supports card and cryptocurrency globally. GrabPay and FPX are available to customers in Malaysia.
Payment methodCheckout currencyAvailability
CardUSDGlobal
CryptocurrencyUSDGlobal
GrabPayMYRMalaysia
FPX online bankingMYRMalaysia

The balance remains denominated in USD

Malaysian local-payment checkouts show the exact MYR charge before redirecting. After verified payment, the selected USD amount is added to the API balance.

Get billing summary

GET/v1/billing
Bearer authentication required
cURL
curl https://api.byta-ai.com/v1/billing \
  -H "Authorization: Bearer $BYTA_API_KEY" \
  -H "Accept: application/json"
200 OK
{
  "object": "billing_summary",
  "currency": "USD",
  "balance": {
    "availableUsdMicros": 25000000,
    "reservedUsdMicros": 1250000,
    "spendableUsdMicros": 23750000,
    "monthSpendUsdMicros": 6300000
  }
}

Response fields

FieldMeaning
balance.availableUsdMicrosTotal prepaid API balance in millionths of one USD.
balance.reservedUsdMicrosFunds held by in-progress requests.
balance.spendableUsdMicrosAmount available for new requests after reservations.
balance.monthSpendUsdMicrosSettled API usage since the start of the current UTC month.

Separate API balance

App credits are never charged

The business API only spends this prepaid USD balance. Byta app weekly credits, subscriptions, and permanent credit packs remain separate.