Usage

Get per-day spend over a trailing window

Changed on

Returns the org's spend per UTC day for the last 1 to 90 days (default 7), split into GPU model, CPU, and Inference segments, plus the prior window's total. This is what the dashboard spend chart shows. Compute cost is split at UTC day boundaries and inference charges land on the day they were billed. Read-only: costs are priced the same way your bill is, never re-priced.

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

get/v1/orgs/{orgId}/usage/daily

Request

  • Base URL
    https://api.openrelay.inc
  • URL
    https://api.openrelay.inc/v1/orgs/{orgId}/usage/daily
  • Auth
    HTTP bearer

Path parameters

orgIdstring required

Query parameters

daysinteger

Response

OK

previousCentsinteger required

total spend in the same-length window immediately before this one

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status