---
title: "Get compute usage"
method: GET
path: "/billing/usage/compute"
tags: ["Billing"]
---

# Get compute usage

`GET /billing/usage/compute`

Returns GPU compute usage for the authenticated user's organization

## Query parameters

- `start_date` string
- `end_date` string
- `workspace_id` string

## Response `200`

OK

- GithubComActiveloopaiDeeplakeApiInternalBillingComputeUsageResponse
  - `by_session_type` object
  - `period_end` string
  - `period_start` string
  - `sessions` GithubComActiveloopaiDeeplakeApiInternalBillingGPUComputeSession[]
    - `created_at` string
    - `duration_seconds` number
    - `ended_at` string
    - `gpu_hours` number
    - `gpu_units` number
    - `id` string
    - `metadata` object
    - `org_id` string
    - `price_cents_per_gpu_hour` integer
    - `region_id` string
    - `session_type` string — query, embedding, ingestion
    - `started_at` string
    - `status` 'active' | 'completed' | 'failed' | 'timed_out'
    - `tier` 'basic' | 'scale' | 'enterprise'
    - `total_cost_cents` integer
    - `updated_at` string
    - `user_id` string
    - `workspace_id` string
  - `total_cost_cents` integer
  - `total_gpu_hours` number

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/deeplake/apis/deeplake-api.md) · [All operations](https://skmtc.net/deeplake/apis/deeplake-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeplake/deeplake-api/revisions/e16ed11d991c/schema)
