v2.27.0

Granular Usage Analytics and Database Overhaul

Sreejan
SreejanAuthor

This release introduces a major enhancement to our analytics capabilities, providing more detailed and structured usage data at both the daily and individual model level.

New Features

2
  • Model Consumption Statistics: Implemented a new model_consumption_stats table to track lifetime usage statistics for each individual model, including total requests, cost, and token counts.
  • Daily Usage Summary: Introduced a daily_usage_summary table with a granular schema to break down daily API usage by modality (chat, image, video, etc.), providing detailed insights into platform-wide activity.

Refactor

1
  • Usage Tracking System: The entire usage tracking system has been refactored to populate these new granular metrics. All API requests now contribute to both the daily and lifetime model statistics for more comprehensive analytics.