---
title: "Get model usage rankings"
method: GET
path: "/api/logs/rankings"
tags: ["Logging"]
---

# Get model usage rankings

`GET /api/logs/rankings`

Returns models ranked by usage with trend percentages versus the previous
comparable period. Accepts the same filter parameters as the histogram
endpoints.

## Query parameters

- `providers` string
- `models` string
- `aliases` string
- `status` string
- `objects` string
- `selected_key_ids` string
- `virtual_key_ids` string
- `team_ids` string
- `customer_ids` string
- `user_ids` string
- `business_unit_ids` string
- `routing_rule_ids` string
- `routing_engine_used` string
- `start_time` string, date-time
- `end_time` string, date-time
- `period` string
- `min_latency` number
- `max_latency` number
- `min_tokens` integer
- `max_tokens` integer
- `min_cost` number
- `max_cost` number
- `missing_cost_only` boolean
- `stop_reasons` string
- `cache_hit_types` string
- `parent_request_id` string
- `metadata_<key>` string
- `content_search` string

## Response `200`

Model rankings retrieved successfully

- object — Models ranked by usage with trend comparison
  - `rankings` object[]
    - `model` string
    - `provider` string
    - `total_requests` integer
    - `success_count` integer
    - `success_rate` number
    - `total_tokens` integer
    - `total_cost` number
    - `avg_latency` number
    - `trend` object — Percentage change versus the previous comparable period
      - `has_previous_period` boolean
      - `requests_trend` number
      - `tokens_trend` number
      - `cost_trend` number
      - `latency_trend` number

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
