BenchmarksDAItem - TypeScript SDK
BenchmarksDAItem - TypeScript SDK
BenchmarksDAItem type definition
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Example Usage
1 import { BenchmarksDAItem } from "@openrouter/sdk/models"; 2 3 let value: BenchmarksDAItem = { 4 arena: "models", 5 avgGenerationTimeMs: 3200, 6 category: "codecategories", 7 displayName: "Claude Sonnet 4", 8 elo: 1423, 9 modelPermaslug: "anthropic/claude-sonnet-4", 10 pricing: { 11 completion: "0.000015", 12 prompt: "0.000003", 13 }, 14 tournamentStats: { 15 firstPlace: 12, 16 fourthPlace: 2, 17 secondPlace: 8, 18 thirdPlace: 5, 19 total: 27, 20 }, 21 winRate: 72, 22 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
arena | string | ✔️ | Arena this ranking belongs to. | models |
avgGenerationTimeMs | number | ✔️ | Average generation time in milliseconds. | 3200 |
category | string | ✔️ | Category within the arena. | codecategories |
displayName | string | ✔️ | Human-readable model name from Design Arena. | Claude Sonnet 4 |
elo | number | ✔️ | ELO rating from head-to-head arena battles. | 1423 |
modelPermaslug | string | ✔️ | Stable OpenRouter model identifier when the model is on OpenRouter; otherwise the upstream Design Arena model id. Use pricing != null to detect OpenRouter-mapped models. | anthropic/claude-sonnet-4 |
pricing | models.BenchmarkPricing | ✔️ | OpenRouter pricing per token for this model. Null if pricing is unavailable. | {"completion": "0.000015","prompt": "0.000003"} |
tournamentStats | models.TournamentStats | ✔️ | Placement distribution from tournament matches. | |
winRate | number | ✔️ | Win rate as a percentage (0–100). | 72 |