---
title: "Get Model Credits Over Time"
method: GET
path: "/api/py/usage/model-credits-over-time"
tags: ["usage"]
---

# Get Model Credits Over Time

`GET /api/py/usage/model-credits-over-time`

## Query parameters

- `organization_id` string, required
- `from` string, date-time, required
- `to` string, date-time, required
- `granularity` 'day' | 'week' | 'month' | 'year', required
- `breakdown` 'model' | 'product_surface'

## Response `200`

Successful Response

- ModelCreditsOverTimeResponse
  - `status` 'ok' | 'not_configured', required
  - `granularity` 'day' | 'week' | 'month' | 'year', required
  - `points` ModelCreditsOverTimePoint[], required
    - `bucket` string, required
    - `model` string, required
    - `total_cost` number, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getauctor/apis/fastapi.md) · [All operations](https://skmtc.dev/getauctor/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getauctor/fastapi/revisions/aeb6faa3b8f0/schema)
