进阶 api-docs.deepseek.com 2026-10-13 22:45:34 · 25 阅读
第5章 获取用户余额 API 接口文档
获取用户余额
GET /user/balance
获取用户当前余额
响应
- 200 OK,返回用户余额信息。
- application/json
| Schema | Example |
|---|---|
| Example (from schema) | Example |
| Schema | { "is_available": true, "balance_infos": [ { "currency": "CNY", "total_balance": "110.00", "granted_balance": "10.00", "topped_up_balance": "100.00" } ] } |
{ "is_available": true, "balance_infos": [ { "currency": "CNY", "total_balance": "110.00", "granted_balance": "10.00", "topped_up_balance": "100.00" } ] } |
{ "is_available": true, "balance_infos": [ { "currency": "CNY", "total_balance": "110.00", "granted_balance": "10.00", "topped_up_balance": "100.00" } ] } |
| is_available | boolean |
| 用户余额是否足以进行 API 调用。 | Whether the user's balance is sufficient for API calls. |
| balance_infos | object[] |
| 余额信息数组。 | Array of balance information. |
| currency | string |
| 余额的币种。可能值:[CNY, USD] | The currency of the balance. Possible values: [CNY, USD] |
| total_balance | string |
| 可用总余额,包括赠送余额和充值余额。 | The total available balance, including the granted balance and the topped-up balance. |
| granted_balance | string |
| 未过期的赠送总余额。 | The total not expired granted balance. |
| topped_up_balance | string |
| 充值总余额。 | The total topped-up balance. |
{
"is_available": true,
"balance_infos": [
{
"currency": "CNY",
"total_balance": "110.00",
"granted_balance": "10.00",
"topped_up_balance": "100.00"
}
]
}
{
"is_available": true,
"balance_infos": [
{
"currency": "CNY",
"total_balance": "110.00",
"granted_balance": "10.00",
"topped_up_balance": "100.00"
}
]
}
加载中...