---
title: "Get aggregated LLM costs (admin only)"
method: GET
path: "/v1/admin/llm-costs"
---

# Get aggregated LLM costs (admin only)

`GET /v1/admin/llm-costs`

## Request

- Base URL: `https://api.clichefactory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.clichefactory.com/v1/admin/llm-costs`
- Auth: none declared

## Query parameters

- `tenant_id` string, nullable
- `job_id` string, nullable
- `operation` string, nullable
- `provider` string, nullable
- `from_date` string, nullable
- `to_date` string, nullable
- `group_by` string

## Headers

- `X-API-KEY` string, nullable

## Response `200`

Successful Response

- LlmCostAggregateResponse
  - `period` object, required
  - `aggregates` LlmCostAggregateItem[], required
    - `group` string, required
    - `total_prompt_tokens` integer
    - `total_completion_tokens` integer
    - `total_tokens` integer
    - `total_estimated_usd` number
    - `total_dspy_usd` number
    - `total_cost_usd` number
    - `entry_count` integer
  - `totals` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/clichefactory/apis/aio-server.md) · [All operations](https://skmtc.dev/clichefactory/apis/aio-server/llms.txt) · [OpenAPI document](https://skmtc.dev/clichefactory/apis/aio-server/revisions/9bd59f9bbb31?raw)
