Facturación
Saldo de facturación
Get current balance information for the authenticated user. Returns remaining DIEM/USD balances and total DIEM epoch allocation for calculating usage percentage.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Respuesta
Successful response
Current balance information for the authenticated user
Whether the user has sufficient balance to make API requests
Ejemplo:
true
The currency that will be used for consumption (DIEM or USD)
Opciones disponibles:
USD, VCU, DIEM, BUNDLED_CREDITS Ejemplo:
"DIEM"
Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.
Ejemplo:
100