-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
560 lines (540 loc) · 16.9 KB
/
Copy pathopenapi.yaml
File metadata and controls
560 lines (540 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
openapi: 3.1.0
info:
title: Design Arena Public API
description: |
Public API for accessing Design Arena leaderboard data.
Design Arena is a crowdsourced benchmarking platform where users vote on
AI-generated content to determine model rankings via ELO ratings.
version: 1.2.0
contact:
name: Design Arena
url: https://designarena.ai
servers:
- url: https://www.designarena.ai/api/v1
description: Production
- url: http://localhost:3000/api/v1
description: Local development
paths:
/arenas:
get:
summary: List Arenas & Categories
description: |
Returns all available arena types and their categories. Use this to discover
valid arena/category combinations before calling the leaderboard endpoint.
operationId: listArenas
tags:
- Discovery
responses:
'200':
description: List of arenas and their categories
headers:
Cache-Control:
description: Caching directive (1 hour)
schema:
type: string
example: "public, s-maxage=3600, stale-while-revalidate=7200"
content:
application/json:
schema:
$ref: '#/components/schemas/ArenasResponse'
example:
success: true
data:
- id: "Models Arena"
name: "Models Arena"
description: "Head-to-head comparison of AI model outputs across modalities"
categories:
- id: "Code Categories"
name: "Code Categories"
- id: "Website"
name: "Website"
leaderboardUrl:
- category: "Code Categories"
url: "/api/v1/leaderboard/models/codecategories"
- category: "Website"
url: "/api/v1/leaderboard/models/website"
timestamp: "2026-02-22T18:00:00.000Z"
'401':
description: Missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/leaderboard/{arena}/{category}:
get:
summary: Get Leaderboard
description: |
Returns the current leaderboard rankings for a specific arena and category.
Results are sorted by ELO rating (highest first) and include win/loss statistics,
average generation time, and OpenRouter model ID mappings where available.
operationId: getLeaderboard
tags:
- Leaderboard
parameters:
- name: arena
in: path
required: true
description: |
The arena type. Accepts both internal slugs (e.g. `models`) and
display names (e.g. `Models Arena`).
schema:
type: string
enum: [models, builders, agents]
examples:
models:
value: models
summary: Models Arena - AI model comparisons
builders:
value: builders
summary: Builders Arena - AI builder tools
agents:
value: agents
summary: Agents Arena - AI agents
- name: category
in: path
required: true
description: |
The category within the arena. Accepts both internal slugs (e.g. `website`)
and display names (e.g. `Website`). Use `GET /arenas` to discover valid categories.
schema:
type: string
examples:
website:
value: website
summary: Website generation
image:
value: image
summary: Image generation
agon_webapps:
value: agon_webapps
summary: Web app agents
responses:
'200':
description: Successful response with leaderboard data
headers:
Cache-Control:
description: Caching directive
schema:
type: string
example: "public, s-maxage=300, stale-while-revalidate=600"
content:
application/json:
schema:
$ref: '#/components/schemas/LeaderboardResponse'
example:
success: true
data:
- displayName: "Claude Opus 4.6"
provider: "anthropic"
openRouterId: "anthropic/claude-opus-4.6"
winRate: 63.0
elo: 1390
avgGenerationTimeMs: 122828
- displayName: "GPT-5.1 Codex"
provider: "openai"
openRouterId: "openai/gpt-5.1-codex"
winRate: 60.5
elo: 1298
avgGenerationTimeMs: 88348
- displayName: "v0-1.5-lg"
provider: "vercel"
openRouterId: null
winRate: 60.0
elo: 1280
avgGenerationTimeMs: 45000
meta:
arena: "Models Arena"
category: "Website"
lastUpdated: "2026-02-22T04:00:06.216429+00:00"
timestamp: "2026-02-22T04:51:46.841Z"
'400':
description: Invalid arena or category
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidArena:
summary: Invalid arena
value:
success: false
error:
code: "INVALID_ARENA"
message: "Invalid arena \"invalid\". Must be one of: models, builders, agents"
invalidCategory:
summary: Invalid category
value:
success: false
error:
code: "INVALID_CATEGORY"
message: "Invalid category \"invalid\" for arena \"models\""
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/models:
get:
summary: List All Models
description: |
Returns every model with its identity info, rankings nested by
arena and category, and tournament placement distribution. One call
to get all ELO scores, win rates, generation times, and 1st/2nd/3rd/4th
place finishes across all arenas.
operationId: listModels
tags:
- Models
responses:
'200':
description: All models with nested rankings
headers:
Cache-Control:
description: Caching directive (5 minutes)
schema:
type: string
example: "public, s-maxage=300, stale-while-revalidate=600"
content:
application/json:
schema:
$ref: '#/components/schemas/ModelsResponse'
example:
success: true
data:
- id: "claude-sonnet-4-20250514"
displayName: "Claude Sonnet 4"
provider: "anthropic"
openRouterId: "anthropic/claude-sonnet-4"
rankings:
Models Arena:
Code Categories:
elo: 1350
winRate: 61.2
avgGenerationTimeMs: 95000
Website:
elo: 1380
winRate: 63.0
avgGenerationTimeMs: 92000
Agents Arena:
Web Apps:
elo: 1290
winRate: 58.5
avgGenerationTimeMs: 140000
rankingDistribution:
first: 3726
second: 2168
third: 367
fourth: 284
total: 6545
meta:
lastUpdated: "2026-02-22T04:00:06.216429+00:00"
timestamp: "2026-02-22T04:51:46.841Z"
'401':
description: Missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: "API key (starts with sk_live_)"
schemas:
ArenasResponse:
type: object
required:
- success
- data
- timestamp
properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/ArenaInfo'
timestamp:
type: string
format: date-time
ArenaInfo:
type: object
required:
- id
- name
- description
- categories
- leaderboardUrl
properties:
id:
type: string
description: Arena display name
example: "Models Arena"
name:
type: string
description: Human-readable arena name
example: "Models Arena"
description:
type: string
description: What this arena evaluates
example: "Head-to-head comparison of AI model outputs across modalities"
categories:
type: array
items:
type: object
properties:
id:
type: string
example: "Website"
name:
type: string
example: "Website"
leaderboardUrl:
type: array
items:
type: object
properties:
category:
type: string
url:
type: string
description: Relative URL for the leaderboard endpoint
LeaderboardResponse:
type: object
required:
- success
- data
- meta
- timestamp
properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/LeaderboardEntry'
meta:
$ref: '#/components/schemas/LeaderboardMeta'
timestamp:
type: string
format: date-time
description: When this response was generated
LeaderboardEntry:
type: object
required:
- displayName
- provider
- openRouterId
- winRate
- elo
- avgGenerationTimeMs
properties:
displayName:
type: string
description: Human-readable model name
example: "Claude Opus 4.6"
provider:
type: string
description: Model provider/company
example: "anthropic"
openRouterId:
type: string
nullable: true
description: |
The model's ID on OpenRouter (e.g., `anthropic/claude-opus-4.6`).
Use this to match leaderboard entries to OpenRouter's model catalog.
Returns `null` when the model is not available on OpenRouter — this
includes proprietary builder tools (e.g., v0, Devin), image/video/audio
generators, and deprecated models.
example: "anthropic/claude-opus-4.6"
winRate:
type: number
format: float
description: Win rate percentage (0-100)
example: 63.0
elo:
type: integer
description: ELO rating (higher is better, base 1200)
example: 1390
avgGenerationTimeMs:
type: integer
nullable: true
description: Average generation time in milliseconds
example: 122828
LeaderboardMeta:
type: object
required:
- arena
- category
- lastUpdated
properties:
arena:
type: string
description: The arena display name
example: "Models Arena"
category:
type: string
description: The category display name
example: "Website"
lastUpdated:
type: string
format: date-time
nullable: true
description: When the leaderboard was last calculated
example: "2026-02-22T04:00:06.216429+00:00"
ErrorResponse:
type: object
required:
- success
- error
properties:
success:
type: boolean
example: false
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: Error code
example: "INVALID_ARENA"
message:
type: string
description: Human-readable error message
example: "Invalid arena \"invalid\". Must be one of: models, builders, agents"
ModelsResponse:
type: object
required:
- success
- data
- meta
- timestamp
properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/ModelEntry'
meta:
type: object
properties:
lastUpdated:
type: string
format: date-time
nullable: true
description: Most recent leaderboard calculation time across all arenas
timestamp:
type: string
format: date-time
ModelEntry:
type: object
required:
- id
- displayName
- provider
- openRouterId
- rankings
- rankingDistribution
properties:
id:
type: string
description: Internal model identifier (stable)
example: "claude-sonnet-4-20250514"
displayName:
type: string
description: Human-readable model name
example: "Claude Sonnet 4"
provider:
type: string
description: Model provider/company
example: "anthropic"
openRouterId:
type: string
nullable: true
description: OpenRouter model ID, or null if not on OpenRouter
example: "anthropic/claude-sonnet-4"
rankings:
type: object
description: Nested rankings keyed by arena, then category
additionalProperties:
type: object
additionalProperties:
$ref: '#/components/schemas/CategoryRanking'
rankingDistribution:
$ref: '#/components/schemas/RankingDistribution'
CategoryRanking:
type: object
required:
- elo
- winRate
- avgGenerationTimeMs
properties:
elo:
type: integer
description: ELO rating (higher is better, base 1200)
example: 1350
winRate:
type: number
format: float
description: Win rate percentage (0-100)
example: 61.2
avgGenerationTimeMs:
type: integer
nullable: true
description: Average generation time in milliseconds
example: 95000
RankingDistribution:
type: object
description: |
How many times this model finished in each placement across all
completed tournaments. Tournaments flagged as removed or bad are excluded.
required:
- first
- second
- third
- fourth
- total
properties:
first:
type: integer
description: Number of tournaments where this model ranked 1st
example: 3726
second:
type: integer
description: Number of tournaments where this model ranked 2nd
example: 2168
third:
type: integer
description: Number of tournaments where this model ranked 3rd
example: 367
fourth:
type: integer
description: Number of tournaments where this model ranked 4th
example: 284
total:
type: integer
description: Total tournaments (sum of all placements)
example: 6545
tags:
- name: Discovery
description: Discover available arenas and categories
- name: Models
description: Aggregate model data across all arenas
- name: Leaderboard
description: Access leaderboard rankings for AI models across different arenas