Get comprehensive statistics for a specific providerThis endpoint provides usage statistics for a provider across all or a specific gateway. This fixes the "Total Tokens: 0" and "Top Model: N/A" issues in your UI!Args: provider_name: Provider name (e.g., 'openai', 'anthropic', 'meta-llama') gateway: Optional gateway filter time_range: Time range for statisticsReturns: Provider statistics including:
Total requests and tokens
Total cost and averages
Top model used
Model breakdown
Speed metrics
Example: GET /catalog/provider/openai/stats?time_range=24h GET /catalog/provider/anthropic/stats?gateway=portkey&time_range=7d
Request
Path Params
Query Params
Responses
🟢200OK
application/json
Successful Response
Body
🟠422Unprocessable Entity
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/v1/provider//stats?gateway&time_range'