Routescope APIRoutescope API
RouteScope 自助

查询我的累计用量

🔑 需要令牌认证(TokenAuth)

以 OpenAI 风格返回当前令牌的累计总消耗(总 Token 数与总金额),便于客户端在仪表盘展示总览。

GET
/api/token/self/usage
curl -X GET "https://webapi.routescope.ai/api/token/self/usage"
{
  "object": "usage",
  "total_tokens": 4500,
  "total_amount": 0.24,
  "currency": "USD",
  "amount_source": "logs"
}

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Response Body

application/json

最后更新于