---
title: "Get usage breakdown by model"
method: GET
path: "/admin/usage/models"
tags: ["admin"]
---

# Get usage breakdown by model

`GET /admin/usage/models`

## Query parameters

- `days` integer
- `start_date` string
- `end_date` string
- `model` string
- `provider` string
- `label` string
- `session_id` string
- `user_path` string
- `cache_mode` string

## Response `200`

OK

- UsageModelUsage[]
  - `cache_write_input_tokens` integer
  - `cached_input_cost` number, nullable
  - `cached_input_tokens` integer
  - `input_cost` number
  - `input_tokens` integer
  - `local_cached_input_tokens` integer
  - `local_cached_output_tokens` integer
  - `model` string
  - `output_cost` number
  - `output_tokens` integer
  - `provider` string
  - `provider_name` string
  - `total_cost` number
  - `uncached_input_tokens` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

## Changes

> 53 revisions in range; 1 could not be searched.

- **2026-08-15** `20b764f8e750` — 1 info
  - added the new optional `query` request parameter `session_id`
- **2026-07-21** `f45b0b3718bb` — 6 info
  - added the optional property `items/cache_write_input_tokens` to the response with the `200` status
  - added the optional property `items/cached_input_cost` to the response with the `200` status
  - added the optional property `items/cached_input_tokens` to the response with the `200` status
  - added the optional property `items/local_cached_input_tokens` to the response with the `200` status
  - …2 more
- **2026-07-04** `b559d13a3057` — 3 info
  - added the new optional `query` request parameter `label`
  - added the new optional `query` request parameter `model`
  - added the new optional `query` request parameter `provider`
- **2026-05-09** `1236749560f3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/enterpilot/apis/gomodel-api/changes/admin/usage/models/get.md)

---

[API](https://skmtc.dev/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.dev/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/7b5727a74f59/schema)
