Obtain the AI request usage of the current user.
GET/api/auth/sub2api/usage
Read the current login user's successive model requests and time range summary from the Sub2API page. The response only retains the display fields such as model, configuration, entry, token, cost, time consumption, and billing method, and does not return Sub2API Key, user information, IP address, User-Agent, upstream request ID, or internal account ID. Reads use the default 10-second in-process cache, concurrent merge, and the default 5-minute stale-if-error window, not synchronized to the Workflow Server database.
Request
Responses
- 200
- 400
- 403
- 502
- 503
Returns the usage summary and request pagination of the current user within the specified time range.
workflow-code standard error response.
workflow-code standard error response.
workflow-code standard error response.
workflow-code standard error response.