modelpedia 0.0.1 → 0.0.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.
Files changed (128) hide show
  1. package/dist/index.cjs +60 -35560
  2. package/dist/index.d.cts +3 -156
  3. package/dist/index.d.mts +3 -156
  4. package/dist/index.mjs +60 -35560
  5. package/dist/providers/alibaba.cjs +835 -0
  6. package/dist/providers/alibaba.d.cts +7 -0
  7. package/dist/providers/alibaba.d.mts +7 -0
  8. package/dist/providers/alibaba.mjs +833 -0
  9. package/dist/providers/amazon.cjs +1484 -0
  10. package/dist/providers/amazon.d.cts +7 -0
  11. package/dist/providers/amazon.d.mts +7 -0
  12. package/dist/providers/amazon.mjs +1482 -0
  13. package/dist/providers/anthropic.cjs +698 -0
  14. package/dist/providers/anthropic.d.cts +7 -0
  15. package/dist/providers/anthropic.d.mts +7 -0
  16. package/dist/providers/anthropic.mjs +696 -0
  17. package/dist/providers/azure.cjs +1491 -0
  18. package/dist/providers/azure.d.cts +7 -0
  19. package/dist/providers/azure.d.mts +7 -0
  20. package/dist/providers/azure.mjs +1489 -0
  21. package/dist/providers/baseten.cjs +279 -0
  22. package/dist/providers/baseten.d.cts +7 -0
  23. package/dist/providers/baseten.d.mts +7 -0
  24. package/dist/providers/baseten.mjs +277 -0
  25. package/dist/providers/cerebras.cjs +145 -0
  26. package/dist/providers/cerebras.d.cts +7 -0
  27. package/dist/providers/cerebras.d.mts +7 -0
  28. package/dist/providers/cerebras.mjs +143 -0
  29. package/dist/providers/cloudflare.cjs +826 -0
  30. package/dist/providers/cloudflare.d.cts +7 -0
  31. package/dist/providers/cloudflare.d.mts +7 -0
  32. package/dist/providers/cloudflare.mjs +824 -0
  33. package/dist/providers/cohere.cjs +525 -0
  34. package/dist/providers/cohere.d.cts +7 -0
  35. package/dist/providers/cohere.d.mts +7 -0
  36. package/dist/providers/cohere.mjs +523 -0
  37. package/dist/providers/cursor.cjs +856 -0
  38. package/dist/providers/cursor.d.cts +7 -0
  39. package/dist/providers/cursor.d.mts +7 -0
  40. package/dist/providers/cursor.mjs +854 -0
  41. package/dist/providers/deepseek.cjs +64 -0
  42. package/dist/providers/deepseek.d.cts +7 -0
  43. package/dist/providers/deepseek.d.mts +7 -0
  44. package/dist/providers/deepseek.mjs +62 -0
  45. package/dist/providers/fireworks.cjs +3794 -0
  46. package/dist/providers/fireworks.d.cts +7 -0
  47. package/dist/providers/fireworks.d.mts +7 -0
  48. package/dist/providers/fireworks.mjs +3792 -0
  49. package/dist/providers/google.cjs +972 -0
  50. package/dist/providers/google.d.cts +7 -0
  51. package/dist/providers/google.d.mts +7 -0
  52. package/dist/providers/google.mjs +970 -0
  53. package/dist/providers/groq.cjs +353 -0
  54. package/dist/providers/groq.d.cts +7 -0
  55. package/dist/providers/groq.d.mts +7 -0
  56. package/dist/providers/groq.mjs +351 -0
  57. package/dist/providers/huggingface.cjs +1022 -0
  58. package/dist/providers/huggingface.d.cts +7 -0
  59. package/dist/providers/huggingface.d.mts +7 -0
  60. package/dist/providers/huggingface.mjs +1020 -0
  61. package/dist/providers/meta.cjs +481 -0
  62. package/dist/providers/meta.d.cts +7 -0
  63. package/dist/providers/meta.d.mts +7 -0
  64. package/dist/providers/meta.mjs +479 -0
  65. package/dist/providers/minimax.cjs +156 -0
  66. package/dist/providers/minimax.d.cts +7 -0
  67. package/dist/providers/minimax.d.mts +7 -0
  68. package/dist/providers/minimax.mjs +154 -0
  69. package/dist/providers/mistral.cjs +1594 -0
  70. package/dist/providers/mistral.d.cts +7 -0
  71. package/dist/providers/mistral.d.mts +7 -0
  72. package/dist/providers/mistral.mjs +1592 -0
  73. package/dist/providers/moonshot.cjs +138 -0
  74. package/dist/providers/moonshot.d.cts +7 -0
  75. package/dist/providers/moonshot.d.mts +7 -0
  76. package/dist/providers/moonshot.mjs +136 -0
  77. package/dist/providers/nvidia.cjs +2040 -0
  78. package/dist/providers/nvidia.d.cts +7 -0
  79. package/dist/providers/nvidia.d.mts +7 -0
  80. package/dist/providers/nvidia.mjs +2038 -0
  81. package/dist/providers/ollama.cjs +326 -0
  82. package/dist/providers/ollama.d.cts +7 -0
  83. package/dist/providers/ollama.d.mts +7 -0
  84. package/dist/providers/ollama.mjs +324 -0
  85. package/dist/providers/openai.cjs +9079 -0
  86. package/dist/providers/openai.d.cts +7 -0
  87. package/dist/providers/openai.d.mts +7 -0
  88. package/dist/providers/openai.mjs +9077 -0
  89. package/dist/providers/opencode.cjs +367 -0
  90. package/dist/providers/opencode.d.cts +7 -0
  91. package/dist/providers/opencode.d.mts +7 -0
  92. package/dist/providers/opencode.mjs +365 -0
  93. package/dist/providers/openrouter.cjs +7835 -0
  94. package/dist/providers/openrouter.d.cts +7 -0
  95. package/dist/providers/openrouter.d.mts +7 -0
  96. package/dist/providers/openrouter.mjs +7833 -0
  97. package/dist/providers/perplexity.cjs +311 -0
  98. package/dist/providers/perplexity.d.cts +7 -0
  99. package/dist/providers/perplexity.d.mts +7 -0
  100. package/dist/providers/perplexity.mjs +309 -0
  101. package/dist/providers/qwen.cjs +835 -0
  102. package/dist/providers/qwen.d.cts +7 -0
  103. package/dist/providers/qwen.d.mts +7 -0
  104. package/dist/providers/qwen.mjs +833 -0
  105. package/dist/providers/together.cjs +360 -0
  106. package/dist/providers/together.d.cts +7 -0
  107. package/dist/providers/together.d.mts +7 -0
  108. package/dist/providers/together.mjs +358 -0
  109. package/dist/providers/vercel.cjs +4037 -0
  110. package/dist/providers/vercel.d.cts +7 -0
  111. package/dist/providers/vercel.d.mts +7 -0
  112. package/dist/providers/vercel.mjs +4035 -0
  113. package/dist/providers/vertex.cjs +1072 -0
  114. package/dist/providers/vertex.d.cts +7 -0
  115. package/dist/providers/vertex.d.mts +7 -0
  116. package/dist/providers/vertex.mjs +1070 -0
  117. package/dist/providers/xai.cjs +301 -0
  118. package/dist/providers/xai.d.cts +7 -0
  119. package/dist/providers/xai.d.mts +7 -0
  120. package/dist/providers/xai.mjs +299 -0
  121. package/dist/providers/zai.cjs +243 -0
  122. package/dist/providers/zai.d.cts +7 -0
  123. package/dist/providers/zai.d.mts +7 -0
  124. package/dist/providers/zai.mjs +241 -0
  125. package/dist/types.d.cts +186 -0
  126. package/dist/types.d.mts +186 -0
  127. package/package.json +14 -38
  128. package/README.md +0 -100
