Skip to main content
GET
/api/v1/billing/balance
balances는 diem과 usd만 보고합니다. 번들 크레딧은 숫자 필드로 표시되지 않습니다. 다음 요청이 번들 크레딧에서 차감될 경우 consumptionCurrency는 BUNDLED_CREDITS를 반환합니다. 남은 번들 크레딧 금액을 확인하려면 venice.ai/settings/api를 확인하세요. API가 DIEM, 번들 크레딧, USD 중에서 선택하는 방식은 VVV & DIEM을 참조하세요.

인증

Authorization
string
header
필수

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

응답

Successful response

Current balance information for the authenticated user

canConsume
boolean
필수

Whether the user has sufficient balance to make API requests

예시:

true

consumptionCurrency
enum<string> | null
필수

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

사용 가능한 옵션:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
예시:

"DIEM"

balances
object
필수
diemEpochAllocation
number
필수

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

예시:

100