BenchmarksDAItem - TypeScript SDK

BenchmarksDAItem type definition

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

Example Usage

1import { BenchmarksDAItem } from "@openrouter/sdk/models";
2
3let 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

FieldTypeRequiredDescriptionExample
arenastring✔️Arena this ranking belongs to.models
avgGenerationTimeMsnumber✔️Average generation time in milliseconds.3200
categorystring✔️Category within the arena.codecategories
displayNamestring✔️Human-readable model name from Design Arena.Claude Sonnet 4
elonumber✔️ELO rating from head-to-head arena battles.1423
modelPermaslugstring✔️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
pricingmodels.BenchmarkPricing✔️OpenRouter pricing per token for this model. Null if pricing is unavailable.{"completion": "0.000015","prompt": "0.000003"}
tournamentStatsmodels.TournamentStats✔️Placement distribution from tournament matches.
winRatenumber✔️Win rate as a percentage (0–100).72