Check Balance
curl --request GET \
--url https://api.moonshot.ai/v1/users/me/balance \
--header 'Authorization: Bearer <token>'{
"code": 123,
"data": {
"available_balance": 49.58894,
"voucher_balance": 46.58893,
"cash_balance": 3.00001
},
"scode": "0x0",
"status": true
}Check Balance
REST API to check your available, voucher, and cash balances on Kimi OpenPlatform.
GET
/
v1
/
users
/
me
/
balance
Check Balance
curl --request GET \
--url https://api.moonshot.ai/v1/users/me/balance \
--header 'Authorization: Bearer <token>'{
"code": 123,
"data": {
"available_balance": 49.58894,
"voucher_balance": 46.58893,
"cash_balance": 3.00001
},
"scode": "0x0",
"status": true
}Authorizations
The Authorization header expects a Bearer token. Use an MOONSHOT_API_KEY as the token. This is a server-side secret key. Generate one on the API keys page in your dashboard.
Was this page helpful?
βI