DocsUsage
Billing
Usage API
Usage and billing endpoints for customer dashboards and spend visibility.
GET /v1/usage/logs and GET /v1/usage/summaryScope: Depends on API key scopes configured in backend
Best for
Teams building point balance, billing, and usage history views.
Dashboard cards
Usage history
Spend by model
Endpoints
- GET /v1/usage/logs for request history, per-request model tracking, token usage, and billing history.
- GET /v1/usage/summary for total points, total requests, token totals, and by-model summaries.
Recommended dashboard widgets
- Total points charged
- Total requests
- Total input tokens
- Total output tokens
- Top used models
Ready to test with your own key?
Create a general API key in Settings, then come back here to copy a request example.