@@ -0,0 +1,311 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/providers/perplexity.ts
3
+ const provider = {
4
+ "id": "perplexity",
5
+ "name": "Perplexity",
6
+ "region": "US",
7
+ "url": "https://perplexity.ai",
8
+ "api_url": "https://api.perplexity.ai",
9
+ "docs_url": "https://docs.perplexity.ai",
10
+ "pricing_url": "https://docs.perplexity.ai/guides/pricing",
11
+ "icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z\"/>\n</svg>",
12
+ "models": [
13
+ {
14
+ "id": "anthropic/claude-haiku-4-5",
15
+ "name": "anthropic/claude-haiku-4-5",
16
+ "created_by": "anthropic",
17
+ "source": "official",
18
+ "last_updated": "2026-03-20",
19
+ "family": "claude-haiku",
20
+ "capabilities": { "streaming": true },
21
+ "pricing": {
22
+ "input": 1,
23
+ "output": 5,
24
+ "cached_input": .1
25
+ }
26
+ },
27
+ {
28
+ "id": "anthropic/claude-opus-4-5",
29
+ "name": "anthropic/claude-opus-4-5",
30
+ "created_by": "anthropic",
31
+ "source": "official",
32
+ "last_updated": "2026-03-20",
33
+ "family": "claude-opus",
34
+ "capabilities": { "streaming": true },
35
+ "pricing": {
36
+ "input": 5,
37
+ "output": 25,
38
+ "cached_input": .5
39
+ }
40
+ },
41
+ {
42
+ "id": "anthropic/claude-opus-4-6",
43
+ "name": "anthropic/claude-opus-4-6",
44
+ "created_by": "anthropic",
45
+ "source": "official",
46
+ "last_updated": "2026-03-20",
47
+ "family": "claude-opus",
48
+ "capabilities": { "streaming": true },
49
+ "pricing": {
50
+ "input": 5,
51
+ "output": 25,
52
+ "cached_input": .5
53
+ }
54
+ },
55
+ {
56
+ "id": "anthropic/claude-sonnet-4-5",
57
+ "name": "anthropic/claude-sonnet-4-5",
58
+ "created_by": "anthropic",
59
+ "source": "official",
60
+ "last_updated": "2026-03-20",
61
+ "family": "claude-sonnet",
62
+ "capabilities": { "streaming": true },
63
+ "pricing": {
64
+ "input": 3,
65
+ "output": 15,
66
+ "cached_input": .3
67
+ }
68
+ },
69
+ {
70
+ "id": "anthropic/claude-sonnet-4-6",
71
+ "name": "anthropic/claude-sonnet-4-6",
72
+ "created_by": "anthropic",
73
+ "source": "official",
74
+ "last_updated": "2026-03-20",
75
+ "family": "claude-sonnet",
76
+ "capabilities": { "streaming": true },
77
+ "pricing": {
78
+ "input": 3,
79
+ "output": 15,
80
+ "cached_input": .3
81
+ }
82
+ },
83
+ {
84
+ "id": "google/gemini-2.5-flash",
85
+ "name": "google/gemini-2.5-flash",
86
+ "created_by": "google",
87
+ "source": "official",
88
+ "last_updated": "2026-03-20",
89
+ "family": "gemini-2.5",
90
+ "capabilities": { "streaming": true }
91
+ },
92
+ {
93
+ "id": "google/gemini-2.5-pro",
94
+ "name": "google/gemini-2.5-pro",
95
+ "created_by": "google",
96
+ "source": "official",
97
+ "last_updated": "2026-03-20",
98
+ "family": "gemini-2.5",
99
+ "capabilities": { "streaming": true },
100
+ "pricing": {
101
+ "input": 1.25,
102
+ "output": 10
103
+ }
104
+ },
105
+ {
106
+ "id": "google/gemini-3-flash-preview",
107
+ "name": "google/gemini-3-flash-preview",
108
+ "created_by": "google",
109
+ "source": "official",
110
+ "last_updated": "2026-03-20",
111
+ "family": "gemini-3",
112
+ "capabilities": { "streaming": true },
113
+ "pricing": {
114
+ "input": .5,
115
+ "output": 3
116
+ }
117
+ },
118
+ {
119
+ "id": "google/gemini-3-pro-preview",
120
+ "name": "google/gemini-3-pro-preview",
121
+ "created_by": "google",
122
+ "source": "official",
123
+ "last_updated": "2026-03-20",
124
+ "family": "gemini-3",
125
+ "capabilities": { "streaming": true }
126
+ },
127
+ {
128
+ "id": "google/gemini-3.1-pro-preview",
129
+ "name": "google/gemini-3.1-pro-preview",
130
+ "created_by": "google",
131
+ "source": "official",
132
+ "last_updated": "2026-03-20",
133
+ "family": "gemini-3.1",
134
+ "capabilities": { "streaming": true },
135
+ "pricing": {
136
+ "input": 2,
137
+ "output": 12
138
+ }
139
+ },
140
+ {
141
+ "id": "nvidia/nemotron-3-super-120b-a12b",
142
+ "name": "nvidia/nemotron-3-super-120b-a12b",
143
+ "created_by": "nvidia",
144
+ "source": "official",
145
+ "last_updated": "2026-03-20",
146
+ "capabilities": { "streaming": true },
147
+ "pricing": {
148
+ "input": .25,
149
+ "output": 2.5
150
+ }
151
+ },
152
+ {
153
+ "id": "openai/gpt-5-mini",
154
+ "name": "openai/gpt-5-mini",
155
+ "created_by": "openai",
156
+ "source": "official",
157
+ "last_updated": "2026-03-20",
158
+ "family": "gpt-5",
159
+ "capabilities": { "streaming": true },
160
+ "pricing": {
161
+ "input": .25,
162
+ "output": 2,
163
+ "cached_input": .025
164
+ }
165
+ },
166
+ {
167
+ "id": "openai/gpt-5.1",
168
+ "name": "openai/gpt-5.1",
169
+ "created_by": "openai",
170
+ "source": "official",
171
+ "last_updated": "2026-03-20",
172
+ "family": "gpt-5.1",
173
+ "capabilities": { "streaming": true },
174
+ "pricing": {
175
+ "input": 1.25,
176
+ "output": 10,
177
+ "cached_input": .125
178
+ }
179
+ },
180
+ {
181
+ "id": "openai/gpt-5.2",
182
+ "name": "openai/gpt-5.2",
183
+ "created_by": "openai",
184
+ "source": "official",
185
+ "last_updated": "2026-03-20",
186
+ "family": "gpt-5.2",
187
+ "capabilities": { "streaming": true },
188
+ "pricing": {
189
+ "input": 1.75,
190
+ "output": 14,
191
+ "cached_input": .175
192
+ }
193
+ },
194
+ {
195
+ "id": "openai/gpt-5.4",
196
+ "name": "openai/gpt-5.4",
197
+ "created_by": "openai",
198
+ "source": "official",
199
+ "last_updated": "2026-03-20",
200
+ "family": "gpt-5.4",
201
+ "capabilities": { "streaming": true },
202
+ "pricing": {
203
+ "input": 2.5,
204
+ "output": 15,
205
+ "cached_input": .25
206
+ }
207
+ },
208
+ {
209
+ "id": "perplexity/sonar",
210
+ "name": "perplexity/sonar",
211
+ "created_by": "perplexity",
212
+ "source": "official",
213
+ "last_updated": "2026-03-20",
214
+ "capabilities": {
215
+ "streaming": true,
216
+ "tool_call": true
217
+ },
218
+ "pricing": {
219
+ "input": .25,
220
+ "output": 2.5,
221
+ "cached_input": .0625
222
+ }
223
+ },
224
+ {
225
+ "id": "sonar-deep-research",
226
+ "name": "sonar-deep-research",
227
+ "created_by": "perplexity",
228
+ "source": "official",
229
+ "last_updated": "2026-03-21",
230
+ "family": "sonar",
231
+ "capabilities": {
232
+ "streaming": true,
233
+ "tool_call": true
234
+ },
235
+ "pricing": {
236
+ "input": 2,
237
+ "output": 8
238
+ }
239
+ },
240
+ {
241
+ "id": "sonar-pro",
242
+ "name": "sonar-pro",
243
+ "created_by": "perplexity",
244
+ "source": "official",
245
+ "last_updated": "2026-03-21",
246
+ "family": "sonar",
247
+ "capabilities": {
248
+ "streaming": true,
249
+ "tool_call": true
250
+ },
251
+ "pricing": {
252
+ "input": 3,
253
+ "output": 15
254
+ }
255
+ },
256
+ {
257
+ "id": "sonar-reasoning-pro",
258
+ "name": "sonar-reasoning-pro",
259
+ "created_by": "perplexity",
260
+ "source": "official",
261
+ "last_updated": "2026-03-21",
262
+ "family": "sonar",
263
+ "capabilities": {
264
+ "streaming": true,
265
+ "tool_call": true,
266
+ "reasoning": true
267
+ },
268
+ "pricing": {
269
+ "input": 2,
270
+ "output": 8
271
+ }
272
+ },
273
+ {
274
+ "id": "sonar",
275
+ "name": "sonar",
276
+ "created_by": "perplexity",
277
+ "source": "official",
278
+ "last_updated": "2026-03-21",
279
+ "family": "sonar",
280
+ "capabilities": {
281
+ "streaming": true,
282
+ "tool_call": true
283
+ },
284
+ "pricing": {
285
+ "input": 1,
286
+ "output": 1
287
+ }
288
+ },
289
+ {
290
+ "id": "xai/grok-4-1-fast-non-reasoning",
291
+ "name": "xai/grok-4-1-fast-non-reasoning",
292
+ "created_by": "xai",
293
+ "source": "official",
294
+ "last_updated": "2026-03-20",
295
+ "family": "grok-4",
296
+ "capabilities": { "streaming": true },
297
+ "pricing": {
298
+ "input": .2,
299
+ "output": .5,
300
+ "cached_input": .05
301
+ }
302
+ }
303
+ ]
304
+ };
305
+ const models = provider.models.map((m) => ({
306
+ ...m,
307
+ provider: provider.id
308
+ }));
309
+ //#endregion
310
+ exports.models = models;
311
+ exports.provider = provider;
@@ -0,0 +1,7 @@
1
+ import { f as ProviderWithModels, n as Model } from "../types.cjs";
2
+
3
+ //#region src/providers/perplexity.d.ts
4
+ declare const provider: ProviderWithModels;
5
+ declare const models: Model[];
6
+ //#endregion
7
+ export { models, provider };
@@ -0,0 +1,7 @@
1
+ import { f as ProviderWithModels, n as Model } from "../types.mjs";
2
+
3
+ //#region src/providers/perplexity.d.ts
4
+ declare const provider: ProviderWithModels;
5
+ declare const models: Model[];
6
+ //#endregion
7
+ export { models, provider };
@@ -0,0 +1,309 @@
1
+ //#region src/providers/perplexity.ts
2
+ const provider = {
3
+ "id": "perplexity",
4
+ "name": "Perplexity",
5
+ "region": "US",
6
+ "url": "https://perplexity.ai",
7
+ "api_url": "https://api.perplexity.ai",
8
+ "docs_url": "https://docs.perplexity.ai",
9
+ "pricing_url": "https://docs.perplexity.ai/guides/pricing",
10
+ "icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z\"/>\n</svg>",
11
+ "models": [
12
+ {
13
+ "id": "anthropic/claude-haiku-4-5",
14
+ "name": "anthropic/claude-haiku-4-5",
15
+ "created_by": "anthropic",
16
+ "source": "official",
17
+ "last_updated": "2026-03-20",
18
+ "family": "claude-haiku",
19
+ "capabilities": { "streaming": true },
20
+ "pricing": {
21
+ "input": 1,
22
+ "output": 5,
23
+ "cached_input": .1
24
+ }
25
+ },
26
+ {
27
+ "id": "anthropic/claude-opus-4-5",
28
+ "name": "anthropic/claude-opus-4-5",
29
+ "created_by": "anthropic",
30
+ "source": "official",
31
+ "last_updated": "2026-03-20",
32
+ "family": "claude-opus",
33
+ "capabilities": { "streaming": true },
34
+ "pricing": {
35
+ "input": 5,
36
+ "output": 25,
37
+ "cached_input": .5
38
+ }
39
+ },
40
+ {
41
+ "id": "anthropic/claude-opus-4-6",
42
+ "name": "anthropic/claude-opus-4-6",
43
+ "created_by": "anthropic",
44
+ "source": "official",
45
+ "last_updated": "2026-03-20",
46
+ "family": "claude-opus",
47
+ "capabilities": { "streaming": true },
48
+ "pricing": {
49
+ "input": 5,
50
+ "output": 25,
51
+ "cached_input": .5
52
+ }
53
+ },
54
+ {
55
+ "id": "anthropic/claude-sonnet-4-5",
56
+ "name": "anthropic/claude-sonnet-4-5",
57
+ "created_by": "anthropic",
58
+ "source": "official",
59
+ "last_updated": "2026-03-20",
60
+ "family": "claude-sonnet",
61
+ "capabilities": { "streaming": true },
62
+ "pricing": {
63
+ "input": 3,
64
+ "output": 15,
65
+ "cached_input": .3
66
+ }
67
+ },
68
+ {
69
+ "id": "anthropic/claude-sonnet-4-6",
70
+ "name": "anthropic/claude-sonnet-4-6",
71
+ "created_by": "anthropic",
72
+ "source": "official",
73
+ "last_updated": "2026-03-20",
74
+ "family": "claude-sonnet",
75
+ "capabilities": { "streaming": true },
76
+ "pricing": {
77
+ "input": 3,
78
+ "output": 15,
79
+ "cached_input": .3
80
+ }
81
+ },
82
+ {
83
+ "id": "google/gemini-2.5-flash",
84
+ "name": "google/gemini-2.5-flash",
85
+ "created_by": "google",
86
+ "source": "official",
87
+ "last_updated": "2026-03-20",
88
+ "family": "gemini-2.5",
89
+ "capabilities": { "streaming": true }
90
+ },
91
+ {
92
+ "id": "google/gemini-2.5-pro",
93
+ "name": "google/gemini-2.5-pro",
94
+ "created_by": "google",
95
+ "source": "official",
96
+ "last_updated": "2026-03-20",
97
+ "family": "gemini-2.5",
98
+ "capabilities": { "streaming": true },
99
+ "pricing": {
100
+ "input": 1.25,
101
+ "output": 10
102
+ }
103
+ },
104
+ {
105
+ "id": "google/gemini-3-flash-preview",
106
+ "name": "google/gemini-3-flash-preview",
107
+ "created_by": "google",
108
+ "source": "official",
109
+ "last_updated": "2026-03-20",
110
+ "family": "gemini-3",
111
+ "capabilities": { "streaming": true },
112
+ "pricing": {
113
+ "input": .5,
114
+ "output": 3
115
+ }
116
+ },
117
+ {
118
+ "id": "google/gemini-3-pro-preview",
119
+ "name": "google/gemini-3-pro-preview",
120
+ "created_by": "google",
121
+ "source": "official",
122
+ "last_updated": "2026-03-20",
123
+ "family": "gemini-3",
124
+ "capabilities": { "streaming": true }
125
+ },
126
+ {
127
+ "id": "google/gemini-3.1-pro-preview",
128
+ "name": "google/gemini-3.1-pro-preview",
129
+ "created_by": "google",
130
+ "source": "official",
131
+ "last_updated": "2026-03-20",
132
+ "family": "gemini-3.1",
133
+ "capabilities": { "streaming": true },
134
+ "pricing": {
135
+ "input": 2,
136
+ "output": 12
137
+ }
138
+ },
139
+ {
140
+ "id": "nvidia/nemotron-3-super-120b-a12b",
141
+ "name": "nvidia/nemotron-3-super-120b-a12b",
142
+ "created_by": "nvidia",
143
+ "source": "official",
144
+ "last_updated": "2026-03-20",
145
+ "capabilities": { "streaming": true },
146
+ "pricing": {
147
+ "input": .25,
148
+ "output": 2.5
149
+ }
150
+ },
151
+ {
152
+ "id": "openai/gpt-5-mini",
153
+ "name": "openai/gpt-5-mini",
154
+ "created_by": "openai",
155
+ "source": "official",
156
+ "last_updated": "2026-03-20",
157
+ "family": "gpt-5",
158
+ "capabilities": { "streaming": true },
159
+ "pricing": {
160
+ "input": .25,
161
+ "output": 2,
162
+ "cached_input": .025
163
+ }
164
+ },
165
+ {
166
+ "id": "openai/gpt-5.1",
167
+ "name": "openai/gpt-5.1",
168
+ "created_by": "openai",
169
+ "source": "official",
170
+ "last_updated": "2026-03-20",
171
+ "family": "gpt-5.1",
172
+ "capabilities": { "streaming": true },
173
+ "pricing": {
174
+ "input": 1.25,
175
+ "output": 10,
176
+ "cached_input": .125
177
+ }
178
+ },
179
+ {
180
+ "id": "openai/gpt-5.2",
181
+ "name": "openai/gpt-5.2",
182
+ "created_by": "openai",
183
+ "source": "official",
184
+ "last_updated": "2026-03-20",
185
+ "family": "gpt-5.2",
186
+ "capabilities": { "streaming": true },
187
+ "pricing": {
188
+ "input": 1.75,
189
+ "output": 14,
190
+ "cached_input": .175
191
+ }
192
+ },
193
+ {
194
+ "id": "openai/gpt-5.4",
195
+ "name": "openai/gpt-5.4",
196
+ "created_by": "openai",
197
+ "source": "official",
198
+ "last_updated": "2026-03-20",
199
+ "family": "gpt-5.4",
200
+ "capabilities": { "streaming": true },
201
+ "pricing": {
202
+ "input": 2.5,
203
+ "output": 15,
204
+ "cached_input": .25
205
+ }
206
+ },
207
+ {
208
+ "id": "perplexity/sonar",
209
+ "name": "perplexity/sonar",
210
+ "created_by": "perplexity",
211
+ "source": "official",
212
+ "last_updated": "2026-03-20",
213
+ "capabilities": {
214
+ "streaming": true,
215
+ "tool_call": true
216
+ },
217
+ "pricing": {
218
+ "input": .25,
219
+ "output": 2.5,
220
+ "cached_input": .0625
221
+ }
222
+ },
223
+ {
224
+ "id": "sonar-deep-research",
225
+ "name": "sonar-deep-research",
226
+ "created_by": "perplexity",
227
+ "source": "official",
228
+ "last_updated": "2026-03-21",
229
+ "family": "sonar",
230
+ "capabilities": {
231
+ "streaming": true,
232
+ "tool_call": true
233
+ },
234
+ "pricing": {
235
+ "input": 2,
236
+ "output": 8
237
+ }
238
+ },
239
+ {
240
+ "id": "sonar-pro",
241
+ "name": "sonar-pro",
242
+ "created_by": "perplexity",
243
+ "source": "official",
244
+ "last_updated": "2026-03-21",
245
+ "family": "sonar",
246
+ "capabilities": {
247
+ "streaming": true,
248
+ "tool_call": true
249
+ },
250
+ "pricing": {
251
+ "input": 3,
252
+ "output": 15
253
+ }
254
+ },
255
+ {
256
+ "id": "sonar-reasoning-pro",
257
+ "name": "sonar-reasoning-pro",
258
+ "created_by": "perplexity",
259
+ "source": "official",
260
+ "last_updated": "2026-03-21",
261
+ "family": "sonar",
262
+ "capabilities": {
263
+ "streaming": true,
264
+ "tool_call": true,
265
+ "reasoning": true
266
+ },
267
+ "pricing": {
268
+ "input": 2,
269
+ "output": 8
270
+ }
271
+ },
272
+ {
273
+ "id": "sonar",
274
+ "name": "sonar",
275
+ "created_by": "perplexity",
276
+ "source": "official",
277
+ "last_updated": "2026-03-21",
278
+ "family": "sonar",
279
+ "capabilities": {
280
+ "streaming": true,
281
+ "tool_call": true
282
+ },
283
+ "pricing": {
284
+ "input": 1,
285
+ "output": 1
286
+ }
287
+ },
288
+ {
289
+ "id": "xai/grok-4-1-fast-non-reasoning",
290
+ "name": "xai/grok-4-1-fast-non-reasoning",
291
+ "created_by": "xai",
292
+ "source": "official",
293
+ "last_updated": "2026-03-20",
294
+ "family": "grok-4",
295
+ "capabilities": { "streaming": true },
296
+ "pricing": {
297
+ "input": .2,
298
+ "output": .5,
299
+ "cached_input": .05
300
+ }
301
+ }
302
+ ]
303
+ };
304
+ const models = provider.models.map((m) => ({
305
+ ...m,
306
+ provider: provider.id
307
+ }));
308
+ //#endregion
309
+ export { models, provider };