Usage Tracking
Usage data is available in two places: the console dashboards (human-friendly) and the Analytics API (programmatic).
Console dashboards
Section titled “Console dashboards”At console.aiand.com, the dashboard shows:
- Current credit balance.
- Spend over the last 24 hours, 7 days, and 30 days.
- Top models by request count and by cost.
- Recent requests with status, latency, and cost.
Analytics API
Section titled “Analytics API”For automated reporting, query the Analytics endpoints:
GET /analytics/metrics— time-series of requests, tokens, and cost.GET /analytics/summary— aggregated totals over a range.GET /logs— individual request rows with cursor pagination.
All three support range=1h|24h|7days|30days|3months.
Per-request cost
Section titled “Per-request cost”Every response includes an X-AiAnd-Cost-USD header with the exact cost of that request. Streaming responses emit the same value in the final trailer event. See Response Headers and Streaming Events.