Billing

Get usage records

Changed on
get/billing/usage

Request

  • Base URL: https://api.varg.ai/v2
  • URL: https://api.varg.ai/v2/billing/usage
  • Auth: HTTP bearer

Query parameters

fromstring date-time
tostring date-time
limitinteger

Response

Usage records

total_centsinteger

Sum of cost_cents over the returned rows (limited by limit), not the lifetime total

Example response

{
  "usage": [
    {
      "billing_type": "metered",
      "billed_units": {
        "images": 1
      }
    }
  ]
}

Changes