Skip to main content
GET
/
v1
/
analytics
/
org
/
models
/
top
List top LLM models across an organization
curl --request GET \
  --url https://api.lunary.ai/v1/analytics/org/models/top \
  --header 'Authorization: Bearer <token>'
[
  {
    "name": "<string>",
    "promptTokens": 123,
    "completionTokens": 123,
    "totalTokens": 123,
    "cost": 123,
    "projectName": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Use an org-level private API key issued by Lunary. Example Authorization header: Bearer 123e4567-e89b-12d3-a456-426614174000.

Query Parameters

startDate
string<date-time>

ISO8601 timestamp (inclusive) that bounds the analytics window. Requires endDate and timeZone when provided.

endDate
string<date-time>

ISO8601 timestamp (exclusive) that bounds the analytics window. Requires startDate and timeZone when provided.

timeZone
string

IANA time zone identifier used to localize the date range filters.

Response

Top models across the organization.

name
string

Model name.

promptTokens
integer
completionTokens
integer
totalTokens
integer
cost
number
projectName
string | null

Project contributing the most traffic for the model.

I