Usage

Get current-month usage

Changed on

Returns the cents and hours used so far this month by GPU model and tier, plus the live burn per hour and the projected hours until the auto-stop floor.

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

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

Request

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

Path parameters

orgIdstring required

Response

OK

autoStopFloorCentsinteger

available-balance floor (cents) below which the org is auto-stopped

burnPerHourCentsinteger

sum of the locked rates of every open usage record in the org (live burn per hour)

projectedRunwayHoursnumber double nullable

hours until available balance hits the auto-stop floor at the current burn: (available - autoStopFloorCents) / burnPerHourCents; null when burn is 0, clamped to 0 when already at or below the floor

usageCentsinteger required
usageHoursnumber required

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