Skip to Content

用量汇总

返回用量汇总,其中 `cache` 是这个 key 自己的缓存命中率(今天与本月)。

GET
/v1/usage

返回用量汇总,其中 cache 是这个 key 自己的缓存命中率(今天与本月)。

Authorization

headerX-API-KEY<token>

Response Body

OK

application/json
  1. response
data*
meta?
Example Request
curl -X GET 'https://api.agenttweet.com/v1/usage'
Example Response
{  "data": {},  "meta": {    "count": 0,    "cursor": "string",    "provider": "string",    "cached": true,    "tokens_raw": 0,    "tokens_flat": 0,    "tokens_saved": 0,    "tokens_saved_pct": 0,    "tokens_billed": 0,    "cost_usd": 0,    "balance_usd": 0,    "request_id": "string"  }}