modelpedia 0.0.2 → 0.0.3

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 (64) hide show
  1. package/README.md +135 -0
  2. package/dist/index.cjs +1 -101
  3. package/dist/index.mjs +1 -92
  4. package/dist/providers/alibaba.cjs +4 -835
  5. package/dist/providers/alibaba.mjs +4 -833
  6. package/dist/providers/amazon.cjs +4 -1484
  7. package/dist/providers/amazon.mjs +4 -1482
  8. package/dist/providers/anthropic.cjs +3 -698
  9. package/dist/providers/anthropic.mjs +3 -696
  10. package/dist/providers/azure.cjs +6 -1491
  11. package/dist/providers/azure.mjs +6 -1489
  12. package/dist/providers/baseten.cjs +3 -279
  13. package/dist/providers/baseten.mjs +3 -277
  14. package/dist/providers/cerebras.cjs +4 -145
  15. package/dist/providers/cerebras.mjs +4 -143
  16. package/dist/providers/cloudflare.cjs +4 -826
  17. package/dist/providers/cloudflare.mjs +4 -824
  18. package/dist/providers/cohere.cjs +5 -525
  19. package/dist/providers/cohere.mjs +5 -523
  20. package/dist/providers/cursor.cjs +1 -856
  21. package/dist/providers/cursor.mjs +1 -854
  22. package/dist/providers/deepseek.cjs +3 -64
  23. package/dist/providers/deepseek.mjs +3 -62
  24. package/dist/providers/fireworks.cjs +3 -3794
  25. package/dist/providers/fireworks.mjs +3 -3792
  26. package/dist/providers/google.cjs +6 -972
  27. package/dist/providers/google.mjs +6 -970
  28. package/dist/providers/groq.cjs +3 -353
  29. package/dist/providers/groq.mjs +3 -351
  30. package/dist/providers/huggingface.cjs +3 -1022
  31. package/dist/providers/huggingface.mjs +3 -1020
  32. package/dist/providers/meta.cjs +3 -481
  33. package/dist/providers/meta.mjs +3 -479
  34. package/dist/providers/minimax.cjs +3 -156
  35. package/dist/providers/minimax.mjs +3 -154
  36. package/dist/providers/mistral.cjs +3 -1594
  37. package/dist/providers/mistral.mjs +3 -1592
  38. package/dist/providers/moonshot.cjs +3 -138
  39. package/dist/providers/moonshot.mjs +3 -136
  40. package/dist/providers/nvidia.cjs +3 -2040
  41. package/dist/providers/nvidia.mjs +3 -2038
  42. package/dist/providers/ollama.cjs +3 -326
  43. package/dist/providers/ollama.mjs +3 -324
  44. package/dist/providers/openai.cjs +3 -9079
  45. package/dist/providers/openai.mjs +3 -9077
  46. package/dist/providers/opencode.cjs +3 -367
  47. package/dist/providers/opencode.mjs +3 -365
  48. package/dist/providers/openrouter.cjs +12 -7835
  49. package/dist/providers/openrouter.mjs +12 -7833
  50. package/dist/providers/perplexity.cjs +3 -311
  51. package/dist/providers/perplexity.mjs +3 -309
  52. package/dist/providers/qwen.cjs +3 -835
  53. package/dist/providers/qwen.mjs +3 -833
  54. package/dist/providers/together.cjs +4 -360
  55. package/dist/providers/together.mjs +4 -358
  56. package/dist/providers/vercel.cjs +3 -4037
  57. package/dist/providers/vercel.mjs +3 -4035
  58. package/dist/providers/vertex.cjs +10 -1072
  59. package/dist/providers/vertex.mjs +10 -1070
  60. package/dist/providers/xai.cjs +3 -301
  61. package/dist/providers/xai.mjs +3 -299
  62. package/dist/providers/zai.cjs +3 -243
  63. package/dist/providers/zai.mjs +3 -241
  64. package/package.json +1 -1
