@grida/ai-models 0.0.0-stage → 1.20261011.2

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/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "@grida/ai-models",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.20261011.2",
4
+ "description": "A hand-curated, source-backed catalogue of AI models, their labs, and published prices.",
5
+ "keywords": [
6
+ "ai",
7
+ "models",
8
+ "llm",
9
+ "catalogue",
10
+ "model-catalog",
11
+ "pricing",
12
+ "json"
13
+ ],
14
+ "homepage": "https://github.com/gridaco/models#readme",
15
+ "bugs": "https://github.com/gridaco/models/issues",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/gridaco/models.git"
19
+ },
20
+ "license": "MIT",
21
+ "files": [
22
+ "PROVENANCE.md",
23
+ "labs.json",
24
+ "logos",
25
+ "manifest.json",
26
+ "models.json",
27
+ "schemas"
28
+ ],
29
+ "exports": {
30
+ ".": "./models.json",
31
+ "./models.json": "./models.json",
32
+ "./labs.json": "./labs.json",
33
+ "./manifest.json": "./manifest.json",
34
+ "./schemas/*": "./schemas/*",
35
+ "./logos/*": "./logos/*",
36
+ "./package.json": "./package.json"
37
+ },
38
+ "sideEffects": false
39
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://grida.co/schemas/ai-model-labs-v1.json",
4
+ "title": "Model labs, version 1",
5
+ "description": "The labs that make catalogued models, keyed by lab ID. A lab ID is the `vendor` value on models.json cards.",
6
+ "type": "object",
7
+ "minProperties": 1,
8
+ "additionalProperties": {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "required": ["id", "name", "url"],
12
+ "properties": {
13
+ "id": {
14
+ "description": "The lab ID, equal to its key.",
15
+ "type": "string",
16
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
17
+ },
18
+ "name": {
19
+ "description": "Display name, as the lab writes it.",
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "url": {
24
+ "description": "The lab's first-party homepage.",
25
+ "type": "string",
26
+ "format": "uri",
27
+ "pattern": "^https://"
28
+ },
29
+ "logo": {
30
+ "description": "The lab's official logo, copied unchanged from a first-party source. Logos are trademarks of their owners and are not covered by this repository's license.",
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["path", "media_type", "kind", "source_url", "retrieved"],
34
+ "properties": {
35
+ "path": {
36
+ "description": "The logo file, relative to labs.json.",
37
+ "type": "string",
38
+ "pattern": "^logos/[a-z0-9][a-z0-9-]*\\.(svg|png|webp)$"
39
+ },
40
+ "media_type": {
41
+ "enum": ["image/svg+xml", "image/png", "image/webp"]
42
+ },
43
+ "kind": {
44
+ "description": "symbol: the mark alone; wordmark: the name alone; lockup: mark and name together.",
45
+ "enum": ["symbol", "wordmark", "lockup"]
46
+ },
47
+ "source_url": {
48
+ "description": "Where the artwork was obtained: the asset's URL, or the first-party page it was extracted from.",
49
+ "type": "string",
50
+ "format": "uri",
51
+ "pattern": "^https://"
52
+ },
53
+ "guidelines_url": {
54
+ "description": "The lab's brand or logo usage guidelines, when it publishes them.",
55
+ "type": "string",
56
+ "format": "uri",
57
+ "pattern": "^https://"
58
+ },
59
+ "retrieved": {
60
+ "description": "The day the artwork was obtained.",
61
+ "type": "string",
62
+ "format": "date"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,230 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://grida.co/schemas/ai-model-facts-v1.json",
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.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "text.catalog",
10
+ "image.models",
11
+ "video.models",
12
+ "audio.music.models",
13
+ "audio.sound_effects.models",
14
+ "audio.text_to_speech.models",
15
+ "three_d.models",
16
+ "three_d.model_generation.models",
17
+ "three_d.rigging.models",
18
+ "three_d.rig_check.operation",
19
+ "image_tools.models",
20
+ "embedding.models"
21
+ ],
22
+ "properties": {
23
+ "$schema": {
24
+ "description": "This file's schema: the `$id` of models.schema.json. Generated files always carry it.",
25
+ "const": "https://grida.co/schemas/ai-model-facts-v1.json"
26
+ },
27
+ "text.catalog": {
28
+ "type": "object",
29
+ "minProperties": 1,
30
+ "additionalProperties": {
31
+ "$ref": "#/$defs/text_card"
32
+ }
33
+ },
34
+ "image.models": {
35
+ "$ref": "#/$defs/table"
36
+ },
37
+ "video.models": {
38
+ "$ref": "#/$defs/table"
39
+ },
40
+ "audio.music.models": {
41
+ "$ref": "#/$defs/table"
42
+ },
43
+ "audio.sound_effects.models": {
44
+ "$ref": "#/$defs/table"
45
+ },
46
+ "audio.text_to_speech.models": {
47
+ "$ref": "#/$defs/table"
48
+ },
49
+ "three_d.models": {
50
+ "$ref": "#/$defs/table"
51
+ },
52
+ "three_d.model_generation.models": {
53
+ "$ref": "#/$defs/table"
54
+ },
55
+ "three_d.rigging.models": {
56
+ "$ref": "#/$defs/table"
57
+ },
58
+ "image_tools.models": {
59
+ "$ref": "#/$defs/table"
60
+ },
61
+ "embedding.models": {
62
+ "type": "object",
63
+ "additionalProperties": {
64
+ "type": "object",
65
+ "required": ["id", "label"]
66
+ }
67
+ },
68
+ "three_d.rig_check.operation": {
69
+ "type": "object",
70
+ "required": ["feature", "provider", "binding_id", "rig_types", "input", "pricing"],
71
+ "properties": {
72
+ "feature": {
73
+ "const": "rig-check"
74
+ },
75
+ "provider": {
76
+ "const": "tripo"
77
+ },
78
+ "binding_id": {
79
+ "const": "rig-check"
80
+ },
81
+ "rig_types": {
82
+ "type": "array",
83
+ "minItems": 1,
84
+ "items": {
85
+ "type": "string"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "$defs": {
92
+ "table": {
93
+ "type": "object",
94
+ "minProperties": 1,
95
+ "additionalProperties": {
96
+ "$ref": "#/$defs/card"
97
+ }
98
+ },
99
+ "card": {
100
+ "type": "object",
101
+ "required": ["id", "label", "release"],
102
+ "properties": {
103
+ "id": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "maxLength": 256
107
+ },
108
+ "label": {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ "release": {
113
+ "type": "object",
114
+ "required": ["date", "basis", "source_url"],
115
+ "additionalProperties": false,
116
+ "properties": {
117
+ "date": {
118
+ "type": ["string", "null"],
119
+ "format": "date"
120
+ },
121
+ "basis": {
122
+ "enum": ["model", "provider_endpoint"]
123
+ },
124
+ "source_url": {
125
+ "type": "string",
126
+ "pattern": "^https://"
127
+ }
128
+ },
129
+ "if": {
130
+ "properties": {
131
+ "date": {
132
+ "type": "null"
133
+ }
134
+ }
135
+ },
136
+ "then": {
137
+ "properties": {
138
+ "basis": {
139
+ "const": "provider_endpoint"
140
+ }
141
+ }
142
+ }
143
+ },
144
+ "providers": {
145
+ "type": "object",
146
+ "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
+ }
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "text_card": {
163
+ "allOf": [
164
+ {
165
+ "$ref": "#/$defs/card"
166
+ }
167
+ ],
168
+ "propertyNames": {
169
+ "pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
170
+ },
171
+ "properties": {
172
+ "image_input_mimes": {
173
+ "type": "array",
174
+ "items": {
175
+ "type": "string"
176
+ }
177
+ },
178
+ "context_window": {
179
+ "type": "integer",
180
+ "minimum": 1
181
+ },
182
+ "output_limit": {
183
+ "type": "integer",
184
+ "minimum": 1
185
+ },
186
+ "cost": {
187
+ "type": "object",
188
+ "additionalProperties": false,
189
+ "properties": {
190
+ "input": {
191
+ "type": "number",
192
+ "minimum": 0
193
+ },
194
+ "output": {
195
+ "type": "number",
196
+ "minimum": 0
197
+ },
198
+ "cache_read": {
199
+ "type": "number",
200
+ "minimum": 0
201
+ },
202
+ "cache_write": {
203
+ "type": "number",
204
+ "minimum": 0
205
+ },
206
+ "long_context": {
207
+ "type": "object",
208
+ "additionalProperties": false,
209
+ "required": ["input_tokens_above", "input_multiplier", "output_multiplier"],
210
+ "properties": {
211
+ "input_tokens_above": {
212
+ "type": "integer",
213
+ "minimum": 0
214
+ },
215
+ "input_multiplier": {
216
+ "type": "number",
217
+ "minimum": 0
218
+ },
219
+ "output_multiplier": {
220
+ "type": "number",
221
+ "minimum": 0
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }