---
title: "Get Inference Usage"
method: GET
path: "/v2/inference/usage"
tags: ["inference"]
---

# Get Inference Usage

`GET /v2/inference/usage`

Get the team's inference usage over a window, with summary and paged requests.

## Query parameters

- `days` integer
- `user_id` string, uuid, nullable
- `api_key_id` string, uuid, nullable
- `byok_credential_id` string, uuid, nullable
- `model_id` string, uuid, nullable
- `request_type` string, nullable
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- InferenceUsageResponse — Raw log listing for the request table. Aggregates (totals, group-bys) live on ``GET /v2/usage/inference``.
  - `logs` InferenceUsageLog[], required
    - `id` string, uuid, required
    - `created_at` string, date-time, required
    - `model` string, required
    - `cost` number, required
    - `type` string, required
    - `model_checkpoint_id` string, uuid, nullable
    - `checkpoint` object, nullable
    - `metadata` object
    - `user_id` string, uuid, nullable
    - `user_name` string, nullable
    - `user_email` string, nullable
    - `api_key_id` string, uuid, nullable
    - `api_key_name` string, nullable
    - `byok` boolean
    - `byok_credential_id` string, uuid, nullable
  - `total_count` integer, required
  - `org_type` string, required
  - `team_id` string, uuid, required

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) · [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hud/hud-platform/revisions/58558fc733d9/schema)
