---
title: "List top models across an organization"
method: GET
path: "/v1/analytics/org/models/top"
tags: ["Analytics"]
---

# List top models across an organization

`GET /v1/analytics/org/models/top`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/analytics/org/models/top`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/analytics/org/models/top/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the top models used across every project in the authenticated organization.
This endpoint requires an org-level private API key supplied as a bearer token in the `Authorization` header.

## Query parameters

- `startDate` string, date-time
- `endDate` string, date-time
- `timeZone` string

## Response `200`

Top models across the organization.

- object[]
  - `name` string: Model name.
  - `type` 'llm' | 'embed'
  - `promptTokens` integer
  - `completionTokens` integer
  - `totalTokens` integer
  - `cost` number
  - `projectName` string, nullable: Project contributing the most traffic for the model.

## Other responses

- `401`: Missing or invalid org API key supplied via the Authorization header.

---

[API](https://skmtc.dev/lunary/apis/lunary-api.md) - [All operations](https://skmtc.dev/lunary/apis/lunary-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lunary/apis/lunary-api/revisions/a38233713bdc?raw)
