@auto.router/models 2026.11.17 → 2026.11.18
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/README.md +43 -0
- package/index.d.ts +16 -0
- package/models.json +165 -20
- package/package.json +1 -1
- package/schema.json +32 -2
package/README.md
CHANGED
|
@@ -4,6 +4,44 @@ Prices, context windows and roles for the AI models [AutoRouter](https://autorou
|
|
|
4
4
|
|
|
5
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
6
|
|
|
7
|
+
## Models
|
|
8
|
+
|
|
9
|
+
USD per million tokens, input / output. "On a plan" is AutoRouter's assumed price when a Claude or ChatGPT plan covers the model. "Plan value" is how many dollars of API-priced use the plan gives per dollar of its fee, so the plan price is the list price divided by it. `*` marks a model with no measurement of its own, which gets its vendor's lowest measured value. The nightly build rewrites this table from `models.json`.
|
|
10
|
+
|
|
11
|
+
<!-- models:start -->
|
|
12
|
+
| Model | Maker | Context | List price | On a plan | Plan value |
|
|
13
|
+
| --- | --- | --- | --- | --- | --- |
|
|
14
|
+
| Claude Fable 5.2 | Anthropic | 1M | $8 / $40 | $0.721 / $3.6 | 11.1x |
|
|
15
|
+
| GPT-6.2 Astra | OpenAI | 1.05M | $8 / $40 | $0.769 / $3.85 | 10.4x* |
|
|
16
|
+
| Claude Opus 5.5 | Anthropic | 1M | $4 / $20 | $0.0699 / $0.35 | 57.2x |
|
|
17
|
+
| GPT-5.6 Sol | OpenAI | 1.05M | $4 / $20 | $0.385 / $1.92 | 10.4x* |
|
|
18
|
+
| Claude Sonnet 5.5 | Anthropic | 1M | $2 / $10 | $0.0338 / $0.169 | 59.2x |
|
|
19
|
+
| Gemini 4 Carbon | Google | 1.05M | $2 / $10 | — | — |
|
|
20
|
+
| GPT-6 Sol | OpenAI | 1.05M | $2 / $10 | $0.154 / $0.769 | 13x |
|
|
21
|
+
| GPT-6.2 Sol | OpenAI | 1.05M | $2 / $10 | $0.192 / $0.962 | 10.4x* |
|
|
22
|
+
| Kimi K3.1 Pro | Moonshot AI | 1M | $2 / $10 | — | — |
|
|
23
|
+
| Grok 4.7 | xAI | 500K | $2 / $6 | — | — |
|
|
24
|
+
| GPT-6.1 Terra | OpenAI | 1.05M | $1 / $5 | $0.0961 / $0.481 | 10.4x* |
|
|
25
|
+
| Hy4 | Tencent | 1.05M | $0.417 / $1.25 | — | — |
|
|
26
|
+
| GPT-5.6 Luna | OpenAI | 1.05M | $0.2 / $1.2 | $0.0192 / $0.115 | 10.4x* |
|
|
27
|
+
| MiniMax M3.1 Flash | MiniMax | 1.05M | $0.15 / $0.6 | — | — |
|
|
28
|
+
| Claude Haiku 5.5 | Anthropic | 1M | $0.1 / $0.5 | $0.00901 / $0.045 | 11.1x* |
|
|
29
|
+
| GPT-6 Luna | OpenAI | 1.05M | $0.1 / $0.5 | $0.00962 / $0.0481 | 10.4x* |
|
|
30
|
+
| Muse Ember | Meta | 1.05M | $0.1 / $0.5 | — | — |
|
|
31
|
+
| Crouton Alpha | Unnamed | — | — | — | — |
|
|
32
|
+
| DeepSeek V4.1 Flash 1017 | DeepSeek | 1M | — | — | — |
|
|
33
|
+
| Gemini 4 Argon | Google | 1.05M | — | — | — |
|
|
34
|
+
| Gemini 4 Hydrogen | Google | 1M | — | — | — |
|
|
35
|
+
| GLM 5.3 | Z.ai | 1.05M | — | — | — |
|
|
36
|
+
| GLM 5.3 Flash | Z.ai | 1M | — | — | — |
|
|
37
|
+
| MiMo-V2.6-Flash | Xiaomi | 1.05M | — | — | — |
|
|
38
|
+
| MiMo-V2.6-Pro | Xiaomi | 1.05M | — | — | — |
|
|
39
|
+
| Muse Spark 1.3 | Meta | 1.05M | — | — | — |
|
|
40
|
+
| Muse Spark Open | Meta | 1.05M | — | — | — |
|
|
41
|
+
| Muse Wonder | Meta | 1.05M | — | — | — |
|
|
42
|
+
| Qwen4 Max | Alibaba | 1M | — | — | — |
|
|
43
|
+
<!-- models:end -->
|
|
44
|
+
|
|
7
45
|
## Use it
|
|
8
46
|
|
|
9
47
|
Raw file:
|
|
@@ -47,9 +85,14 @@ Each entry in `models`:
|
|
|
47
85
|
| `maxOutput` | Largest response in tokens |
|
|
48
86
|
| `modalities` | `input` and `output` types, such as `text` and `image` |
|
|
49
87
|
| `price` | List price in USD per million tokens, or `null` when no public price is known |
|
|
88
|
+
| `subscription` | AutoRouter's assumed price on a Claude or ChatGPT plan, USD per million tokens, or `null` |
|
|
50
89
|
|
|
51
90
|
`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
91
|
|
|
92
|
+
`subscription` is `price` divided by `multiple`: a plan's API-priced value per month over its fee, from [SemiAnalysis](https://newsletter.semianalysis.com/p/anthropic-subscriptions-offer-5x) (lowest current tier, agentic workload). `measured: false` means the model has no measurement of its own and gets its vendor's least generous multiple, the way AutoRouter's router prices it. `allowanceCap` is the share of the plan this model may use, when capped.
|
|
93
|
+
|
|
94
|
+
Units: every price is USD per 1,000,000 tokens; `contextWindow` and `maxOutput` are tokens. The file's `units` field says the same.
|
|
95
|
+
|
|
53
96
|
Any field without public evidence is `null`. `schema.json` is the JSON Schema for the file.
|
|
54
97
|
|
|
55
98
|
## Sources
|
package/index.d.ts
CHANGED
|
@@ -22,10 +22,26 @@ export type Model = {
|
|
|
22
22
|
checked: string | null;
|
|
23
23
|
})
|
|
24
24
|
| null;
|
|
25
|
+
/**
|
|
26
|
+
* AutoRouter's assumed price on a Claude or ChatGPT plan: `price` divided by
|
|
27
|
+
* the plan's value multiple. Null when no plan for the vendor is measured.
|
|
28
|
+
*/
|
|
29
|
+
subscription:
|
|
30
|
+
| (Rate & {
|
|
31
|
+
multiple: number;
|
|
32
|
+
/** False when the vendor's least generous measured multiple stands in. */
|
|
33
|
+
measured: boolean;
|
|
34
|
+
plans: string[] | null;
|
|
35
|
+
/** Share of the plan's allowance this model may use, when capped. */
|
|
36
|
+
allowanceCap: number | null;
|
|
37
|
+
})
|
|
38
|
+
| null;
|
|
25
39
|
};
|
|
26
40
|
|
|
27
41
|
export type Dataset = {
|
|
28
42
|
description: string;
|
|
43
|
+
units: Record<string, string>;
|
|
44
|
+
subscriptionValue: { measured: string; workload: string; note: string };
|
|
29
45
|
sources: Record<string, string>;
|
|
30
46
|
models: Model[];
|
|
31
47
|
};
|
package/models.json
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./schema.json",
|
|
3
|
-
"description": "AI models AutoRouter adds to Codex and Claude Code: list prices
|
|
3
|
+
"description": "AI models AutoRouter adds to Codex and Claude Code: list prices, assumed prices on a Claude or ChatGPT plan, context windows and roles. https://autorouter.com/models",
|
|
4
|
+
"units": {
|
|
5
|
+
"price": "USD per 1,000,000 tokens",
|
|
6
|
+
"subscription": "USD per 1,000,000 tokens, list price divided by the plan's value multiple",
|
|
7
|
+
"contextWindow": "tokens",
|
|
8
|
+
"maxOutput": "tokens"
|
|
9
|
+
},
|
|
4
10
|
"sources": {
|
|
5
11
|
"models": "https://api.autorouter.com/v1/mcp/public",
|
|
6
12
|
"prices": "https://autorouter.com/models",
|
|
7
|
-
"limits": "https://openrouter.ai/api/v1/models"
|
|
13
|
+
"limits": "https://openrouter.ai/api/v1/models",
|
|
14
|
+
"subscription": "https://newsletter.semianalysis.com/p/anthropic-subscriptions-offer-5x"
|
|
15
|
+
},
|
|
16
|
+
"subscriptionValue": {
|
|
17
|
+
"measured": "2026-11-10",
|
|
18
|
+
"workload": "agentic: 0.4% uncached input, 96.6% cache read, 2.6% cache write, 0.3% output",
|
|
19
|
+
"note": "multiple = a plan's API-priced value per month divided by its monthly fee, for the lowest current tier of each model. Claude Fable 5.2 postdates the article; AutoRouter measured it from a Max 20x account's rate-limit headers (plausible range 10.3x-13.5x), and its allowance cap is carried over from Fable 5.1."
|
|
8
20
|
},
|
|
9
21
|
"models": [
|
|
10
22
|
{
|
|
@@ -31,6 +43,18 @@
|
|
|
31
43
|
"output": 40,
|
|
32
44
|
"source": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
33
45
|
"checked": "2026-11-09"
|
|
46
|
+
},
|
|
47
|
+
"subscription": {
|
|
48
|
+
"multiple": 11.1,
|
|
49
|
+
"measured": true,
|
|
50
|
+
"plans": [
|
|
51
|
+
"max_5x",
|
|
52
|
+
"max_20x"
|
|
53
|
+
],
|
|
54
|
+
"allowanceCap": 0.5,
|
|
55
|
+
"input": 0.7207,
|
|
56
|
+
"cachedInput": 0.01802,
|
|
57
|
+
"output": 3.604
|
|
34
58
|
}
|
|
35
59
|
},
|
|
36
60
|
{
|
|
@@ -63,6 +87,15 @@
|
|
|
63
87
|
},
|
|
64
88
|
"source": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
65
89
|
"checked": "2026-11-09"
|
|
90
|
+
},
|
|
91
|
+
"subscription": {
|
|
92
|
+
"multiple": 11.1,
|
|
93
|
+
"measured": false,
|
|
94
|
+
"plans": null,
|
|
95
|
+
"allowanceCap": null,
|
|
96
|
+
"input": 0.009009,
|
|
97
|
+
"cachedInput": 0.0009009,
|
|
98
|
+
"output": 0.04505
|
|
66
99
|
}
|
|
67
100
|
},
|
|
68
101
|
{
|
|
@@ -89,6 +122,19 @@
|
|
|
89
122
|
"output": 20,
|
|
90
123
|
"source": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
91
124
|
"checked": "2026-11-09"
|
|
125
|
+
},
|
|
126
|
+
"subscription": {
|
|
127
|
+
"multiple": 57.2,
|
|
128
|
+
"measured": true,
|
|
129
|
+
"plans": [
|
|
130
|
+
"pro",
|
|
131
|
+
"max_5x",
|
|
132
|
+
"max_20x"
|
|
133
|
+
],
|
|
134
|
+
"allowanceCap": null,
|
|
135
|
+
"input": 0.06993,
|
|
136
|
+
"cachedInput": 0.003497,
|
|
137
|
+
"output": 0.3497
|
|
92
138
|
}
|
|
93
139
|
},
|
|
94
140
|
{
|
|
@@ -115,6 +161,19 @@
|
|
|
115
161
|
"output": 10,
|
|
116
162
|
"source": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
117
163
|
"checked": "2026-11-09"
|
|
164
|
+
},
|
|
165
|
+
"subscription": {
|
|
166
|
+
"multiple": 59.2,
|
|
167
|
+
"measured": true,
|
|
168
|
+
"plans": [
|
|
169
|
+
"pro",
|
|
170
|
+
"max_5x",
|
|
171
|
+
"max_20x"
|
|
172
|
+
],
|
|
173
|
+
"allowanceCap": null,
|
|
174
|
+
"input": 0.03378,
|
|
175
|
+
"cachedInput": 0.001689,
|
|
176
|
+
"output": 0.1689
|
|
118
177
|
}
|
|
119
178
|
},
|
|
120
179
|
{
|
|
@@ -134,7 +193,8 @@
|
|
|
134
193
|
"text"
|
|
135
194
|
]
|
|
136
195
|
},
|
|
137
|
-
"price": null
|
|
196
|
+
"price": null,
|
|
197
|
+
"subscription": null
|
|
138
198
|
},
|
|
139
199
|
{
|
|
140
200
|
"id": "google/gemini-4-argon",
|
|
@@ -156,7 +216,8 @@
|
|
|
156
216
|
"text"
|
|
157
217
|
]
|
|
158
218
|
},
|
|
159
|
-
"price": null
|
|
219
|
+
"price": null,
|
|
220
|
+
"subscription": null
|
|
160
221
|
},
|
|
161
222
|
{
|
|
162
223
|
"id": "google/gemini-4-carbon",
|
|
@@ -184,7 +245,8 @@
|
|
|
184
245
|
"output": 10,
|
|
185
246
|
"source": "https://openrouter.ai/api/v1/models",
|
|
186
247
|
"checked": "2026-11-11"
|
|
187
|
-
}
|
|
248
|
+
},
|
|
249
|
+
"subscription": null
|
|
188
250
|
},
|
|
189
251
|
{
|
|
190
252
|
"id": "google/gemini-4-hydrogen",
|
|
@@ -206,7 +268,8 @@
|
|
|
206
268
|
"text"
|
|
207
269
|
]
|
|
208
270
|
},
|
|
209
|
-
"price": null
|
|
271
|
+
"price": null,
|
|
272
|
+
"subscription": null
|
|
210
273
|
},
|
|
211
274
|
{
|
|
212
275
|
"id": "meta/muse-ember",
|
|
@@ -234,7 +297,8 @@
|
|
|
234
297
|
"output": 0.5,
|
|
235
298
|
"source": "https://openrouter.ai/api/v1/models",
|
|
236
299
|
"checked": "2026-11-11"
|
|
237
|
-
}
|
|
300
|
+
},
|
|
301
|
+
"subscription": null
|
|
238
302
|
},
|
|
239
303
|
{
|
|
240
304
|
"id": "meta/muse-spark-1.3",
|
|
@@ -255,7 +319,8 @@
|
|
|
255
319
|
"text"
|
|
256
320
|
]
|
|
257
321
|
},
|
|
258
|
-
"price": null
|
|
322
|
+
"price": null,
|
|
323
|
+
"subscription": null
|
|
259
324
|
},
|
|
260
325
|
{
|
|
261
326
|
"id": "meta/muse-spark-open",
|
|
@@ -277,7 +342,8 @@
|
|
|
277
342
|
"text"
|
|
278
343
|
]
|
|
279
344
|
},
|
|
280
|
-
"price": null
|
|
345
|
+
"price": null,
|
|
346
|
+
"subscription": null
|
|
281
347
|
},
|
|
282
348
|
{
|
|
283
349
|
"id": "meta/muse-wonder",
|
|
@@ -299,7 +365,8 @@
|
|
|
299
365
|
"text"
|
|
300
366
|
]
|
|
301
367
|
},
|
|
302
|
-
"price": null
|
|
368
|
+
"price": null,
|
|
369
|
+
"subscription": null
|
|
303
370
|
},
|
|
304
371
|
{
|
|
305
372
|
"id": "minimax/minimax-m3.1-flash",
|
|
@@ -325,7 +392,8 @@
|
|
|
325
392
|
"output": 0.6,
|
|
326
393
|
"source": "https://openrouter.ai/api/v1/models",
|
|
327
394
|
"checked": "2026-11-11"
|
|
328
|
-
}
|
|
395
|
+
},
|
|
396
|
+
"subscription": null
|
|
329
397
|
},
|
|
330
398
|
{
|
|
331
399
|
"id": "moonshot/kimi-k3.1-pro",
|
|
@@ -351,7 +419,8 @@
|
|
|
351
419
|
"output": 10,
|
|
352
420
|
"source": "https://openrouter.ai/api/v1/models",
|
|
353
421
|
"checked": "2026-11-11"
|
|
354
|
-
}
|
|
422
|
+
},
|
|
423
|
+
"subscription": null
|
|
355
424
|
},
|
|
356
425
|
{
|
|
357
426
|
"id": "openai/gpt-5.6-luna",
|
|
@@ -377,6 +446,15 @@
|
|
|
377
446
|
"output": 1.2,
|
|
378
447
|
"source": "https://openai.com/api/pricing",
|
|
379
448
|
"checked": null
|
|
449
|
+
},
|
|
450
|
+
"subscription": {
|
|
451
|
+
"multiple": 10.4,
|
|
452
|
+
"measured": false,
|
|
453
|
+
"plans": null,
|
|
454
|
+
"allowanceCap": null,
|
|
455
|
+
"input": 0.01923,
|
|
456
|
+
"cachedInput": 0.001923,
|
|
457
|
+
"output": 0.1154
|
|
380
458
|
}
|
|
381
459
|
},
|
|
382
460
|
{
|
|
@@ -403,6 +481,15 @@
|
|
|
403
481
|
"output": 20,
|
|
404
482
|
"source": "https://openai.com/api/pricing",
|
|
405
483
|
"checked": null
|
|
484
|
+
},
|
|
485
|
+
"subscription": {
|
|
486
|
+
"multiple": 10.4,
|
|
487
|
+
"measured": false,
|
|
488
|
+
"plans": null,
|
|
489
|
+
"allowanceCap": null,
|
|
490
|
+
"input": 0.3846,
|
|
491
|
+
"cachedInput": 0.03846,
|
|
492
|
+
"output": 1.923
|
|
406
493
|
}
|
|
407
494
|
},
|
|
408
495
|
{
|
|
@@ -429,6 +516,15 @@
|
|
|
429
516
|
"output": 0.5,
|
|
430
517
|
"source": "https://openai.com/api/pricing",
|
|
431
518
|
"checked": null
|
|
519
|
+
},
|
|
520
|
+
"subscription": {
|
|
521
|
+
"multiple": 10.4,
|
|
522
|
+
"measured": false,
|
|
523
|
+
"plans": null,
|
|
524
|
+
"allowanceCap": null,
|
|
525
|
+
"input": 0.009615,
|
|
526
|
+
"cachedInput": 0.0009615,
|
|
527
|
+
"output": 0.04808
|
|
432
528
|
}
|
|
433
529
|
},
|
|
434
530
|
{
|
|
@@ -455,6 +551,20 @@
|
|
|
455
551
|
"output": 10,
|
|
456
552
|
"source": "https://openai.com/api/pricing",
|
|
457
553
|
"checked": null
|
|
554
|
+
},
|
|
555
|
+
"subscription": {
|
|
556
|
+
"multiple": 13,
|
|
557
|
+
"measured": true,
|
|
558
|
+
"plans": [
|
|
559
|
+
"plus",
|
|
560
|
+
"pro_100",
|
|
561
|
+
"pro_200",
|
|
562
|
+
"pro_500"
|
|
563
|
+
],
|
|
564
|
+
"allowanceCap": null,
|
|
565
|
+
"input": 0.1538,
|
|
566
|
+
"cachedInput": 0.01538,
|
|
567
|
+
"output": 0.7692
|
|
458
568
|
}
|
|
459
569
|
},
|
|
460
570
|
{
|
|
@@ -481,6 +591,15 @@
|
|
|
481
591
|
"output": 5,
|
|
482
592
|
"source": "https://openrouter.ai/api/v1/models",
|
|
483
593
|
"checked": "2026-11-11"
|
|
594
|
+
},
|
|
595
|
+
"subscription": {
|
|
596
|
+
"multiple": 10.4,
|
|
597
|
+
"measured": false,
|
|
598
|
+
"plans": null,
|
|
599
|
+
"allowanceCap": null,
|
|
600
|
+
"input": 0.09615,
|
|
601
|
+
"cachedInput": 0.004808,
|
|
602
|
+
"output": 0.4808
|
|
484
603
|
}
|
|
485
604
|
},
|
|
486
605
|
{
|
|
@@ -507,6 +626,15 @@
|
|
|
507
626
|
"output": 40,
|
|
508
627
|
"source": "https://openai.com/api/pricing",
|
|
509
628
|
"checked": "2026-11-17"
|
|
629
|
+
},
|
|
630
|
+
"subscription": {
|
|
631
|
+
"multiple": 10.4,
|
|
632
|
+
"measured": false,
|
|
633
|
+
"plans": null,
|
|
634
|
+
"allowanceCap": null,
|
|
635
|
+
"input": 0.7692,
|
|
636
|
+
"cachedInput": 0.03846,
|
|
637
|
+
"output": 3.846
|
|
510
638
|
}
|
|
511
639
|
},
|
|
512
640
|
{
|
|
@@ -533,6 +661,15 @@
|
|
|
533
661
|
"output": 10,
|
|
534
662
|
"source": "https://openai.com/api/pricing",
|
|
535
663
|
"checked": "2026-11-17"
|
|
664
|
+
},
|
|
665
|
+
"subscription": {
|
|
666
|
+
"multiple": 10.4,
|
|
667
|
+
"measured": false,
|
|
668
|
+
"plans": null,
|
|
669
|
+
"allowanceCap": null,
|
|
670
|
+
"input": 0.1923,
|
|
671
|
+
"cachedInput": 0.009615,
|
|
672
|
+
"output": 0.9615
|
|
536
673
|
}
|
|
537
674
|
},
|
|
538
675
|
{
|
|
@@ -553,7 +690,8 @@
|
|
|
553
690
|
"text"
|
|
554
691
|
]
|
|
555
692
|
},
|
|
556
|
-
"price": null
|
|
693
|
+
"price": null,
|
|
694
|
+
"subscription": null
|
|
557
695
|
},
|
|
558
696
|
{
|
|
559
697
|
"id": "stealth/crouton-alpha",
|
|
@@ -564,7 +702,8 @@
|
|
|
564
702
|
"contextWindow": null,
|
|
565
703
|
"maxOutput": null,
|
|
566
704
|
"modalities": null,
|
|
567
|
-
"price": null
|
|
705
|
+
"price": null,
|
|
706
|
+
"subscription": null
|
|
568
707
|
},
|
|
569
708
|
{
|
|
570
709
|
"id": "tencent/hy4",
|
|
@@ -589,7 +728,8 @@
|
|
|
589
728
|
"output": 1.2505,
|
|
590
729
|
"source": "https://openrouter.ai/api/v1/models",
|
|
591
730
|
"checked": "2026-11-11"
|
|
592
|
-
}
|
|
731
|
+
},
|
|
732
|
+
"subscription": null
|
|
593
733
|
},
|
|
594
734
|
{
|
|
595
735
|
"id": "xai/grok-4.7",
|
|
@@ -615,7 +755,8 @@
|
|
|
615
755
|
"output": 6,
|
|
616
756
|
"source": "https://openrouter.ai/api/v1/models",
|
|
617
757
|
"checked": "2026-11-11"
|
|
618
|
-
}
|
|
758
|
+
},
|
|
759
|
+
"subscription": null
|
|
619
760
|
},
|
|
620
761
|
{
|
|
621
762
|
"id": "xiaomi/mimo-v2.6-flash",
|
|
@@ -636,7 +777,8 @@
|
|
|
636
777
|
"text"
|
|
637
778
|
]
|
|
638
779
|
},
|
|
639
|
-
"price": null
|
|
780
|
+
"price": null,
|
|
781
|
+
"subscription": null
|
|
640
782
|
},
|
|
641
783
|
{
|
|
642
784
|
"id": "xiaomi/mimo-v2.6-pro",
|
|
@@ -657,7 +799,8 @@
|
|
|
657
799
|
"text"
|
|
658
800
|
]
|
|
659
801
|
},
|
|
660
|
-
"price": null
|
|
802
|
+
"price": null,
|
|
803
|
+
"subscription": null
|
|
661
804
|
},
|
|
662
805
|
{
|
|
663
806
|
"id": "zai/glm-5.3-flash",
|
|
@@ -677,7 +820,8 @@
|
|
|
677
820
|
"text"
|
|
678
821
|
]
|
|
679
822
|
},
|
|
680
|
-
"price": null
|
|
823
|
+
"price": null,
|
|
824
|
+
"subscription": null
|
|
681
825
|
},
|
|
682
826
|
{
|
|
683
827
|
"id": "zai/glm-5p3",
|
|
@@ -695,7 +839,8 @@
|
|
|
695
839
|
"text"
|
|
696
840
|
]
|
|
697
841
|
},
|
|
698
|
-
"price": null
|
|
842
|
+
"price": null,
|
|
843
|
+
"subscription": null
|
|
699
844
|
}
|
|
700
845
|
]
|
|
701
846
|
}
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -3,11 +3,22 @@
|
|
|
3
3
|
"$id": "https://github.com/fractal-works/autorouter-models/schema.json",
|
|
4
4
|
"title": "AutoRouter models",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"required": ["description", "sources", "models"],
|
|
6
|
+
"required": ["description", "units", "sources", "subscriptionValue", "models"],
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": { "type": "string" },
|
|
10
10
|
"description": { "type": "string" },
|
|
11
|
+
"units": { "type": "object", "additionalProperties": { "type": "string" } },
|
|
12
|
+
"subscriptionValue": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["measured", "workload", "note"],
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"measured": { "type": "string", "format": "date" },
|
|
18
|
+
"workload": { "type": "string" },
|
|
19
|
+
"note": { "type": "string" }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
11
22
|
"sources": {
|
|
12
23
|
"type": "object",
|
|
13
24
|
"additionalProperties": { "type": "string", "format": "uri" }
|
|
@@ -21,7 +32,7 @@
|
|
|
21
32
|
"$defs": {
|
|
22
33
|
"model": {
|
|
23
34
|
"type": "object",
|
|
24
|
-
"required": ["id", "name", "vendor", "maker", "role", "contextWindow", "maxOutput", "modalities", "price"],
|
|
35
|
+
"required": ["id", "name", "vendor", "maker", "role", "contextWindow", "maxOutput", "modalities", "price", "subscription"],
|
|
25
36
|
"additionalProperties": false,
|
|
26
37
|
"properties": {
|
|
27
38
|
"id": { "type": "string", "pattern": "^[a-z0-9-]+/[a-z0-9][a-z0-9.-]*$" },
|
|
@@ -72,6 +83,25 @@
|
|
|
72
83
|
}
|
|
73
84
|
}
|
|
74
85
|
]
|
|
86
|
+
},
|
|
87
|
+
"subscription": {
|
|
88
|
+
"oneOf": [
|
|
89
|
+
{ "type": "null" },
|
|
90
|
+
{
|
|
91
|
+
"type": "object",
|
|
92
|
+
"required": ["multiple", "measured", "plans", "allowanceCap", "input", "cachedInput", "output"],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"properties": {
|
|
95
|
+
"multiple": { "type": "number", "exclusiveMinimum": 1 },
|
|
96
|
+
"measured": { "type": "boolean" },
|
|
97
|
+
"plans": { "type": ["array", "null"], "items": { "type": "string" } },
|
|
98
|
+
"allowanceCap": { "type": ["number", "null"], "exclusiveMinimum": 0, "exclusiveMaximum": 1 },
|
|
99
|
+
"input": { "$ref": "#/$defs/usd" },
|
|
100
|
+
"cachedInput": { "$ref": "#/$defs/usd" },
|
|
101
|
+
"output": { "$ref": "#/$defs/usd" }
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
75
105
|
}
|
|
76
106
|
}
|
|
77
107
|
},
|