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

# Get Billing Usage Requests By Model

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

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/billing/usage/requests-by-model`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/billing/usage/requests-by-model/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/billing/usage/requests-by-model/get.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
