Abrechnung
Billing Balance
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 meldet nur diem und usd. Gebündelte Credits erscheinen nicht als numerisches Feld. Wenn gebündelte Credits die Quelle sind, aus der Ihre nächste Anfrage bezahlt wird, gibt consumptionCurrency den Wert BUNDLED_CREDITS zurück. Den verbleibenden Betrag an gebündelten Credits sehen Sie unter venice.ai/settings/api. Wie die API zwischen DIEM, gebündelten Credits und USD wählt, erfahren Sie unter VVV & DIEM.Autorisierungen
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Antwort
Successful response
Current balance information for the authenticated user
Whether the user has sufficient balance to make API requests
Beispiel:
true
The currency that will be used for consumption (DIEM or USD)
Verfügbare Optionen:
USD, VCU, DIEM, BUNDLED_CREDITS Beispiel:
"DIEM"
Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.
Beispiel:
100