Admin Usage

Get overall usage statistics for the current organization

get/usage/stats

Request

  • The document declares no server URL.
  • Auth: none declared

Query parameters

startDatestring
endDatestring

Response

totalCreditsnumber required

Total credits consumed across all users and models in the specified period

totalRequestsnumber required

Total number of API requests made in the specified period

activeUsersnumber required

Number of users who made requests within the active user threshold (last 30 days)

totalUsersnumber required

Total number of unique users who made requests in the specified period

topModelsstring[] required

List of the most frequently used model names, ordered by usage

Example response

{
  "totalCredits": 1250.5,
  "totalRequests": 3450,
  "activeUsers": 42,
  "totalUsers": 67,
  "topModels": [
    "gpt-4",
    "claude-3-sonnet",
    "gpt-3.5-turbo"
  ]
}

Changes

No recorded changes to this operation across all 50 revisions of this API.