获取令牌使用情况
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/api/usage/token/:
get:
summary: 获取令牌使用情况
deprecated: false
description: ''
tags:
- 系统API
parameters:
- name: Authorization
in: header
description: 你的系统令牌
required: true
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
code: true
message: ok
data:
object: token_usage
name: 我的令牌
total_granted: 1000000
total_used: 250000
total_available: 750000
unlimited_quota: false
model_limits: {}
model_limits_enabled: false
expires_at: 1735689600
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 系统API
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-416239678-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []