@grida/ai-models 1.20261011.4 → 1.20261013.0

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 CHANGED
@@ -5,7 +5,7 @@ provider bindings, and published prices, with the labs that make them and their
5
5
  logos. Every fact cites a first-party source.
6
6
 
7
7
  This package is the data, published unchanged from release
8
- [`v1.20261011.4`](https://github.com/gridaco/models/releases/tag/v1.20261011.4) of [gridaco/models](https://github.com/gridaco/models). It contains no code.
8
+ [`v1.20261013.0`](https://github.com/gridaco/models/releases/tag/v1.20261013.0) of [gridaco/models](https://github.com/gridaco/models). It contains no code.
9
9
 
10
10
  | file | contents |
11
11
  | --- | --- |
@@ -25,7 +25,7 @@ From a CDN, without installing:
25
25
 
26
26
  ```
27
27
  https://cdn.jsdelivr.net/npm/@grida/ai-models@1/models.json
28
- https://cdn.jsdelivr.net/npm/@grida/ai-models@1.20261011.4/models.json
28
+ https://cdn.jsdelivr.net/npm/@grida/ai-models@1.20261013.0/models.json
29
29
  ```
30
30
 
31
31
  ## Versions
package/manifest.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "grida-models",
3
- "version": "v1.20261011.4",
3
+ "version": "v1.20261013.0",
4
4
  "schema_version": 1,
5
- "commit": "c5d5c76720ad5a24c1ba0a56de5534f8737db85a",
6
- "created": "2026-10-11T17:43:04Z",
7
- "source": "https://github.com/gridaco/models/tree/c5d5c76720ad5a24c1ba0a56de5534f8737db85a/catalogue",
8
- "digest": "sha256:d8c3d9119d8626668491b96b450366c9b3226a3f5cb9095dd84cd3cf4f500ed6",
5
+ "commit": "7b8be6c4daab8e385d7bb7af009a2fc982522459",
6
+ "created": "2026-10-13T12:39:05Z",
7
+ "source": "https://github.com/gridaco/models/tree/7b8be6c4daab8e385d7bb7af009a2fc982522459/catalogue",
8
+ "digest": "sha256:408e48fd5af6745df6331980e0a01b878dc120b5aa6949ab3e8be9e2e92d937c",
9
9
  "counts": {
10
10
  "cards": 61,
11
11
  "labs": 14
@@ -16,8 +16,8 @@
16
16
  "bytes": 25920
17
17
  },
18
18
  "README.md": {
19
- "sha256": "5fcb0aa66c25f3d6a199d0186a149caa35299de4f592dc58fd9b61bbe38107f7",
20
- "bytes": 6102
19
+ "sha256": "24dc2be40afb3aa64da8b04e2e664865ac6d3a7b7d5b258adb3c1241cc00d004",
20
+ "bytes": 16528
21
21
  },
22
22
  "labs.json": {
23
23
  "sha256": "b65f0817cce0dcfec9d5393d7d8f2c5e7d13d957d71ddaf32b481f83d2f6bad4",
@@ -88,8 +88,8 @@
88
88
  "bytes": 2469
89
89
  },
90
90
  "schemas/models.schema.json": {
91
- "sha256": "c057b96596390774b404dbef89d7401131da931192bce80f223f1d1cb3cacf3e",
92
- "bytes": 5820
91
+ "sha256": "e7c3171e164cefb53449c50b85dcb640b57884a74e9a814980a5e3785308783c",
92
+ "bytes": 28929
93
93
  }
94
94
  }
95
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grida/ai-models",
3
- "version": "1.20261011.4",
3
+ "version": "1.20261013.0",
4
4
  "description": "A hand-curated, source-backed catalogue of AI models, their labs, and published prices.",
5
5
  "keywords": [
6
6
  "ai",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://grida.co/schemas/ai-model-facts-v1.json",
4
4
  "title": "Canonical model facts, authoring envelope version 1",
5
- "description": "Structural interchange schema. Generated TypeScript satisfies declarations additionally check each modality's detailed capability and pricing vocabulary.",
5
+ "description": "Structural interchange schema with sourced, additive model and serving-provider facts.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": [
@@ -62,7 +62,26 @@
62
62
  "type": "object",
63
63
  "additionalProperties": {
64
64
  "type": "object",
65
- "required": ["id", "label"]
65
+ "required": ["id", "label"],
66
+ "properties": {
67
+ "distribution": {
68
+ "$ref": "#/$defs/distribution"
69
+ },
70
+ "providers": {
71
+ "type": "object",
72
+ "additionalProperties": {
73
+ "$ref": "#/$defs/provider_binding"
74
+ }
75
+ },
76
+ "reference_provider": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "description": "Native API binding to present first as a model reference; not a routing choice."
80
+ },
81
+ "provider_coverage": {
82
+ "$ref": "#/$defs/provider_coverage"
83
+ }
84
+ }
66
85
  }
67
86
  },
68
87
  "three_d.rig_check.operation": {
@@ -75,6 +94,7 @@
75
94
  "provider": {
76
95
  "const": "tripo"
77
96
  },
97
+ "distribution": false,
78
98
  "binding_id": {
79
99
  "const": "rig-check"
80
100
  },
@@ -84,6 +104,74 @@
84
104
  "items": {
85
105
  "type": "string"
86
106
  }
107
+ },
108
+ "label": {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ "vendor": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "description": "Lab ID resolving in labs.json; independent of the serving provider."
116
+ },
117
+ "release": {
118
+ "type": "object",
119
+ "required": ["date", "basis", "source_url"],
120
+ "additionalProperties": false,
121
+ "properties": {
122
+ "date": {
123
+ "type": ["string", "null"],
124
+ "format": "date"
125
+ },
126
+ "basis": {
127
+ "enum": ["model", "provider_endpoint"]
128
+ },
129
+ "source_url": {
130
+ "type": "string",
131
+ "pattern": "^https://"
132
+ }
133
+ },
134
+ "if": {
135
+ "properties": {
136
+ "date": {
137
+ "type": "null"
138
+ }
139
+ }
140
+ },
141
+ "then": {
142
+ "properties": {
143
+ "basis": {
144
+ "const": "provider_endpoint"
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "capabilities": {
150
+ "$ref": "#/$defs/capabilities"
151
+ },
152
+ "token_pricing": {
153
+ "$ref": "#/$defs/token_pricing"
154
+ },
155
+ "endpoints": {
156
+ "type": "array",
157
+ "minItems": 1,
158
+ "items": {
159
+ "$ref": "#/$defs/provider_endpoint"
160
+ }
161
+ },
162
+ "providers": {
163
+ "type": "object",
164
+ "additionalProperties": {
165
+ "$ref": "#/$defs/provider_binding"
166
+ }
167
+ },
168
+ "reference_provider": {
169
+ "type": "string",
170
+ "minLength": 1,
171
+ "description": "Native API binding to present first as a model reference; not a routing choice."
172
+ },
173
+ "provider_coverage": {
174
+ "$ref": "#/$defs/provider_coverage"
87
175
  }
88
176
  }
89
177
  }
@@ -144,18 +232,43 @@
144
232
  "providers": {
145
233
  "type": "object",
146
234
  "additionalProperties": {
147
- "type": "object",
148
- "required": ["provider", "id"],
149
- "properties": {
150
- "provider": {
151
- "type": "string"
152
- },
153
- "id": {
154
- "type": "string",
155
- "minLength": 1
156
- }
157
- }
235
+ "$ref": "#/$defs/provider_binding"
158
236
  }
237
+ },
238
+ "vendor": {
239
+ "type": "string",
240
+ "minLength": 1,
241
+ "description": "Lab ID resolving in labs.json; independent of the serving provider."
242
+ },
243
+ "distribution": {
244
+ "$ref": "#/$defs/distribution"
245
+ },
246
+ "output_token_calculator": {
247
+ "$ref": "#/$defs/output_token_calculator"
248
+ },
249
+ "vision_tokenization": {
250
+ "$ref": "#/$defs/vision_tokenization"
251
+ },
252
+ "capabilities": {
253
+ "$ref": "#/$defs/capabilities"
254
+ },
255
+ "token_pricing": {
256
+ "$ref": "#/$defs/token_pricing"
257
+ },
258
+ "endpoints": {
259
+ "type": "array",
260
+ "minItems": 1,
261
+ "items": {
262
+ "$ref": "#/$defs/provider_endpoint"
263
+ }
264
+ },
265
+ "reference_provider": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "description": "Native API binding to present first as a model reference; not a routing choice."
269
+ },
270
+ "provider_coverage": {
271
+ "$ref": "#/$defs/provider_coverage"
159
272
  }
160
273
  }
161
274
  },
@@ -225,6 +338,771 @@
225
338
  }
226
339
  }
227
340
  }
341
+ },
342
+ "provider_endpoint": {
343
+ "type": "object",
344
+ "additionalProperties": false,
345
+ "required": ["id", "input", "source_url"],
346
+ "properties": {
347
+ "id": {
348
+ "type": "string",
349
+ "minLength": 1
350
+ },
351
+ "input": {
352
+ "enum": ["text", "image", "video", "audio", "task", "multi_image", "asset"]
353
+ },
354
+ "source_url": {
355
+ "type": "string",
356
+ "format": "uri",
357
+ "pattern": "^https://[^/]+(?:/|$)"
358
+ },
359
+ "capabilities": {
360
+ "$ref": "#/$defs/capabilities"
361
+ },
362
+ "token_pricing": {
363
+ "$ref": "#/$defs/token_pricing"
364
+ },
365
+ "parameters": {
366
+ "$ref": "#/$defs/parameters"
367
+ },
368
+ "image_constraints": {
369
+ "$ref": "#/$defs/image_constraints"
370
+ },
371
+ "limits": {
372
+ "$ref": "#/$defs/limits"
373
+ },
374
+ "operation": {
375
+ "type": "string",
376
+ "minLength": 1
377
+ },
378
+ "interface": {
379
+ "type": "string",
380
+ "minLength": 1
381
+ },
382
+ "published_pricing": {
383
+ "$ref": "#/$defs/published_pricing"
384
+ },
385
+ "request_schema_url": {
386
+ "type": "string",
387
+ "format": "uri",
388
+ "pattern": "^https://[^/]+(?:/|$)"
389
+ },
390
+ "result_schema_url": {
391
+ "type": "string",
392
+ "format": "uri",
393
+ "pattern": "^https://[^/]+(?:/|$)"
394
+ }
395
+ }
396
+ },
397
+ "capabilities": {
398
+ "type": "object",
399
+ "additionalProperties": false,
400
+ "required": ["source_url"],
401
+ "minProperties": 2,
402
+ "properties": {
403
+ "source_url": {
404
+ "type": "string",
405
+ "format": "uri",
406
+ "pattern": "^https://[^/]+(?:/|$)"
407
+ },
408
+ "image_input": {
409
+ "type": "boolean"
410
+ },
411
+ "tools": {
412
+ "type": "boolean"
413
+ },
414
+ "reasoning": {
415
+ "type": "boolean"
416
+ },
417
+ "structured_output": {
418
+ "type": "boolean"
419
+ },
420
+ "streaming": {
421
+ "type": "boolean"
422
+ }
423
+ }
424
+ },
425
+ "output_token_calculator": {
426
+ "type": "object",
427
+ "additionalProperties": false,
428
+ "required": [
429
+ "source_url",
430
+ "area_offset",
431
+ "area_divisor",
432
+ "short_axis_rounding",
433
+ "token_rounding",
434
+ "quality_axes"
435
+ ],
436
+ "properties": {
437
+ "source_url": {
438
+ "type": "string",
439
+ "format": "uri",
440
+ "pattern": "^https://[^/]+(?:/|$)"
441
+ },
442
+ "area_offset": {
443
+ "type": "integer",
444
+ "minimum": 0
445
+ },
446
+ "area_divisor": {
447
+ "type": "integer",
448
+ "minimum": 1
449
+ },
450
+ "short_axis_rounding": {
451
+ "enum": ["nearest_ties_even"]
452
+ },
453
+ "token_rounding": {
454
+ "enum": ["ceil"]
455
+ },
456
+ "quality_axes": {
457
+ "type": "object",
458
+ "minProperties": 1,
459
+ "propertyNames": {
460
+ "pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
461
+ },
462
+ "additionalProperties": {
463
+ "type": "integer",
464
+ "minimum": 1
465
+ }
466
+ },
467
+ "examples": {
468
+ "type": "array",
469
+ "minItems": 1,
470
+ "items": {
471
+ "$ref": "#/$defs/output_token_example"
472
+ }
473
+ },
474
+ "source_js_url": {
475
+ "type": "string",
476
+ "format": "uri",
477
+ "pattern": "^https://[^/]+(?:/|$)"
478
+ }
479
+ }
480
+ },
481
+ "output_token_example": {
482
+ "type": "object",
483
+ "additionalProperties": false,
484
+ "required": ["width", "height", "quality", "source_url"],
485
+ "anyOf": [
486
+ {
487
+ "required": ["output_tokens"]
488
+ },
489
+ {
490
+ "required": ["usd"]
491
+ }
492
+ ],
493
+ "dependentRequired": {
494
+ "usd_precision": ["usd"]
495
+ },
496
+ "properties": {
497
+ "width": {
498
+ "type": "integer",
499
+ "minimum": 1
500
+ },
501
+ "height": {
502
+ "type": "integer",
503
+ "minimum": 1
504
+ },
505
+ "quality": {
506
+ "type": "string",
507
+ "minLength": 1
508
+ },
509
+ "output_tokens": {
510
+ "type": "integer",
511
+ "minimum": 1
512
+ },
513
+ "usd": {
514
+ "type": "number",
515
+ "minimum": 0
516
+ },
517
+ "usd_precision": {
518
+ "type": "integer",
519
+ "minimum": 0,
520
+ "maximum": 12
521
+ },
522
+ "source_url": {
523
+ "type": "string",
524
+ "format": "uri",
525
+ "pattern": "^https://[^/]+(?:/|$)"
526
+ }
527
+ }
528
+ },
529
+ "vision_tokenization": {
530
+ "type": "object",
531
+ "additionalProperties": false,
532
+ "required": ["source_url"],
533
+ "minProperties": 2,
534
+ "properties": {
535
+ "source_url": {
536
+ "type": "string",
537
+ "format": "uri",
538
+ "pattern": "^https://[^/]+(?:/|$)"
539
+ },
540
+ "patch_size_px": {
541
+ "type": "integer",
542
+ "minimum": 1
543
+ },
544
+ "token_multiplier": {
545
+ "type": "number",
546
+ "exclusiveMinimum": 0
547
+ },
548
+ "detail_patch_budgets": {
549
+ "type": "object",
550
+ "minProperties": 1,
551
+ "propertyNames": {
552
+ "pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
553
+ },
554
+ "additionalProperties": {
555
+ "type": "integer",
556
+ "minimum": 1
557
+ }
558
+ },
559
+ "detail_token_budgets": {
560
+ "type": "object",
561
+ "minProperties": 1,
562
+ "propertyNames": {
563
+ "pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
564
+ },
565
+ "additionalProperties": {
566
+ "type": "integer",
567
+ "minimum": 1
568
+ }
569
+ },
570
+ "maximum_patch_count": {
571
+ "type": "integer",
572
+ "minimum": 1
573
+ },
574
+ "maximum_tokens_per_image": {
575
+ "type": "integer",
576
+ "minimum": 1
577
+ },
578
+ "tokens_per_image": {
579
+ "type": "integer",
580
+ "minimum": 1
581
+ },
582
+ "detail_maximum_edges": {
583
+ "type": "object",
584
+ "minProperties": 1,
585
+ "propertyNames": {
586
+ "pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
587
+ },
588
+ "additionalProperties": {
589
+ "type": "integer",
590
+ "minimum": 1
591
+ }
592
+ },
593
+ "token_rounding": {
594
+ "enum": ["ceil"]
595
+ },
596
+ "token_counts_approximate": {
597
+ "type": "boolean"
598
+ }
599
+ }
600
+ },
601
+ "token_pricing": {
602
+ "type": "object",
603
+ "additionalProperties": false,
604
+ "required": ["source_url", "unit"],
605
+ "anyOf": [
606
+ {
607
+ "required": ["input"]
608
+ },
609
+ {
610
+ "required": ["output"]
611
+ },
612
+ {
613
+ "required": ["input_cache_read"]
614
+ },
615
+ {
616
+ "required": ["input_cache_write"]
617
+ },
618
+ {
619
+ "required": ["tiers"]
620
+ }
621
+ ],
622
+ "properties": {
623
+ "source_url": {
624
+ "type": "string",
625
+ "format": "uri",
626
+ "pattern": "^https://[^/]+(?:/|$)"
627
+ },
628
+ "unit": {
629
+ "const": "usd_per_token"
630
+ },
631
+ "input": {
632
+ "type": "string",
633
+ "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
634
+ "description": "Exact non-negative decimal amount; no exponent notation."
635
+ },
636
+ "output": {
637
+ "type": "string",
638
+ "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
639
+ "description": "Exact non-negative decimal amount; no exponent notation."
640
+ },
641
+ "input_cache_read": {
642
+ "type": "string",
643
+ "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
644
+ "description": "Exact non-negative decimal amount; no exponent notation."
645
+ },
646
+ "input_cache_write": {
647
+ "type": "string",
648
+ "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
649
+ "description": "Exact non-negative decimal amount; no exponent notation."
650
+ },
651
+ "tiers": {
652
+ "type": "array",
653
+ "minItems": 1,
654
+ "items": {
655
+ "$ref": "#/$defs/token_price_tier"
656
+ }
657
+ },
658
+ "scope": {
659
+ "type": "string",
660
+ "minLength": 1
661
+ },
662
+ "input_cache_write_1h": {
663
+ "type": "string",
664
+ "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
665
+ "description": "Exact non-negative decimal amount; no exponent notation."
666
+ }
667
+ }
668
+ },
669
+ "token_price_tier": {
670
+ "type": "object",
671
+ "additionalProperties": false,
672
+ "required": ["meter", "minimum_input_tokens", "usd_per_token"],
673
+ "properties": {
674
+ "meter": {
675
+ "enum": [
676
+ "input",
677
+ "output",
678
+ "input_cache_read",
679
+ "input_cache_write",
680
+ "input_cache_write_1h"
681
+ ]
682
+ },
683
+ "minimum_input_tokens": {
684
+ "type": "integer",
685
+ "minimum": 0,
686
+ "description": "Inclusive lower input-token bound."
687
+ },
688
+ "maximum_input_tokens": {
689
+ "type": ["integer", "null"],
690
+ "minimum": 1,
691
+ "description": "Exclusive upper input-token bound; null or omission means no published upper bound."
692
+ },
693
+ "usd_per_token": {
694
+ "type": "string",
695
+ "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
696
+ "description": "Exact non-negative decimal amount; no exponent notation."
697
+ }
698
+ }
699
+ },
700
+ "parameter": {
701
+ "type": "object",
702
+ "additionalProperties": false,
703
+ "minProperties": 1,
704
+ "properties": {
705
+ "type": {
706
+ "enum": ["string", "number", "integer", "boolean", "array", "object", "null"]
707
+ },
708
+ "enum": {
709
+ "type": "array",
710
+ "minItems": 1,
711
+ "uniqueItems": true
712
+ },
713
+ "minimum": {
714
+ "type": "number"
715
+ },
716
+ "maximum": {
717
+ "type": "number"
718
+ },
719
+ "multiple_of": {
720
+ "type": "number",
721
+ "exclusiveMinimum": 0
722
+ },
723
+ "min_items": {
724
+ "type": "integer",
725
+ "minimum": 0
726
+ },
727
+ "max_items": {
728
+ "type": "integer",
729
+ "minimum": 0
730
+ },
731
+ "min_length": {
732
+ "type": "integer",
733
+ "minimum": 0
734
+ },
735
+ "max_length": {
736
+ "type": "integer",
737
+ "minimum": 0
738
+ },
739
+ "source_url": {
740
+ "type": "string",
741
+ "format": "uri",
742
+ "pattern": "^https://[^/]+(?:/|$)"
743
+ }
744
+ }
745
+ },
746
+ "parameters": {
747
+ "type": "object",
748
+ "minProperties": 1,
749
+ "propertyNames": {
750
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_]*(?:\\.[a-zA-Z][a-zA-Z0-9_]*)*$"
751
+ },
752
+ "additionalProperties": {
753
+ "$ref": "#/$defs/parameter"
754
+ }
755
+ },
756
+ "image_constraints": {
757
+ "type": "object",
758
+ "additionalProperties": false,
759
+ "minProperties": 1,
760
+ "properties": {
761
+ "step": {
762
+ "type": "integer",
763
+ "minimum": 1
764
+ },
765
+ "min_edge": {
766
+ "type": "integer",
767
+ "minimum": 1
768
+ },
769
+ "max_edge": {
770
+ "type": "integer",
771
+ "minimum": 1
772
+ },
773
+ "min_pixels": {
774
+ "type": "integer",
775
+ "minimum": 1
776
+ },
777
+ "max_pixels": {
778
+ "type": "integer",
779
+ "minimum": 1
780
+ },
781
+ "aspect_ratio": {
782
+ "type": "object",
783
+ "additionalProperties": false,
784
+ "minProperties": 1,
785
+ "properties": {
786
+ "min": {
787
+ "type": "number",
788
+ "exclusiveMinimum": 0
789
+ },
790
+ "max": {
791
+ "type": "number",
792
+ "exclusiveMinimum": 0
793
+ }
794
+ }
795
+ }
796
+ }
797
+ },
798
+ "distribution": {
799
+ "description": "Official code and weight distribution facts. Availability does not establish a hosted API or permissions beyond the linked licenses.",
800
+ "type": "object",
801
+ "additionalProperties": false,
802
+ "required": ["source_url"],
803
+ "anyOf": [
804
+ {
805
+ "required": ["code"]
806
+ },
807
+ {
808
+ "required": ["weights"]
809
+ }
810
+ ],
811
+ "properties": {
812
+ "source_url": {
813
+ "type": "string",
814
+ "format": "uri",
815
+ "pattern": "^https://[^/]+(?:/|$)"
816
+ },
817
+ "code": {
818
+ "type": "object",
819
+ "additionalProperties": false,
820
+ "required": ["repository_url"],
821
+ "properties": {
822
+ "repository_url": {
823
+ "type": "string",
824
+ "format": "uri",
825
+ "pattern": "^https://[^/]+(?:/|$)"
826
+ },
827
+ "license": {
828
+ "$ref": "#/$defs/artifact_license"
829
+ }
830
+ }
831
+ },
832
+ "weights": {
833
+ "type": "array",
834
+ "minItems": 1,
835
+ "items": {
836
+ "type": "object",
837
+ "additionalProperties": false,
838
+ "required": ["url"],
839
+ "properties": {
840
+ "id": {
841
+ "description": "The exact published weight variant identifier, when available.",
842
+ "type": "string",
843
+ "minLength": 1
844
+ },
845
+ "url": {
846
+ "type": "string",
847
+ "format": "uri",
848
+ "pattern": "^https://[^/]+(?:/|$)"
849
+ },
850
+ "license": {
851
+ "$ref": "#/$defs/artifact_license"
852
+ },
853
+ "access": {
854
+ "description": "Public download or gated access as documented by the publisher; independent of license permissions.",
855
+ "enum": ["public", "gated"]
856
+ }
857
+ }
858
+ }
859
+ }
860
+ }
861
+ },
862
+ "artifact_license": {
863
+ "type": "object",
864
+ "additionalProperties": false,
865
+ "required": ["name", "url"],
866
+ "properties": {
867
+ "name": {
868
+ "description": "The publisher's license name, including custom licenses; do not infer an SPDX identifier.",
869
+ "type": "string",
870
+ "minLength": 1
871
+ },
872
+ "url": {
873
+ "type": "string",
874
+ "format": "uri",
875
+ "pattern": "^https://[^/]+(?:/|$)"
876
+ }
877
+ }
878
+ },
879
+ "limits": {
880
+ "type": "object",
881
+ "additionalProperties": false,
882
+ "required": ["source_url"],
883
+ "minProperties": 2,
884
+ "properties": {
885
+ "source_url": {
886
+ "type": "string",
887
+ "format": "uri",
888
+ "pattern": "^https://[^/]+(?:/|$)"
889
+ },
890
+ "context_tokens": {
891
+ "type": "integer",
892
+ "minimum": 1
893
+ },
894
+ "max_output_tokens": {
895
+ "type": "integer",
896
+ "minimum": 1
897
+ }
898
+ }
899
+ },
900
+ "provider_coverage": {
901
+ "type": "object",
902
+ "minProperties": 1,
903
+ "additionalProperties": {
904
+ "type": "object",
905
+ "additionalProperties": false,
906
+ "required": ["disposition", "source_url"],
907
+ "properties": {
908
+ "disposition": {
909
+ "enum": ["listed", "not_listed", "excluded"]
910
+ },
911
+ "source_url": {
912
+ "type": "string",
913
+ "format": "uri",
914
+ "pattern": "^https://[^/]+(?:/|$)"
915
+ },
916
+ "reason": {
917
+ "type": "string",
918
+ "minLength": 1
919
+ }
920
+ },
921
+ "if": {
922
+ "properties": {
923
+ "disposition": {
924
+ "enum": ["not_listed", "excluded"]
925
+ }
926
+ }
927
+ },
928
+ "then": {
929
+ "required": ["reason"]
930
+ }
931
+ }
932
+ },
933
+ "published_price_component": {
934
+ "type": "object",
935
+ "additionalProperties": false,
936
+ "required": ["meter", "unit", "usd_per_unit"],
937
+ "properties": {
938
+ "id": {
939
+ "type": "string",
940
+ "minLength": 1
941
+ },
942
+ "meter": {
943
+ "type": "string",
944
+ "minLength": 1
945
+ },
946
+ "unit": {
947
+ "type": "string",
948
+ "minLength": 1
949
+ },
950
+ "usd_per_unit": {
951
+ "type": "string",
952
+ "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"
953
+ },
954
+ "per_quantity": {
955
+ "type": "string",
956
+ "pattern": "^(?=.*[1-9])(0|[1-9][0-9]*)(\\.[0-9]+)?$"
957
+ },
958
+ "when": {
959
+ "type": "object",
960
+ "description": "Public JSON Schema predicate restricting the request parameters to which this component applies."
961
+ },
962
+ "quantity_rounding": {
963
+ "type": "object",
964
+ "additionalProperties": false,
965
+ "required": ["mode"],
966
+ "properties": {
967
+ "mode": {
968
+ "enum": ["none", "ceil"]
969
+ },
970
+ "increment": {
971
+ "oneOf": [
972
+ {
973
+ "type": "null"
974
+ },
975
+ {
976
+ "type": "string",
977
+ "pattern": "^(?=.*[1-9])(0|[1-9][0-9]*)(\\.[0-9]+)?$"
978
+ }
979
+ ]
980
+ }
981
+ },
982
+ "if": {
983
+ "properties": {
984
+ "mode": {
985
+ "const": "ceil"
986
+ }
987
+ }
988
+ },
989
+ "then": {
990
+ "required": ["increment"],
991
+ "properties": {
992
+ "increment": {
993
+ "type": "string",
994
+ "pattern": "^(?=.*[1-9])(0|[1-9][0-9]*)(\\.[0-9]+)?$"
995
+ }
996
+ }
997
+ }
998
+ },
999
+ "quantity_range": {
1000
+ "type": "object",
1001
+ "additionalProperties": false,
1002
+ "required": ["meter", "min"],
1003
+ "properties": {
1004
+ "meter": {
1005
+ "type": "string",
1006
+ "minLength": 1
1007
+ },
1008
+ "min": {
1009
+ "type": "string",
1010
+ "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"
1011
+ },
1012
+ "max": {
1013
+ "oneOf": [
1014
+ {
1015
+ "type": "null"
1016
+ },
1017
+ {
1018
+ "type": "string",
1019
+ "pattern": "^(?=.*[1-9])(0|[1-9][0-9]*)(\\.[0-9]+)?$"
1020
+ }
1021
+ ]
1022
+ }
1023
+ }
1024
+ }
1025
+ }
1026
+ },
1027
+ "published_pricing": {
1028
+ "type": "object",
1029
+ "additionalProperties": false,
1030
+ "required": ["source_url", "currency", "components"],
1031
+ "properties": {
1032
+ "source_url": {
1033
+ "type": "string",
1034
+ "format": "uri",
1035
+ "pattern": "^https://[^/]+(?:/|$)"
1036
+ },
1037
+ "currency": {
1038
+ "const": "USD"
1039
+ },
1040
+ "components": {
1041
+ "type": "array",
1042
+ "minItems": 1,
1043
+ "items": {
1044
+ "$ref": "#/$defs/published_price_component"
1045
+ }
1046
+ }
1047
+ }
1048
+ },
1049
+ "provider_binding": {
1050
+ "type": "object",
1051
+ "required": ["provider", "id"],
1052
+ "properties": {
1053
+ "provider": {
1054
+ "type": "string"
1055
+ },
1056
+ "id": {
1057
+ "type": "string",
1058
+ "minLength": 1
1059
+ },
1060
+ "distribution": false,
1061
+ "endpoints": {
1062
+ "type": "array",
1063
+ "minItems": 1,
1064
+ "items": {
1065
+ "$ref": "#/$defs/provider_endpoint"
1066
+ }
1067
+ },
1068
+ "capabilities": {
1069
+ "$ref": "#/$defs/capabilities"
1070
+ },
1071
+ "token_pricing": {
1072
+ "$ref": "#/$defs/token_pricing"
1073
+ },
1074
+ "limits": {
1075
+ "$ref": "#/$defs/limits"
1076
+ },
1077
+ "source_url": {
1078
+ "type": "string",
1079
+ "format": "uri",
1080
+ "pattern": "^https://[^/]+(?:/|$)"
1081
+ },
1082
+ "published_pricing": {
1083
+ "$ref": "#/$defs/published_pricing"
1084
+ },
1085
+ "qualifications": {
1086
+ "type": "array",
1087
+ "minItems": 1,
1088
+ "items": {
1089
+ "type": "object",
1090
+ "additionalProperties": false,
1091
+ "required": ["source_url", "notes"],
1092
+ "properties": {
1093
+ "source_url": {
1094
+ "type": "string",
1095
+ "format": "uri",
1096
+ "pattern": "^https://[^/]+(?:/|$)"
1097
+ },
1098
+ "notes": {
1099
+ "type": "string",
1100
+ "minLength": 1
1101
+ }
1102
+ }
1103
+ }
1104
+ }
1105
+ }
228
1106
  }
229
1107
  }
230
1108
  }