RankingsDailyItem - TypeScript SDK

RankingsDailyItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { RankingsDailyItem } from "@openrouter/sdk/models";
2
3let value: RankingsDailyItem = {
4 date: "2026-05-11",
5 modelPermaslug: "openai/gpt-4o-2024-05-13",
6 totalTokens: "12345678",
7};

Fields

FieldTypeRequiredDescriptionExample
datestring✔️UTC calendar date the row is aggregated over (YYYY-MM-DD).2026-05-11
modelPermaslugstring✔️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
totalTokensstring✔️Sum of prompt_tokens + completion_tokens for the day, returned as a decimal string so 64-bit values are not truncated.12345678