Billing
get/usage

Request

  • Base URL
    https://api.hedra.com/v3
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Query parameters

startstring date-time nullable

Window start (inclusive, ISO-8601); defaults to 7 days before end. Bounds job and sandbox creation time.

endstring date-time nullable

Window end (exclusive, ISO-8601); defaults to now. The window is capped at 90 days.

group_by'total' | 'day' | 'model'

One summary row (total), one per UTC day (day), or one per model (model).

Response

Successful Response

startstring date-time required

Window start (inclusive).

endstring date-time required

Window end (exclusive).

group_by'total' | 'day' | 'model' required
total_jobsinteger required

Jobs submitted across the whole window, chat completions included.

total_spentnumber required

Net amount spent across the whole window.

currencystring required

ISO-4217 currency code for every amount in this response.

Changes