---
title: "Get model cost ranking data"
method: GET
path: "/api/model_cost_rank/"
tags: ["dashboard"]
---

# Get model cost ranking data

`GET /api/model_cost_rank/`

Returns ranking data for models based on cost

## Query parameters

- `group` string
- `channel` integer
- `start_timestamp` integer
- `end_timestamp` integer

## Response `200`

OK

- object
  - `data` ModelModelCostRank[]
    - `cache_creation_tokens` integer
    - `cached_tokens` integer
    - `input_tokens` integer
    - `model` string
    - `output_tokens` integer
    - `request_count` integer
    - `total_tokens` integer
    - `used_amount` number
    - `web_search_count` integer
  - `message` string
  - `success` boolean

## Changes

- **2025-05-23** `eb3d08e71881` — 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2025-05-23** `544096a3f194` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/changes/api/model_cost_rank/get.md)

---

[API](https://skmtc.dev/labring/apis/ai-proxy-swagger-api.md) · [All operations](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/labring/ai-proxy-swagger-api/revisions/eb3d08e71881/schema)
