Skip to main content
GET
/api/v1/billing/balance
balances solo informa diem y usd. Los créditos agrupados no aparecen como un campo numérico. Si los créditos agrupados son la fuente de la que se cobrará tu próxima solicitud, consumptionCurrency devuelve BUNDLED_CREDITS. Para ver el monto restante de créditos agrupados, consulta venice.ai/settings/api. Para saber cómo la API elige entre DIEM, créditos agrupados y USD, consulta VVV y DIEM.

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Respuesta

Successful response

Current balance information for the authenticated user

canConsume
boolean
requerido

Whether the user has sufficient balance to make API requests

Ejemplo:

true

consumptionCurrency
enum<string> | null
requerido

The currency that will be used for consumption (DIEM or USD)

Opciones disponibles:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
Ejemplo:

"DIEM"

balances
object
requerido
diemEpochAllocation
number
requerido

Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.

Ejemplo:

100