Skip to content

Personal API

The Personal API is used to query your own account, models, tokens, logs, and statistics.

Authentication

The Personal API involves sensitive data and must use authorized credentials.

User Information

MethodPathDescription
GET/api/user/selfGet personal information
GET/api/user/self/groupsGet available groups
GET/api/user/self/modelsGet available models

Token Management

MethodPathDescription
GET/api/token/Get token list
GET/api/token/searchSearch tokens
GET/api/token/{id}Get a single token
POST/api/token/Create token
PUT/api/token/{id}Update token
DELETE/api/token/{id}Delete token

Logs and Statistics

MethodPathDescription
GET/api/log/selfView personal usage logs
GET/api/log/self/statPersonal log statistics
GET/api/log/self/token_dailyDaily token consumption
GET/api/data/selfPersonal quota time-series data

Security Suggestions

Do not expose the Personal API directly to a public frontend. If you need to show data to users, proxy it through your own backend.

Support QQ: 6669955