Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceInferenceDedicated Endpoints

Get a dedicated endpoint's usage for a month

A dedicated endpoint's GPU-hours and their cost for one calendar month (UTC), read from the usage records its monthly bill is settled from. It reports the GPU-hours the endpoint's replicas were hosted, the GPU-hours of those that were billed (a replica is billed while it answers requests), and their cost in cents. The current month runs to now. A deleted endpoint's usage stays readable for the months it has records in. It is a billing read: it needs the usage permission, as the organization's usage routes do. Requests to the endpoint are not charged per token, so this is the endpoint's whole cost. It is rounded once for the endpoint, and the bill once for the organization, so the two can differ by under a cent per endpoint.

Required permission

Requires the usage.read permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl dedicated-endpoints usage get <id>
GET
/v1/inference/endpoints/{id}/usage

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

id*string

Query Parameters

month?string

The month, as YYYY-MM in UTC; the current month when omitted.

Match^[0-9]{4}-(0[1-9]|1[0-2])$

Response Body

Usage

application/json
  1. response

A dedicated endpoint's usage for one month, from its replicas' usage records.

endpointId*string
month*string

the month, YYYY-MM in UTC

from*string

the month's start

Formatdate-time
through*string

the end of the window read: the month's end, or now for the current month

Formatdate-time
gpuHours*number

GPU-hours the endpoint's replicas were hosted, billed or not

Formatdouble
billedGpuHours*number

GPU-hours of replicas while they answered, the ones the endpoint is charged for

Formatdouble
cents*integer

the cost of billedGpuHours at the replicas' locked rates, in cents, rounded once

Formatint64
Example Request
curl -X GET 'https://api.openrelay.inc/v1/inference/endpoints/string/usage'
Example Response
{  "endpointId": "de_6vsr3m1k0p9t2c4x8n5w7q2z1a",  "month": "2026-10",  "from": "2026-10-01T00:00:00Z",  "through": "2026-10-27T13:05:00Z",  "gpuHours": 412.5,  "billedGpuHours": 398.25,  "cents": 238950}