Skip to content
Hayonix

API reference · Schema

UsageSummary

  • objectstringrequired

    Always `usage_summary`: the type of this object

    One ofusage_summary

  • month_startstring (date-time)required

    Start of the current calendar month (UTC)

  • month_endstring (date-time)required

    Start of the next calendar month (UTC)

  • currencystringrequired

    Always `usd`

    One ofusd

  • totalstringrequired

    Integer nano-USD as a decimal string

    pattern ^-?[0-9]+$

  • by_productarray of objectrequired

    Spend per product this month, largest first

    Show 2 fields of by_product
    • productstringrequired

      compute, inference, batch_inference, evaluations, training, storage, dedicated_endpoints or other

    • totalstringrequired

      Integer nano-USD as a decimal string

      pattern ^-?[0-9]+$

  • as_ofstring (date-time)required

    When the summary was computed

Example
{
  "object": "usage_summary",
  "month_start": "2026-01-01T00:00:00.000Z",
  "month_end": "2026-01-01T00:00:00.000Z",
  "currency": "usd",
  "total": "1500000000",
  "by_product": [
    {
      "product": "string",
      "total": "1500000000"
    }
  ],
  "as_of": "2026-01-01T00:00:00.000Z"
}

Used by