cURL
curl --request GET \ --url https://api.siliconflow.cn/v1/user/info \ --header 'Authorization: Bearer <token>'
{ "code": 20000, "message": "OK", "status": true, "data": { "id": "userid", "name": "username", "image": "user_avatar_image_url", "email": "user_email_address", "isAdmin": false, "balance": "0.88", "status": "normal", "introduction": "", "role": "", "chargeBalance": "88.00", "totalBalance": "88.88" } }
Get user information including balance and status
Use the following format for authentication: Bearer
Successful response
20000
"OK"
true
Show child attributes
"userid"
This field will no longer be returned after June 11th, and a fixed empty string will be output instead.
"username"
"user_avatar_image_url"
"user_email_address"
false
"0.88"
"normal"
""
"88.00"
"88.88"