---
title: "Get Billing Usage Requests By Model"
method: GET
path: "/billing/usage/requests-by-model"
tags: ["billing", "billing"]
---

# Get Billing Usage Requests By Model

`GET /billing/usage/requests-by-model`

Return full-range request usage grouped by model.

Args:
    start_date: Optional inclusive lower bound on request creation time.
    end_date: Optional inclusive upper bound on request creation time.
    full_history: Whether to ignore ``start_date`` and begin at first usage.
    auth: Authenticated caller context.

Returns:
    Aggregated usage rows grouped by model.

Raises:
    HTTPException: If date parameters are invalid or usage cannot be loaded.

## Query parameters

- `start_date` string, nullable — Filter: created_at >= (ISO); ignored when full_history=true
- `end_date` string, nullable — Filter: created_at <= (ISO); with full_history, caps the window
- `full_history` boolean — If true, from first request through end (or now); ignores start_date

## Response `200`

Successful Response

- UsageRequestModelSummaryResponse — Full-range model summary for the usage table UI.
  - `items` UsageRequestModelSummaryItem[], required
    - `model` string, required
    - `request_count` integer, required
    - `total_credits` number
    - `total_tokens` integer
    - `total_input_tokens` integer
    - `total_output_tokens` integer
    - `total_cache_read_tokens` integer
    - `total_cache_write_tokens` integer
    - `total_cost` number
    - `last_request_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
