---
title: "Costs By Model"
method: GET
path: "/api/v1/admin/costs/by-model"
tags: ["Admin Dashboard"]
---

# Costs By Model

`GET /api/v1/admin/costs/by-model`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/admin/costs/by-model`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

## Query parameters

- `range` string: Preset: today | 2d | 7d | 30d | all (ignored if start_date/end_date set)
- `start_date` string, nullable: Custom window start (YYYY-MM-DD or ISO datetime). Overrides range presets.
- `end_date` string, nullable: Custom window end (YYYY-MM-DD or ISO datetime). Defaults to now.
- `user_id` string, nullable
- `limit` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
