RankingsDailyItem - TypeScript SDK
RankingsDailyItem - TypeScript SDK
RankingsDailyItem type definition
RankingsDailyItem - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
1 import { RankingsDailyItem } from "@openrouter/sdk/models"; 2 3 let value: RankingsDailyItem = { 4 date: "2026-05-11", 5 modelPermaslug: "openai/gpt-4o-2024-05-13", 6 totalTokens: "12345678", 7 };
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
date | string | ✔️ | UTC calendar date the row is aggregated over (YYYY-MM-DD). | 2026-05-11 |
modelPermaslug | string | ✔️ | Model variant permaslug (e.g. openai/gpt-4o-2024-05-13, openai/gpt-4o-2024-05-13:free). Non-default variants include a :variant suffix and are ranked as their own entry. The reserved value other denotes the aggregated row covering every model outside the daily top 50 for that date — always sorted last within its date. | openai/gpt-4o-2024-05-13 |
totalTokens | string | ✔️ | Sum of prompt_tokens + completion_tokens for the day, returned as a decimal string so 64-bit values are not truncated. | 12345678 |