---
title: "Get compute usage and billing"
method: GET
path: "/compute/v1/usage"
tags: ["Compute"]
---

# Get compute usage and billing

`GET /compute/v1/usage`

Returns detailed compute usage statistics and billing information for your organization. Includes GPU and CPU hours, total runs, costs, and breakdowns by environment. Use optional query parameters to filter by specific year and month.

## Query parameters

- `year` integer
- `month` integer

## Response `200`

Usage statistics and billing information

- object
  - `period` object
    - `year` integer
    - `month` integer
    - `monthName` string
  - `summary` object
    - `totalRuns` integer
    - `totalGpuHours` number
    - `totalCpuHours` number
    - `totalCostCents` integer
    - `totalCostFormatted` string
  - `byEnvironment` object[]
    - `environment` string
    - `totalRuns` integer
    - `totalGpuSeconds` integer
    - `totalCpuSeconds` integer
    - `totalCostCents` integer
    - `totalCostFormatted` string

## Other responses

- `401` — Unauthorized - Valid API key required

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
