AI Logs API
View AI model usage logs and aggregated token consumption. Superadmin only.
Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
| GET | /ai-logs | List AI logs |
| GET | /ai-logs/usage | Token usage summary |
List AI Logs
GET /ai-logs
| Parameter | Type | Description |
|---|---|---|
skip | integer | Pagination offset |
limit | integer | Page size (default 50) |
provider | string | Filter by provider |
status | string | Filter by status |
feature | string | Filter by feature area |
Token Usage Summary
GET /ai-logs/usage?days=30
Returns aggregated token usage grouped by date, model, and feature. Useful for cost monitoring.