Skip to content

国内站 open.bigmodel.cn 更新查询金额接口 #53

Description

@cdcp998

现状

妈的.AI写的和莎士比亚一样。/api/paas/v4/balance返回是404 我自己抓了一个API.

实测数据

国内站可以用普通 API key 读到一份完整的账户报表(以下为真实响应):

GET https://open.bigmodel.cn/api/biz/account/query-customer-account-report
{
    "code": 200,
    "msg": "操作成功",
    "data": {
        "balance": 42.569039095,
        "rechargeAmount": 50.000000,
        "giveAmount": 0.000000,
        "totalSpendAmount": 7.430960905,
        "todaySpendAmount": null,
        "availableBalance": 42.569039095,
        "frozenBalance": 0E-9,
        "creditBalance": null,
        "availableCreditBalance": null,
        "creditStatus": "NOT_OPEN",
        "modelSpendAmountList": null,
        "isKA": false
    },
    "success": true
}

字段映射:

TokenLedger 字段 取值 说明
total availableBalance ?? balance 优先可花的那部分
isAvailable total > 0 与其他 scheme 一致:total 缺失时缺席,不猜
granted rechargeAmount + giveAmount 充值 + 赠送,口径同 DeepSeek/Moonshot 的 granted
used totalSpendAmount

环境

  • 国内站 https://open.bigmodel.cn ,普通 API key(非管理类凭据)
  • TokenLedger @ main(文中行号以此为准)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions