Skip to main content

AI Logs API

View AI model usage logs and aggregated token consumption. Superadmin only.

Endpoints Overview

MethodEndpointDescription
GET/ai-logsList AI logs
GET/ai-logs/usageToken usage summary

List AI Logs

GET /ai-logs
ParameterTypeDescription
skipintegerPagination offset
limitintegerPage size (default 50)
providerstringFilter by provider
statusstringFilter by status
featurestringFilter 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.