# A host's GPU benchmark runs, newest first

> GET /v1/hosts/{host_id}/gpu-benchmarks. The provider's history of its host's GPU benchmarks: each run as Legion kept it, with what was flagged.

Source: https://legion.ambient.xyz/docs/api/hosts/list-host-gpu-benchmarks

`GET https://api.legion.ambient.xyz/v1/hosts/{host_id}/gpu-benchmarks`

Authenticate with an API key: `Authorization: Bearer $LEGION_API_KEY`.

The provider's history of its host's GPU benchmarks: each run as Legion kept it, with
what was flagged. Measured by the Legion agent with Legion's pinned benchmark image while the host
had no rental; provider-run, never renter-verified. At most 60 runs, the last 400 days.

## Path parameters

- `host_id`, string (uuid), required

## Responses

### 200

The runs.

- `items`, array of HostGPUBenchmark, required
  - `run_id`, string (uuid), required
  - `measured_at`, string (date-time), required
  - `tool_version`, string, required
  - `driver_version`, string
  - `cuda_version`, string
  - `tflops`, number (double): Dense FP16/BF16 tensor-core throughput per GPU, in TFLOPS: for each GPU the better of `bf16_tflops` and `fp16_tflops`, then the median across the host's GPUs. Absent when no GPU measured either.
  - `mem_bw_gbps`, number (double): Device memory bandwidth per GPU, in GB/s, the median across the host's GPUs.
  - `spec_tflops`, number (double): NVIDIA's published dense FP16/BF16 tensor peak (FP32 accumulation, no sparsity) for the host's GPU model, from Legion's table. Absent for a model not in it.
  - `gpus`, array of GPUBenchmarkGPU, required
    - `index`, integer, required: The GPU's index as nvidia-smi numbers it.
    - `name`, string: The GPU's name as the driver reports it.
    - `fp16_tflops`, number (double)
    - `bf16_tflops`, number (double)
    - `tf32_tflops`, number (double)
    - `fp32_tflops`, number (double)
    - `mem_bw_gbps`, number (double)
    - `h2d_gbps`, number (double)
    - `d2h_gbps`, number (double)
  - `p2p`, array of GPUPeerBandwidth, required
    - `src`, integer, required
    - `dst`, integer, required
    - `link`, string, required
    - `access`, boolean: Whether the two GPUs have direct peer access (cudaDeviceCanAccessPeer).
    - `gbps`, number (double)
  - `flags`, array of string, required: What looked wrong: `gpu_implausible` (a GPU measured more than 1.15 times its model's published peak, or more than 3 median absolute deviations from what the other hosts with the same model measured).

Example:

```json
{
  "items": [
    {
      "run_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
      "measured_at": "2026-10-15T12:00:00Z",
      "tool_version": "string",
      "driver_version": "string",
      "cuda_version": "string",
      "tflops": 0,
      "mem_bw_gbps": 0,
      "spec_tflops": 0,
      "gpus": [
        {
          "index": 0,
          "name": "string",
          "fp16_tflops": 0,
          "bf16_tflops": 0,
          "tf32_tflops": 0,
          "fp32_tflops": 0,
          "mem_bw_gbps": 0,
          "h2d_gbps": 0,
          "d2h_gbps": 0
        }
      ],
      "p2p": [
        {
          "src": 0,
          "dst": 0,
          "link": "nvlink",
          "access": false,
          "gbps": 0
        }
      ],
      "flags": [
        "string"
      ]
    }
  ]
}
```

### 401

Missing, unknown, expired or revoked credentials.

### 403

The caller lacks the permission this operation requires (`forbidden`),
or signed in without having joined an organization yet
(`no_organization`; `getOnboarding` and the invitation and
organization operations under it work), or could not sign in
(`email_unverified`, `account_conflict`, and `domain_not_allowed`). `not_invited` is no longer returned to
session tokens.

`access_not_approved`: a signed-in person who is not approved
for the beta yet. Every operation that takes a credential answers it to
them, except `getMe` and `joinMyWaitlist`; the problem carries
`access` (`waitlisted` or `not_requested`, and the email). Approved
means a member of an organization, holding a pending invitation, or Legion; an API key always belongs to a member.

`oauth_token_mcp_only`: the caller sent an OAuth access token (`lgo_`), which is accepted
only by `mcpMessage` and the tool calls it dispatches. Every other operation answers it, whatever
the token's scope. Use an API key or the Legion web app.

`org_suspended`: the caller's organization is suspended. Every operation that takes a
credential answers it, by session or API key, except `getMe` (which shows `org.suspended_at` and
`org.suspension_reason`) and the support operations under `/v1/support/`.

`terms_not_accepted`: an approved caller who has not accepted
the current version of the Terms of Use and the Acceptable Use Policy. Every operation that takes a credential answers it, except `getMe`,
`acceptLegalDocuments`, `joinMyWaitlist` and the wind-down operations
(`listRentals`, `stopRental`, `deleteRental`, `listHosts`,
`updateListing` with `listed` false, `removeHost`); the problem
carries `legal`. An API key acts for the person who created it, so it
is refused until that person accepts. Terminal
operations also return
`session_required` (called with an API key) and `step_up_required`
(neither a sign-in nor a step-up challenge within the step-up window).

### 404

The resource does not exist or belongs to another organization.

### 500

An unexpected server error. Safe to retry.

## Errors

- 403 [`no_organization`](https://legion.ambient.xyz/docs/errors#no_organization)

## Example request

```sh
curl -s "https://api.legion.ambient.xyz/v1/hosts/$HOST_ID/gpu-benchmarks" \
  -H "Authorization: Bearer $LEGION_API_KEY"
```
