Billing

Get historical usage stats for a wallet address.

Changed on
get/v1/usage/history/stats

Request

  • Base URL
    https://console-api-sandbox.akash.network
  • URL
    https://console-api-sandbox.akash.network/v1/usage/history/stats
  • Auth
    none required

Query parameters

addressstring required

The wallet address to get billing and usage data for

Example:akash18andxgtd6r08zzfpcdqg9pdr6smks7gv76tyt6
startDatestring date

Start date (YYYY-MM-DD), inclusive. Defaults to a 30-day window ending at endDate

Example:2024-01-01
endDatestring date

End date (YYYY-MM-DD), inclusive. Defaults to today (UTC)

Example:2024-01-31

Response

Returns usage stats data

totalSpentnumber required

Total amount spent in USD

averageSpentPerDaynumber required

Average spending per day in USD

totalDeploymentsnumber required

Total number of deployments deployed

averageDeploymentsPerDaynumber required

Average number of deployments deployed per day

gpuHoursnumber required

Each lease's hours over the range times its GPU count, summed

gpuModelsstring[] required

The GPU models those leases asked for, leaving out a request that accepts any model or several

Example response

{
  "totalSpent": 1234.56,
  "averageSpentPerDay": 12.34,
  "totalDeployments": 15,
  "averageDeploymentsPerDay": 1.5,
  "gpuHours": 6,
  "gpuModels": [
    "H100"
  ]
}

Changes

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      for the query request parameter endDate, default value 2026-07-20 was removed