@@ -1,311 +1,3 @@
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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e={id:`perplexity`,name:`Perplexity`,region:`US`,url:`https://perplexity.ai`,api_url:`https://api.perplexity.ai`,docs_url:`https://docs.perplexity.ai`,pricing_url:`https://docs.perplexity.ai/guides/pricing`,icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
2
+ <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"/>
3
+ </svg>`,models:[{id:`anthropic/claude-haiku-4-5`,name:`anthropic/claude-haiku-4-5`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-haiku`,capabilities:{streaming:!0},pricing:{input:1,output:5,cached_input:.1}},{id:`anthropic/claude-opus-4-5`,name:`anthropic/claude-opus-4-5`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-opus`,capabilities:{streaming:!0},pricing:{input:5,output:25,cached_input:.5}},{id:`anthropic/claude-opus-4-6`,name:`anthropic/claude-opus-4-6`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-opus`,capabilities:{streaming:!0},pricing:{input:5,output:25,cached_input:.5}},{id:`anthropic/claude-sonnet-4-5`,name:`anthropic/claude-sonnet-4-5`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-sonnet`,capabilities:{streaming:!0},pricing:{input:3,output:15,cached_input:.3}},{id:`anthropic/claude-sonnet-4-6`,name:`anthropic/claude-sonnet-4-6`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-sonnet`,capabilities:{streaming:!0},pricing:{input:3,output:15,cached_input:.3}},{id:`google/gemini-2.5-flash`,name:`google/gemini-2.5-flash`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-2.5`,capabilities:{streaming:!0}},{id:`google/gemini-2.5-pro`,name:`google/gemini-2.5-pro`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-2.5`,capabilities:{streaming:!0},pricing:{input:1.25,output:10}},{id:`google/gemini-3-flash-preview`,name:`google/gemini-3-flash-preview`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-3`,capabilities:{streaming:!0},pricing:{input:.5,output:3}},{id:`google/gemini-3-pro-preview`,name:`google/gemini-3-pro-preview`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-3`,capabilities:{streaming:!0}},{id:`google/gemini-3.1-pro-preview`,name:`google/gemini-3.1-pro-preview`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-3.1`,capabilities:{streaming:!0},pricing:{input:2,output:12}},{id:`nvidia/nemotron-3-super-120b-a12b`,name:`nvidia/nemotron-3-super-120b-a12b`,created_by:`nvidia`,source:`official`,last_updated:`2026-03-20`,capabilities:{streaming:!0},pricing:{input:.25,output:2.5}},{id:`openai/gpt-5-mini`,name:`openai/gpt-5-mini`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5`,capabilities:{streaming:!0},pricing:{input:.25,output:2,cached_input:.025}},{id:`openai/gpt-5.1`,name:`openai/gpt-5.1`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5.1`,capabilities:{streaming:!0},pricing:{input:1.25,output:10,cached_input:.125}},{id:`openai/gpt-5.2`,name:`openai/gpt-5.2`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5.2`,capabilities:{streaming:!0},pricing:{input:1.75,output:14,cached_input:.175}},{id:`openai/gpt-5.4`,name:`openai/gpt-5.4`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5.4`,capabilities:{streaming:!0},pricing:{input:2.5,output:15,cached_input:.25}},{id:`perplexity/sonar`,name:`perplexity/sonar`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-20`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:.25,output:2.5,cached_input:.0625}},{id:`sonar-deep-research`,name:`sonar-deep-research`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:2,output:8}},{id:`sonar-pro`,name:`sonar-pro`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:3,output:15}},{id:`sonar-reasoning-pro`,name:`sonar-reasoning-pro`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0,reasoning:!0},pricing:{input:2,output:8}},{id:`sonar`,name:`sonar`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:1,output:1}},{id:`xai/grok-4-1-fast-non-reasoning`,name:`xai/grok-4-1-fast-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,family:`grok-4`,capabilities:{streaming:!0},pricing:{input:.2,output:.5,cached_input:.05}}]},t=e.models.map(t=>({...t,provider:e.id}));exports.models=t,exports.provider=e;
@@ -1,309 +1,3 @@
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 };
1
+ const e={id:`perplexity`,name:`Perplexity`,region:`US`,url:`https://perplexity.ai`,api_url:`https://api.perplexity.ai`,docs_url:`https://docs.perplexity.ai`,pricing_url:`https://docs.perplexity.ai/guides/pricing`,icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
2
+ <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"/>
3
+ </svg>`,models:[{id:`anthropic/claude-haiku-4-5`,name:`anthropic/claude-haiku-4-5`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-haiku`,capabilities:{streaming:!0},pricing:{input:1,output:5,cached_input:.1}},{id:`anthropic/claude-opus-4-5`,name:`anthropic/claude-opus-4-5`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-opus`,capabilities:{streaming:!0},pricing:{input:5,output:25,cached_input:.5}},{id:`anthropic/claude-opus-4-6`,name:`anthropic/claude-opus-4-6`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-opus`,capabilities:{streaming:!0},pricing:{input:5,output:25,cached_input:.5}},{id:`anthropic/claude-sonnet-4-5`,name:`anthropic/claude-sonnet-4-5`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-sonnet`,capabilities:{streaming:!0},pricing:{input:3,output:15,cached_input:.3}},{id:`anthropic/claude-sonnet-4-6`,name:`anthropic/claude-sonnet-4-6`,created_by:`anthropic`,source:`official`,last_updated:`2026-03-20`,family:`claude-sonnet`,capabilities:{streaming:!0},pricing:{input:3,output:15,cached_input:.3}},{id:`google/gemini-2.5-flash`,name:`google/gemini-2.5-flash`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-2.5`,capabilities:{streaming:!0}},{id:`google/gemini-2.5-pro`,name:`google/gemini-2.5-pro`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-2.5`,capabilities:{streaming:!0},pricing:{input:1.25,output:10}},{id:`google/gemini-3-flash-preview`,name:`google/gemini-3-flash-preview`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-3`,capabilities:{streaming:!0},pricing:{input:.5,output:3}},{id:`google/gemini-3-pro-preview`,name:`google/gemini-3-pro-preview`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-3`,capabilities:{streaming:!0}},{id:`google/gemini-3.1-pro-preview`,name:`google/gemini-3.1-pro-preview`,created_by:`google`,source:`official`,last_updated:`2026-03-20`,family:`gemini-3.1`,capabilities:{streaming:!0},pricing:{input:2,output:12}},{id:`nvidia/nemotron-3-super-120b-a12b`,name:`nvidia/nemotron-3-super-120b-a12b`,created_by:`nvidia`,source:`official`,last_updated:`2026-03-20`,capabilities:{streaming:!0},pricing:{input:.25,output:2.5}},{id:`openai/gpt-5-mini`,name:`openai/gpt-5-mini`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5`,capabilities:{streaming:!0},pricing:{input:.25,output:2,cached_input:.025}},{id:`openai/gpt-5.1`,name:`openai/gpt-5.1`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5.1`,capabilities:{streaming:!0},pricing:{input:1.25,output:10,cached_input:.125}},{id:`openai/gpt-5.2`,name:`openai/gpt-5.2`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5.2`,capabilities:{streaming:!0},pricing:{input:1.75,output:14,cached_input:.175}},{id:`openai/gpt-5.4`,name:`openai/gpt-5.4`,created_by:`openai`,source:`official`,last_updated:`2026-03-20`,family:`gpt-5.4`,capabilities:{streaming:!0},pricing:{input:2.5,output:15,cached_input:.25}},{id:`perplexity/sonar`,name:`perplexity/sonar`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-20`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:.25,output:2.5,cached_input:.0625}},{id:`sonar-deep-research`,name:`sonar-deep-research`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:2,output:8}},{id:`sonar-pro`,name:`sonar-pro`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:3,output:15}},{id:`sonar-reasoning-pro`,name:`sonar-reasoning-pro`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0,reasoning:!0},pricing:{input:2,output:8}},{id:`sonar`,name:`sonar`,created_by:`perplexity`,source:`official`,last_updated:`2026-03-21`,family:`sonar`,capabilities:{streaming:!0,tool_call:!0},pricing:{input:1,output:1}},{id:`xai/grok-4-1-fast-non-reasoning`,name:`xai/grok-4-1-fast-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,family:`grok-4`,capabilities:{streaming:!0},pricing:{input:.2,output:.5,cached_input:.05}}]},t=e.models.map(t=>({...t,provider:e.id}));export{t as models,e as provider};