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
| Method | Path | Description |
|---|---|---|
GET | /api/user/self | Get personal information |
GET | /api/user/self/groups | Get available groups |
GET | /api/user/self/models | Get available models |
Token Management
| Method | Path | Description |
|---|---|---|
GET | /api/token/ | Get token list |
GET | /api/token/search | Search 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
| Method | Path | Description |
|---|---|---|
GET | /api/log/self | View personal usage logs |
GET | /api/log/self/stat | Personal log statistics |
GET | /api/log/self/token_daily | Daily token consumption |
GET | /api/data/self | Personal 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.
