---
title: "Get Trace Usage"
method: GET
path: "/v2/trace/{trace_id}/usage"
tags: ["traces"]
---

# Get Trace Usage

`GET /v2/trace/{trace_id}/usage`

Get a trace's compute and inference cost breakdown.

## Path parameters

- `trace_id` string, uuid, required

## Response `200`

Successful Response

- TraceUsageBreakdown
  - `trace_id` string, uuid, required
  - `created_at` string, date-time, nullable
  - `end_time` string, date-time, nullable
  - `status` string, nullable
  - `environment_id` string, uuid, nullable
  - `environment_cost` number
  - `environment_transactions` integer
  - `environment_hourly_rate` number, nullable
  - `environment_still_running` boolean
  - `environment_baseline_cost` number
  - `environment_additional_cost` number
  - `environment_baseline_minutes` integer
  - `environment_additional_minutes` integer
  - `environment_total_runtime_seconds` number, nullable
  - `inference_cost` number
  - `inference_calls` integer
  - `inference_cost_incomplete` boolean
  - `agent_actions` integer
  - `total_cost` number

## 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)
