@auto.router/models 0.0.0-stage → 2026.11.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fractal Works
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,71 @@
1
- # Temporary Holding Version
1
+ # @auto.router/models
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Prices, context windows and roles for the AI models [AutoRouter](https://autorouter.com) adds to Codex and Claude Code, as one JSON file. Rebuilt every night; a dated release is cut each day the data changes.
4
+
5
+ AutoRouter is a Mac app that puts these models in Codex and Claude Code and picks the right one for each task: [autorouter.com](https://autorouter.com).
6
+
7
+ ## Use it
8
+
9
+ Raw file:
10
+
11
+ ```
12
+ https://raw.githubusercontent.com/fractal-works/autorouter-models/main/models.json
13
+ ```
14
+
15
+ From npm:
16
+
17
+ ```sh
18
+ npm install @auto.router/models
19
+ ```
20
+
21
+ ```js
22
+ import { models } from "@auto.router/models";
23
+
24
+ const opus = models.find((model) => model.id === "anthropic/claude-opus-5-5");
25
+ console.log(opus.price.input, opus.price.output); // 4 20
26
+ ```
27
+
28
+ From the command line:
29
+
30
+ ```sh
31
+ npx @auto.router/models # the whole file
32
+ npx @auto.router/models opus # models whose id or name matches
33
+ ```
34
+
35
+ ## Fields
36
+
37
+ Each entry in `models`:
38
+
39
+ | Field | Meaning |
40
+ | --------------- | ---------------------------------------------------------------------------------------- |
41
+ | `id` | `vendor/slug`, as AutoRouter names the model |
42
+ | `name` | Display name |
43
+ | `vendor` | The id's vendor prefix |
44
+ | `maker` | The company that makes the model |
45
+ | `role` | One line on what the model is good for, as on [autorouter.com/models](https://autorouter.com/models) |
46
+ | `contextWindow` | Largest prompt in tokens |
47
+ | `maxOutput` | Largest response in tokens |
48
+ | `modalities` | `input` and `output` types, such as `text` and `image` |
49
+ | `price` | List price in USD per million tokens, or `null` when no public price is known |
50
+
51
+ `price` has `input`, `cachedInput` (cache reads) and `output`, plus `source` (where the price was read) and `checked` (the day it was last checked, when known). `longContext`, when present, replaces the rate for prompts over `above` tokens.
52
+
53
+ Any field without public evidence is `null`. `schema.json` is the JSON Schema for the file.
54
+
55
+ ## Sources
56
+
57
+ - Model list, names, roles and context windows: AutoRouter's public model list (`list_models` on `https://api.autorouter.com/v1/mcp/public`, no account needed).
58
+ - Prices: AutoRouter's published list prices, the ones on [autorouter.com/models](https://autorouter.com/models). A price ships only when it comes from a public list (the vendor's own pricing page or OpenRouter's public API). Other gateway rates are left out, so some models have `price: null`.
59
+ - Max output and modalities: [OpenRouter's public models API](https://openrouter.ai/api/v1/models).
60
+
61
+ To rebuild locally:
62
+
63
+ ```sh
64
+ npm install
65
+ npm run build
66
+ npm test
67
+ ```
68
+
69
+ ## Licence
70
+
71
+ Code is MIT (see `LICENSE`). The data in `models.json` is [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): use it for anything, and credit AutoRouter with a link to this repository or autorouter.com.
package/cli.js ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ /** Prints the dataset as JSON, or one model when given its id or a name fragment. */
3
+
4
+ import data from "./models.json" with { type: "json" };
5
+
6
+ const query = process.argv[2]?.toLowerCase();
7
+ const output = query
8
+ ? data.models.filter((m) => m.id === query || m.name.toLowerCase().includes(query))
9
+ : data;
10
+ console.log(JSON.stringify(output, null, 2));
package/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ /** Types for the AutoRouter models dataset. Prices are USD per million tokens. */
2
+
3
+ export type Rate = { input: number; cachedInput: number; output: number };
4
+
5
+ export type Model = {
6
+ /** `vendor/slug`, as AutoRouter names the model. */
7
+ id: string;
8
+ name: string;
9
+ vendor: string;
10
+ maker: string | null;
11
+ /** One line on what the model is good for. */
12
+ role: string | null;
13
+ contextWindow: number | null;
14
+ maxOutput: number | null;
15
+ modalities: { input: string[]; output: string[] } | null;
16
+ /** Null when no public list price is known. */
17
+ price:
18
+ | (Rate & {
19
+ /** Replaces the rate for prompts over `above` tokens. */
20
+ longContext?: Rate & { above: number };
21
+ source: string;
22
+ checked: string | null;
23
+ })
24
+ | null;
25
+ };
26
+
27
+ export type Dataset = {
28
+ description: string;
29
+ sources: Record<string, string>;
30
+ models: Model[];
31
+ };
32
+
33
+ export declare const models: Model[];
34
+ declare const data: Dataset;
35
+ export default data;
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ /** The AutoRouter models dataset: `models` is the list, the default export the whole file. */
2
+
3
+ import data from "./models.json" with { type: "json" };
4
+
5
+ export const models = data.models;
6
+ export default data;
package/models.json ADDED
@@ -0,0 +1,701 @@
1
+ {
2
+ "$schema": "./schema.json",
3
+ "description": "AI models AutoRouter adds to Codex and Claude Code: list prices in USD per million tokens, context windows and roles. https://autorouter.com/models",
4
+ "sources": {
5
+ "models": "https://api.autorouter.com/v1/mcp/public",
6
+ "prices": "https://autorouter.com/models",
7
+ "limits": "https://openrouter.ai/api/v1/models"
8
+ },
9
+ "models": [
10
+ {
11
+ "id": "anthropic/claude-fable-5-2",
12
+ "name": "Claude Fable 5.2",
13
+ "vendor": "anthropic",
14
+ "maker": "Anthropic",
15
+ "role": "Especially demanding, long-horizon coding, research and reasoning.",
16
+ "contextWindow": 1000000,
17
+ "maxOutput": 128000,
18
+ "modalities": {
19
+ "input": [
20
+ "file",
21
+ "image",
22
+ "text"
23
+ ],
24
+ "output": [
25
+ "text"
26
+ ]
27
+ },
28
+ "price": {
29
+ "input": 8,
30
+ "cachedInput": 0.2,
31
+ "output": 40,
32
+ "source": "https://platform.claude.com/docs/en/about-claude/pricing",
33
+ "checked": "2026-11-09"
34
+ }
35
+ },
36
+ {
37
+ "id": "anthropic/claude-haiku-5-5",
38
+ "name": "Claude Haiku 5.5",
39
+ "vendor": "anthropic",
40
+ "maker": "Anthropic",
41
+ "role": "Lower-priced Claude option for bounded everyday work.",
42
+ "contextWindow": 1000000,
43
+ "maxOutput": 128000,
44
+ "modalities": {
45
+ "input": [
46
+ "file",
47
+ "image",
48
+ "text"
49
+ ],
50
+ "output": [
51
+ "text"
52
+ ]
53
+ },
54
+ "price": {
55
+ "input": 0.1,
56
+ "cachedInput": 0.01,
57
+ "output": 0.5,
58
+ "longContext": {
59
+ "above": 100000,
60
+ "input": 0.5,
61
+ "cachedInput": 0.05,
62
+ "output": 2.5
63
+ },
64
+ "source": "https://platform.claude.com/docs/en/about-claude/pricing",
65
+ "checked": "2026-11-09"
66
+ }
67
+ },
68
+ {
69
+ "id": "anthropic/claude-opus-5-5",
70
+ "name": "Claude Opus 5.5",
71
+ "vendor": "anthropic",
72
+ "maker": "Anthropic",
73
+ "role": "Broad refactoring and demanding creative or editorial work.",
74
+ "contextWindow": 1000000,
75
+ "maxOutput": 128000,
76
+ "modalities": {
77
+ "input": [
78
+ "file",
79
+ "image",
80
+ "text"
81
+ ],
82
+ "output": [
83
+ "text"
84
+ ]
85
+ },
86
+ "price": {
87
+ "input": 4,
88
+ "cachedInput": 0.2,
89
+ "output": 20,
90
+ "source": "https://platform.claude.com/docs/en/about-claude/pricing",
91
+ "checked": "2026-11-09"
92
+ }
93
+ },
94
+ {
95
+ "id": "anthropic/claude-sonnet-5-5",
96
+ "name": "Claude Sonnet 5.5",
97
+ "vendor": "anthropic",
98
+ "maker": "Anthropic",
99
+ "role": "UI implementation, writing, and a faster Claude option.",
100
+ "contextWindow": 1000000,
101
+ "maxOutput": 128000,
102
+ "modalities": {
103
+ "input": [
104
+ "file",
105
+ "image",
106
+ "text"
107
+ ],
108
+ "output": [
109
+ "text"
110
+ ]
111
+ },
112
+ "price": {
113
+ "input": 2,
114
+ "cachedInput": 0.1,
115
+ "output": 10,
116
+ "source": "https://platform.claude.com/docs/en/about-claude/pricing",
117
+ "checked": "2026-11-09"
118
+ }
119
+ },
120
+ {
121
+ "id": "deepseek/deepseek-v4.1-flash-1017",
122
+ "name": "DeepSeek V4.1 Flash 1017",
123
+ "vendor": "deepseek",
124
+ "maker": "DeepSeek",
125
+ "role": "Bounded, well-specified code changes that are easy to verify.",
126
+ "contextWindow": 1000000,
127
+ "maxOutput": 943718,
128
+ "modalities": {
129
+ "input": [
130
+ "image",
131
+ "text"
132
+ ],
133
+ "output": [
134
+ "text"
135
+ ]
136
+ },
137
+ "price": null
138
+ },
139
+ {
140
+ "id": "google/gemini-4-argon",
141
+ "name": "Gemini 4 Argon",
142
+ "vendor": "google",
143
+ "maker": "Google",
144
+ "role": "Earlier Gemini 4 model, kept alongside Carbon and Hydrogen.",
145
+ "contextWindow": 1048576,
146
+ "maxOutput": 943718,
147
+ "modalities": {
148
+ "input": [
149
+ "audio",
150
+ "file",
151
+ "image",
152
+ "text",
153
+ "video"
154
+ ],
155
+ "output": [
156
+ "text"
157
+ ]
158
+ },
159
+ "price": null
160
+ },
161
+ {
162
+ "id": "google/gemini-4-carbon",
163
+ "name": "Gemini 4 Carbon",
164
+ "vendor": "google",
165
+ "maker": "Google",
166
+ "role": "Sustained agentic engineering and complex coding.",
167
+ "contextWindow": 1048576,
168
+ "maxOutput": 943718,
169
+ "modalities": {
170
+ "input": [
171
+ "audio",
172
+ "file",
173
+ "image",
174
+ "text",
175
+ "video"
176
+ ],
177
+ "output": [
178
+ "text"
179
+ ]
180
+ },
181
+ "price": {
182
+ "input": 2,
183
+ "cachedInput": 0.1,
184
+ "output": 10,
185
+ "source": "https://openrouter.ai/api/v1/models",
186
+ "checked": "2026-11-11"
187
+ }
188
+ },
189
+ {
190
+ "id": "google/gemini-4-hydrogen",
191
+ "name": "Gemini 4 Hydrogen",
192
+ "vendor": "google",
193
+ "maker": "Google",
194
+ "role": "Fast, lower-cost everyday coding and agentic work.",
195
+ "contextWindow": 1000000,
196
+ "maxOutput": 943718,
197
+ "modalities": {
198
+ "input": [
199
+ "audio",
200
+ "file",
201
+ "image",
202
+ "text",
203
+ "video"
204
+ ],
205
+ "output": [
206
+ "text"
207
+ ]
208
+ },
209
+ "price": null
210
+ },
211
+ {
212
+ "id": "meta/muse-ember",
213
+ "name": "Muse Ember",
214
+ "vendor": "meta",
215
+ "maker": "Meta",
216
+ "role": "Low-cost reasoning for agent sub-tasks and bounded coding.",
217
+ "contextWindow": 1048576,
218
+ "maxOutput": 943718,
219
+ "modalities": {
220
+ "input": [
221
+ "audio",
222
+ "file",
223
+ "image",
224
+ "text",
225
+ "video"
226
+ ],
227
+ "output": [
228
+ "text"
229
+ ]
230
+ },
231
+ "price": {
232
+ "input": 0.1,
233
+ "cachedInput": 0.004,
234
+ "output": 0.5,
235
+ "source": "https://openrouter.ai/api/v1/models",
236
+ "checked": "2026-11-11"
237
+ }
238
+ },
239
+ {
240
+ "id": "meta/muse-spark-1.3",
241
+ "name": "Muse Spark 1.3",
242
+ "vendor": "meta",
243
+ "maker": "Meta",
244
+ "role": "Metered choice for medium tasks when no subscription has allowance.",
245
+ "contextWindow": 1048576,
246
+ "maxOutput": 943718,
247
+ "modalities": {
248
+ "input": [
249
+ "file",
250
+ "image",
251
+ "text",
252
+ "video"
253
+ ],
254
+ "output": [
255
+ "text"
256
+ ]
257
+ },
258
+ "price": null
259
+ },
260
+ {
261
+ "id": "meta/muse-spark-open",
262
+ "name": "Muse Spark Open",
263
+ "vendor": "meta",
264
+ "maker": "Meta",
265
+ "role": "Meta's open-weight Muse, served through Ramp.",
266
+ "contextWindow": 1048544,
267
+ "maxOutput": 943718,
268
+ "modalities": {
269
+ "input": [
270
+ "audio",
271
+ "file",
272
+ "image",
273
+ "text",
274
+ "video"
275
+ ],
276
+ "output": [
277
+ "text"
278
+ ]
279
+ },
280
+ "price": null
281
+ },
282
+ {
283
+ "id": "meta/muse-wonder",
284
+ "name": "Muse Wonder",
285
+ "vendor": "meta",
286
+ "maker": "Meta",
287
+ "role": "Meta's frontier model; priced above Gemini 4 Argon.",
288
+ "contextWindow": 1048576,
289
+ "maxOutput": 943718,
290
+ "modalities": {
291
+ "input": [
292
+ "audio",
293
+ "file",
294
+ "image",
295
+ "text",
296
+ "video"
297
+ ],
298
+ "output": [
299
+ "text"
300
+ ]
301
+ },
302
+ "price": null
303
+ },
304
+ {
305
+ "id": "minimax/minimax-m3.1-flash",
306
+ "name": "MiniMax M3.1 Flash",
307
+ "vendor": "minimax",
308
+ "maker": "MiniMax",
309
+ "role": "Low-cost open-weight option for easy tasks.",
310
+ "contextWindow": 1048576,
311
+ "maxOutput": 524288,
312
+ "modalities": {
313
+ "input": [
314
+ "image",
315
+ "text",
316
+ "video"
317
+ ],
318
+ "output": [
319
+ "text"
320
+ ]
321
+ },
322
+ "price": {
323
+ "input": 0.15,
324
+ "cachedInput": 0.015,
325
+ "output": 0.6,
326
+ "source": "https://openrouter.ai/api/v1/models",
327
+ "checked": "2026-11-11"
328
+ }
329
+ },
330
+ {
331
+ "id": "moonshot/kimi-k3.1-pro",
332
+ "name": "Kimi K3.1 Pro",
333
+ "vendor": "moonshot",
334
+ "maker": "Moonshot AI",
335
+ "role": "Open-weight reasoning and coding across long supplied documents.",
336
+ "contextWindow": 1000000,
337
+ "maxOutput": 943718,
338
+ "modalities": {
339
+ "input": [
340
+ "image",
341
+ "text",
342
+ "video"
343
+ ],
344
+ "output": [
345
+ "text"
346
+ ]
347
+ },
348
+ "price": {
349
+ "input": 2,
350
+ "cachedInput": 0.2,
351
+ "output": 10,
352
+ "source": "https://openrouter.ai/api/v1/models",
353
+ "checked": "2026-11-11"
354
+ }
355
+ },
356
+ {
357
+ "id": "openai/gpt-5.6-luna",
358
+ "name": "GPT-5.6 Luna",
359
+ "vendor": "openai",
360
+ "maker": "OpenAI",
361
+ "role": "An older alternative kept for compatibility.",
362
+ "contextWindow": 1050000,
363
+ "maxOutput": 128000,
364
+ "modalities": {
365
+ "input": [
366
+ "file",
367
+ "image",
368
+ "text"
369
+ ],
370
+ "output": [
371
+ "text"
372
+ ]
373
+ },
374
+ "price": {
375
+ "input": 0.2,
376
+ "cachedInput": 0.02,
377
+ "output": 1.2,
378
+ "source": "https://openai.com/api/pricing",
379
+ "checked": null
380
+ }
381
+ },
382
+ {
383
+ "id": "openai/gpt-5.6-sol",
384
+ "name": "GPT-5.6 Sol",
385
+ "vendor": "openai",
386
+ "maker": "OpenAI",
387
+ "role": "An older alternative kept for compatibility.",
388
+ "contextWindow": 1050000,
389
+ "maxOutput": 128000,
390
+ "modalities": {
391
+ "input": [
392
+ "file",
393
+ "image",
394
+ "text"
395
+ ],
396
+ "output": [
397
+ "text"
398
+ ]
399
+ },
400
+ "price": {
401
+ "input": 4,
402
+ "cachedInput": 0.4,
403
+ "output": 20,
404
+ "source": "https://openai.com/api/pricing",
405
+ "checked": null
406
+ }
407
+ },
408
+ {
409
+ "id": "openai/gpt-6-luna",
410
+ "name": "GPT-6 Luna",
411
+ "vendor": "openai",
412
+ "maker": "OpenAI",
413
+ "role": "Routine extraction, text processing and simple tasks.",
414
+ "contextWindow": 1050000,
415
+ "maxOutput": 128000,
416
+ "modalities": {
417
+ "input": [
418
+ "file",
419
+ "image",
420
+ "text"
421
+ ],
422
+ "output": [
423
+ "text"
424
+ ]
425
+ },
426
+ "price": {
427
+ "input": 0.1,
428
+ "cachedInput": 0.01,
429
+ "output": 0.5,
430
+ "source": "https://openai.com/api/pricing",
431
+ "checked": null
432
+ }
433
+ },
434
+ {
435
+ "id": "openai/gpt-6-sol",
436
+ "name": "GPT-6 Sol",
437
+ "vendor": "openai",
438
+ "maker": "OpenAI",
439
+ "role": "A faster-turnaround alternative to GPT-6.2 Sol.",
440
+ "contextWindow": 1050000,
441
+ "maxOutput": 128000,
442
+ "modalities": {
443
+ "input": [
444
+ "file",
445
+ "image",
446
+ "text"
447
+ ],
448
+ "output": [
449
+ "text"
450
+ ]
451
+ },
452
+ "price": {
453
+ "input": 2,
454
+ "cachedInput": 0.2,
455
+ "output": 10,
456
+ "source": "https://openai.com/api/pricing",
457
+ "checked": null
458
+ }
459
+ },
460
+ {
461
+ "id": "openai/gpt-6.1-terra",
462
+ "name": "GPT-6.1 Terra",
463
+ "vendor": "openai",
464
+ "maker": "OpenAI",
465
+ "role": "Lower-priced everyday coding, writing and screen or image work.",
466
+ "contextWindow": 1050000,
467
+ "maxOutput": 128000,
468
+ "modalities": {
469
+ "input": [
470
+ "file",
471
+ "image",
472
+ "text"
473
+ ],
474
+ "output": [
475
+ "text"
476
+ ]
477
+ },
478
+ "price": {
479
+ "input": 1,
480
+ "cachedInput": 0.05,
481
+ "output": 5,
482
+ "source": "https://openrouter.ai/api/v1/models",
483
+ "checked": "2026-11-11"
484
+ }
485
+ },
486
+ {
487
+ "id": "openai/gpt-6.2-astra",
488
+ "name": "GPT-6.2 Astra",
489
+ "vendor": "openai",
490
+ "maker": "OpenAI",
491
+ "role": "Difficult architecture, security, science and computer-use work.",
492
+ "contextWindow": 1050000,
493
+ "maxOutput": 128000,
494
+ "modalities": {
495
+ "input": [
496
+ "file",
497
+ "image",
498
+ "text"
499
+ ],
500
+ "output": [
501
+ "text"
502
+ ]
503
+ },
504
+ "price": {
505
+ "input": 8,
506
+ "cachedInput": 0.4,
507
+ "output": 40,
508
+ "source": "https://openai.com/api/pricing",
509
+ "checked": "2026-11-17"
510
+ }
511
+ },
512
+ {
513
+ "id": "openai/gpt-6.2-sol",
514
+ "name": "GPT-6.2 Sol",
515
+ "vendor": "openai",
516
+ "maker": "OpenAI",
517
+ "role": "Default for general implementation, grounded research and analysis.",
518
+ "contextWindow": 1050000,
519
+ "maxOutput": 128000,
520
+ "modalities": {
521
+ "input": [
522
+ "file",
523
+ "image",
524
+ "text"
525
+ ],
526
+ "output": [
527
+ "text"
528
+ ]
529
+ },
530
+ "price": {
531
+ "input": 2,
532
+ "cachedInput": 0.1,
533
+ "output": 10,
534
+ "source": "https://openai.com/api/pricing",
535
+ "checked": "2026-11-17"
536
+ }
537
+ },
538
+ {
539
+ "id": "qwen/qwen4-max",
540
+ "name": "Qwen4 Max",
541
+ "vendor": "qwen",
542
+ "maker": "Alibaba",
543
+ "role": "Lower-cost long-context coding and document analysis.",
544
+ "contextWindow": 1000000,
545
+ "maxOutput": 131072,
546
+ "modalities": {
547
+ "input": [
548
+ "image",
549
+ "text",
550
+ "video"
551
+ ],
552
+ "output": [
553
+ "text"
554
+ ]
555
+ },
556
+ "price": null
557
+ },
558
+ {
559
+ "id": "stealth/crouton-alpha",
560
+ "name": "Crouton Alpha",
561
+ "vendor": "stealth",
562
+ "maker": "Unnamed",
563
+ "role": "Free stealth model for high-volume, repeated agent sub-tasks; its developer is unnamed.",
564
+ "contextWindow": null,
565
+ "maxOutput": null,
566
+ "modalities": null,
567
+ "price": null
568
+ },
569
+ {
570
+ "id": "tencent/hy4",
571
+ "name": "Hy4",
572
+ "vendor": "tencent",
573
+ "maker": "Tencent",
574
+ "role": "Long-context analysis and bounded frontend or game-development tasks.",
575
+ "contextWindow": 1048576,
576
+ "maxOutput": 65536,
577
+ "modalities": {
578
+ "input": [
579
+ "image",
580
+ "text"
581
+ ],
582
+ "output": [
583
+ "text"
584
+ ]
585
+ },
586
+ "price": {
587
+ "input": 0.417,
588
+ "cachedInput": 0.021,
589
+ "output": 1.2505,
590
+ "source": "https://openrouter.ai/api/v1/models",
591
+ "checked": "2026-11-11"
592
+ }
593
+ },
594
+ {
595
+ "id": "xai/grok-4.7",
596
+ "name": "Grok 4.7",
597
+ "vendor": "xai",
598
+ "maker": "xAI",
599
+ "role": "A second opinion when you ask for one.",
600
+ "contextWindow": 500000,
601
+ "maxOutput": 450000,
602
+ "modalities": {
603
+ "input": [
604
+ "file",
605
+ "image",
606
+ "text"
607
+ ],
608
+ "output": [
609
+ "text"
610
+ ]
611
+ },
612
+ "price": {
613
+ "input": 2,
614
+ "cachedInput": 0.5,
615
+ "output": 6,
616
+ "source": "https://openrouter.ai/api/v1/models",
617
+ "checked": "2026-11-11"
618
+ }
619
+ },
620
+ {
621
+ "id": "xiaomi/mimo-v2.6-flash",
622
+ "name": "MiMo-V2.6-Flash",
623
+ "vendor": "xiaomi",
624
+ "maker": "Xiaomi",
625
+ "role": "Cheapest open-weight option for simple tasks.",
626
+ "contextWindow": 1048576,
627
+ "maxOutput": 131072,
628
+ "modalities": {
629
+ "input": [
630
+ "audio",
631
+ "image",
632
+ "text",
633
+ "video"
634
+ ],
635
+ "output": [
636
+ "text"
637
+ ]
638
+ },
639
+ "price": null
640
+ },
641
+ {
642
+ "id": "xiaomi/mimo-v2.6-pro",
643
+ "name": "MiMo-V2.6-Pro",
644
+ "vendor": "xiaomi",
645
+ "maker": "Xiaomi",
646
+ "role": "Strong open-weight generalist at a low price.",
647
+ "contextWindow": 1048576,
648
+ "maxOutput": 131072,
649
+ "modalities": {
650
+ "input": [
651
+ "audio",
652
+ "image",
653
+ "text",
654
+ "video"
655
+ ],
656
+ "output": [
657
+ "text"
658
+ ]
659
+ },
660
+ "price": null
661
+ },
662
+ {
663
+ "id": "zai/glm-5.3-flash",
664
+ "name": "GLM 5.3 Flash",
665
+ "vendor": "zai",
666
+ "maker": "Z.ai",
667
+ "role": "Cheap structured extraction, counts and checklists.",
668
+ "contextWindow": 1000000,
669
+ "maxOutput": 131072,
670
+ "modalities": {
671
+ "input": [
672
+ "image",
673
+ "text",
674
+ "video"
675
+ ],
676
+ "output": [
677
+ "text"
678
+ ]
679
+ },
680
+ "price": null
681
+ },
682
+ {
683
+ "id": "zai/glm-5p3",
684
+ "name": "GLM 5.3",
685
+ "vendor": "zai",
686
+ "maker": "Z.ai",
687
+ "role": "Higher-capability open-weight coding.",
688
+ "contextWindow": 1048576,
689
+ "maxOutput": 943718,
690
+ "modalities": {
691
+ "input": [
692
+ "text"
693
+ ],
694
+ "output": [
695
+ "text"
696
+ ]
697
+ },
698
+ "price": null
699
+ }
700
+ ]
701
+ }
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@auto.router/models",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2026.11.17",
4
+ "description": "AI model prices, context windows and roles, as JSON. From AutoRouter.",
5
+ "private": false,
6
+ "type": "module",
7
+ "license": "(MIT AND CC-BY-4.0)",
8
+ "homepage": "https://autorouter.com/models",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/fractal-works/autorouter-models.git"
12
+ },
13
+ "keywords": [
14
+ "llm",
15
+ "ai",
16
+ "models",
17
+ "pricing",
18
+ "context-window",
19
+ "tokens"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "types": "./index.d.ts",
24
+ "default": "./index.js"
25
+ },
26
+ "./models.json": "./models.json",
27
+ "./schema.json": "./schema.json"
28
+ },
29
+ "types": "./index.d.ts",
30
+ "bin": {
31
+ "autorouter-models": "cli.js"
32
+ },
33
+ "files": [
34
+ "index.js",
35
+ "index.d.ts",
36
+ "cli.js",
37
+ "models.json",
38
+ "schema.json"
39
+ ],
40
+ "engines": {
41
+ "node": ">=20.10"
42
+ },
43
+ "scripts": {
44
+ "build": "node scripts/build.mjs",
45
+ "test": "node --test"
46
+ },
47
+ "devDependencies": {
48
+ "ajv": "8.17.1",
49
+ "ajv-formats": "3.0.1"
50
+ }
51
+ }
package/schema.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/fractal-works/autorouter-models/schema.json",
4
+ "title": "AutoRouter models",
5
+ "type": "object",
6
+ "required": ["description", "sources", "models"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "$schema": { "type": "string" },
10
+ "description": { "type": "string" },
11
+ "sources": {
12
+ "type": "object",
13
+ "additionalProperties": { "type": "string", "format": "uri" }
14
+ },
15
+ "models": {
16
+ "type": "array",
17
+ "minItems": 1,
18
+ "items": { "$ref": "#/$defs/model" }
19
+ }
20
+ },
21
+ "$defs": {
22
+ "model": {
23
+ "type": "object",
24
+ "required": ["id", "name", "vendor", "maker", "role", "contextWindow", "maxOutput", "modalities", "price"],
25
+ "additionalProperties": false,
26
+ "properties": {
27
+ "id": { "type": "string", "pattern": "^[a-z0-9-]+/[a-z0-9][a-z0-9.-]*$" },
28
+ "name": { "type": "string", "minLength": 1 },
29
+ "vendor": { "type": "string", "minLength": 1 },
30
+ "maker": { "type": ["string", "null"] },
31
+ "role": { "type": ["string", "null"] },
32
+ "contextWindow": { "type": ["integer", "null"], "minimum": 1 },
33
+ "maxOutput": { "type": ["integer", "null"], "minimum": 1 },
34
+ "modalities": {
35
+ "oneOf": [
36
+ { "type": "null" },
37
+ {
38
+ "type": "object",
39
+ "required": ["input", "output"],
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "input": { "type": "array", "items": { "type": "string" } },
43
+ "output": { "type": "array", "items": { "type": "string" } }
44
+ }
45
+ }
46
+ ]
47
+ },
48
+ "price": {
49
+ "oneOf": [
50
+ { "type": "null" },
51
+ {
52
+ "type": "object",
53
+ "required": ["input", "cachedInput", "output", "source", "checked"],
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "input": { "$ref": "#/$defs/usd" },
57
+ "cachedInput": { "$ref": "#/$defs/usd" },
58
+ "output": { "$ref": "#/$defs/usd" },
59
+ "longContext": {
60
+ "type": "object",
61
+ "required": ["above", "input", "cachedInput", "output"],
62
+ "additionalProperties": false,
63
+ "properties": {
64
+ "above": { "type": "integer", "minimum": 1 },
65
+ "input": { "$ref": "#/$defs/usd" },
66
+ "cachedInput": { "$ref": "#/$defs/usd" },
67
+ "output": { "$ref": "#/$defs/usd" }
68
+ }
69
+ },
70
+ "source": { "type": "string", "format": "uri" },
71
+ "checked": { "type": ["string", "null"], "format": "date" }
72
+ }
73
+ }
74
+ ]
75
+ }
76
+ }
77
+ },
78
+ "usd": { "type": "number", "exclusiveMinimum": 0 }
79
+ }
80
+ }