@funkai/models 0.1.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.
Files changed (213) hide show
  1. package/.generated/entries.json +23 -0
  2. package/.generated/req.txt +1 -0
  3. package/.turbo/turbo-build.log +145 -0
  4. package/.turbo/turbo-typecheck.log +4 -0
  5. package/CHANGELOG.md +23 -0
  6. package/README.md +95 -0
  7. package/dist/alibaba-B6q4Ng1R.mjs +957 -0
  8. package/dist/alibaba-B6q4Ng1R.mjs.map +1 -0
  9. package/dist/amazon-bedrock-Cv9AHQBH.mjs +2070 -0
  10. package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -0
  11. package/dist/anthropic-yB7ST97_.mjs +651 -0
  12. package/dist/anthropic-yB7ST97_.mjs.map +1 -0
  13. package/dist/cerebras-COfl7XM-.mjs +95 -0
  14. package/dist/cerebras-COfl7XM-.mjs.map +1 -0
  15. package/dist/cohere-B7TgO0hT.mjs +271 -0
  16. package/dist/cohere-B7TgO0hT.mjs.map +1 -0
  17. package/dist/deepinfra-B0GxUwCG.mjs +636 -0
  18. package/dist/deepinfra-B0GxUwCG.mjs.map +1 -0
  19. package/dist/deepseek-D64ZEsvS.mjs +50 -0
  20. package/dist/deepseek-D64ZEsvS.mjs.map +1 -0
  21. package/dist/fireworks-ai-DJYvdAi_.mjs +304 -0
  22. package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -0
  23. package/dist/google-BypRl349.mjs +833 -0
  24. package/dist/google-BypRl349.mjs.map +1 -0
  25. package/dist/google-vertex-DbS-zTGD.mjs +730 -0
  26. package/dist/google-vertex-DbS-zTGD.mjs.map +1 -0
  27. package/dist/groq-ei_PerYi.mjs +381 -0
  28. package/dist/groq-ei_PerYi.mjs.map +1 -0
  29. package/dist/huggingface-DaM1EeLP.mjs +456 -0
  30. package/dist/huggingface-DaM1EeLP.mjs.map +1 -0
  31. package/dist/inception-CspEzqNV.mjs +101 -0
  32. package/dist/inception-CspEzqNV.mjs.map +1 -0
  33. package/dist/index.d.mts +30314 -0
  34. package/dist/index.d.mts.map +1 -0
  35. package/dist/index.mjs +271 -0
  36. package/dist/index.mjs.map +1 -0
  37. package/dist/llama-Cf3-koap.mjs +161 -0
  38. package/dist/llama-Cf3-koap.mjs.map +1 -0
  39. package/dist/mistral-BI9MdAO4.mjs +579 -0
  40. package/dist/mistral-BI9MdAO4.mjs.map +1 -0
  41. package/dist/nvidia-COHacuoa.mjs +1625 -0
  42. package/dist/nvidia-COHacuoa.mjs.map +1 -0
  43. package/dist/openai-C0nCfZUq.mjs +1023 -0
  44. package/dist/openai-C0nCfZUq.mjs.map +1 -0
  45. package/dist/openrouter-DSFzxKQb.mjs +4608 -0
  46. package/dist/openrouter-DSFzxKQb.mjs.map +1 -0
  47. package/dist/perplexity-zeZ2WlBU.mjs +96 -0
  48. package/dist/perplexity-zeZ2WlBU.mjs.map +1 -0
  49. package/dist/providers/alibaba.d.mts +1795 -0
  50. package/dist/providers/alibaba.d.mts.map +1 -0
  51. package/dist/providers/alibaba.mjs +39 -0
  52. package/dist/providers/alibaba.mjs.map +1 -0
  53. package/dist/providers/amazon-bedrock.d.mts +3713 -0
  54. package/dist/providers/amazon-bedrock.d.mts.map +1 -0
  55. package/dist/providers/amazon-bedrock.mjs +39 -0
  56. package/dist/providers/amazon-bedrock.mjs.map +1 -0
  57. package/dist/providers/anthropic.d.mts +1109 -0
  58. package/dist/providers/anthropic.d.mts.map +1 -0
  59. package/dist/providers/anthropic.mjs +39 -0
  60. package/dist/providers/anthropic.mjs.map +1 -0
  61. package/dist/providers/cerebras.d.mts +219 -0
  62. package/dist/providers/cerebras.d.mts.map +1 -0
  63. package/dist/providers/cerebras.mjs +39 -0
  64. package/dist/providers/cerebras.mjs.map +1 -0
  65. package/dist/providers/cohere.d.mts +555 -0
  66. package/dist/providers/cohere.d.mts.map +1 -0
  67. package/dist/providers/cohere.mjs +39 -0
  68. package/dist/providers/cohere.mjs.map +1 -0
  69. package/dist/providers/deepinfra.d.mts +1245 -0
  70. package/dist/providers/deepinfra.d.mts.map +1 -0
  71. package/dist/providers/deepinfra.mjs +39 -0
  72. package/dist/providers/deepinfra.mjs.map +1 -0
  73. package/dist/providers/deepseek.d.mts +139 -0
  74. package/dist/providers/deepseek.d.mts.map +1 -0
  75. package/dist/providers/deepseek.mjs +39 -0
  76. package/dist/providers/deepseek.mjs.map +1 -0
  77. package/dist/providers/fireworks-ai.d.mts +611 -0
  78. package/dist/providers/fireworks-ai.d.mts.map +1 -0
  79. package/dist/providers/fireworks-ai.mjs +39 -0
  80. package/dist/providers/fireworks-ai.mjs.map +1 -0
  81. package/dist/providers/google-vertex.d.mts +1227 -0
  82. package/dist/providers/google-vertex.d.mts.map +1 -0
  83. package/dist/providers/google-vertex.mjs +39 -0
  84. package/dist/providers/google-vertex.mjs.map +1 -0
  85. package/dist/providers/google.d.mts +1359 -0
  86. package/dist/providers/google.d.mts.map +1 -0
  87. package/dist/providers/google.mjs +39 -0
  88. package/dist/providers/google.mjs.map +1 -0
  89. package/dist/providers/groq.d.mts +765 -0
  90. package/dist/providers/groq.d.mts.map +1 -0
  91. package/dist/providers/groq.mjs +39 -0
  92. package/dist/providers/groq.mjs.map +1 -0
  93. package/dist/providers/huggingface.d.mts +901 -0
  94. package/dist/providers/huggingface.d.mts.map +1 -0
  95. package/dist/providers/huggingface.mjs +39 -0
  96. package/dist/providers/huggingface.mjs.map +1 -0
  97. package/dist/providers/inception.d.mts +231 -0
  98. package/dist/providers/inception.d.mts.map +1 -0
  99. package/dist/providers/inception.mjs +39 -0
  100. package/dist/providers/inception.mjs.map +1 -0
  101. package/dist/providers/llama.d.mts +345 -0
  102. package/dist/providers/llama.d.mts.map +1 -0
  103. package/dist/providers/llama.mjs +39 -0
  104. package/dist/providers/llama.mjs.map +1 -0
  105. package/dist/providers/mistral.d.mts +1143 -0
  106. package/dist/providers/mistral.d.mts.map +1 -0
  107. package/dist/providers/mistral.mjs +39 -0
  108. package/dist/providers/mistral.mjs.map +1 -0
  109. package/dist/providers/nvidia.d.mts +3117 -0
  110. package/dist/providers/nvidia.d.mts.map +1 -0
  111. package/dist/providers/nvidia.mjs +39 -0
  112. package/dist/providers/nvidia.mjs.map +1 -0
  113. package/dist/providers/openai.d.mts +1963 -0
  114. package/dist/providers/openai.d.mts.map +1 -0
  115. package/dist/providers/openai.mjs +39 -0
  116. package/dist/providers/openai.mjs.map +1 -0
  117. package/dist/providers/openrouter.d.mts +8531 -0
  118. package/dist/providers/openrouter.d.mts.map +1 -0
  119. package/dist/providers/openrouter.mjs +39 -0
  120. package/dist/providers/openrouter.mjs.map +1 -0
  121. package/dist/providers/perplexity.d.mts +221 -0
  122. package/dist/providers/perplexity.d.mts.map +1 -0
  123. package/dist/providers/perplexity.mjs +39 -0
  124. package/dist/providers/perplexity.mjs.map +1 -0
  125. package/dist/providers/togetherai.d.mts +767 -0
  126. package/dist/providers/togetherai.d.mts.map +1 -0
  127. package/dist/providers/togetherai.mjs +39 -0
  128. package/dist/providers/togetherai.mjs.map +1 -0
  129. package/dist/providers/xai.d.mts +1161 -0
  130. package/dist/providers/xai.d.mts.map +1 -0
  131. package/dist/providers/xai.mjs +39 -0
  132. package/dist/providers/xai.mjs.map +1 -0
  133. package/dist/togetherai-BvcxUfPE.mjs +382 -0
  134. package/dist/togetherai-BvcxUfPE.mjs.map +1 -0
  135. package/dist/types-DjdaZckF.d.mts +71 -0
  136. package/dist/types-DjdaZckF.d.mts.map +1 -0
  137. package/dist/xai-fSuAkQJo.mjs +587 -0
  138. package/dist/xai-fSuAkQJo.mjs.map +1 -0
  139. package/docs/catalog/filtering.md +102 -0
  140. package/docs/catalog/overview.md +168 -0
  141. package/docs/catalog/providers.md +73 -0
  142. package/docs/cost/overview.md +125 -0
  143. package/docs/guides/filter-models.md +113 -0
  144. package/docs/guides/setup-resolver.md +106 -0
  145. package/docs/guides/track-costs.md +133 -0
  146. package/docs/overview.md +139 -0
  147. package/docs/provider/configuration.md +100 -0
  148. package/docs/provider/openrouter.md +105 -0
  149. package/docs/provider/overview.md +131 -0
  150. package/docs/troubleshooting.md +100 -0
  151. package/package.json +142 -0
  152. package/providers.json +39 -0
  153. package/scripts/generate-models.ts +392 -0
  154. package/src/catalog/index.test.ts +124 -0
  155. package/src/catalog/index.ts +65 -0
  156. package/src/catalog/providers/alibaba.ts +468 -0
  157. package/src/catalog/providers/amazon-bedrock.ts +941 -0
  158. package/src/catalog/providers/anthropic.ts +270 -0
  159. package/src/catalog/providers/cerebras.ts +61 -0
  160. package/src/catalog/providers/cohere.ts +149 -0
  161. package/src/catalog/providers/deepinfra.ts +325 -0
  162. package/src/catalog/providers/deepseek.ts +39 -0
  163. package/src/catalog/providers/fireworks-ai.ts +160 -0
  164. package/src/catalog/providers/google-vertex.ts +314 -0
  165. package/src/catalog/providers/google.ts +347 -0
  166. package/src/catalog/providers/groq.ts +204 -0
  167. package/src/catalog/providers/huggingface.ts +237 -0
  168. package/src/catalog/providers/inception.ts +61 -0
  169. package/src/catalog/providers/index.ts +59 -0
  170. package/src/catalog/providers/llama.ts +94 -0
  171. package/src/catalog/providers/mistral.ts +303 -0
  172. package/src/catalog/providers/nvidia.ts +820 -0
  173. package/src/catalog/providers/openai.ts +501 -0
  174. package/src/catalog/providers/openrouter.ts +2201 -0
  175. package/src/catalog/providers/perplexity.ts +61 -0
  176. package/src/catalog/providers/togetherai.ts +204 -0
  177. package/src/catalog/providers/xai.ts +292 -0
  178. package/src/catalog/types.ts +86 -0
  179. package/src/cost/calculate.test.ts +157 -0
  180. package/src/cost/calculate.ts +43 -0
  181. package/src/cost/index.ts +2 -0
  182. package/src/cost/types.ts +25 -0
  183. package/src/index.ts +25 -0
  184. package/src/provider/index.ts +9 -0
  185. package/src/provider/openrouter.test.ts +125 -0
  186. package/src/provider/openrouter.ts +110 -0
  187. package/src/provider/resolver.test.ts +138 -0
  188. package/src/provider/resolver.ts +125 -0
  189. package/src/provider/types.ts +39 -0
  190. package/src/providers/alibaba.ts +65 -0
  191. package/src/providers/amazon-bedrock.ts +67 -0
  192. package/src/providers/anthropic.ts +65 -0
  193. package/src/providers/cerebras.ts +65 -0
  194. package/src/providers/cohere.ts +65 -0
  195. package/src/providers/deepinfra.ts +65 -0
  196. package/src/providers/deepseek.ts +65 -0
  197. package/src/providers/fireworks-ai.ts +65 -0
  198. package/src/providers/google-vertex.ts +67 -0
  199. package/src/providers/google.ts +65 -0
  200. package/src/providers/groq.ts +65 -0
  201. package/src/providers/huggingface.ts +67 -0
  202. package/src/providers/inception.ts +65 -0
  203. package/src/providers/llama.ts +65 -0
  204. package/src/providers/mistral.ts +65 -0
  205. package/src/providers/nvidia.ts +65 -0
  206. package/src/providers/openai.ts +65 -0
  207. package/src/providers/openrouter.ts +67 -0
  208. package/src/providers/perplexity.ts +67 -0
  209. package/src/providers/togetherai.ts +65 -0
  210. package/src/providers/xai.ts +65 -0
  211. package/tsconfig.json +25 -0
  212. package/tsdown.config.ts +23 -0
  213. package/vitest.config.ts +29 -0
@@ -0,0 +1,1023 @@
1
+ //#region src/catalog/providers/openai.ts
2
+ const OPENAI_MODELS = [
3
+ {
4
+ id: "gpt-4o-2024-11-20",
5
+ name: "GPT-4o (2024-11-20)",
6
+ provider: "openai",
7
+ family: "gpt",
8
+ pricing: {
9
+ input: 25e-7,
10
+ output: 1e-5,
11
+ cacheRead: 125e-8
12
+ },
13
+ contextWindow: 128e3,
14
+ maxOutput: 16384,
15
+ modalities: {
16
+ input: ["text", "image"],
17
+ output: ["text"]
18
+ },
19
+ capabilities: {
20
+ reasoning: false,
21
+ toolCall: true,
22
+ attachment: true,
23
+ structuredOutput: true
24
+ }
25
+ },
26
+ {
27
+ id: "gpt-5.3-codex",
28
+ name: "GPT-5.3 Codex",
29
+ provider: "openai",
30
+ family: "gpt-codex",
31
+ pricing: {
32
+ input: 175e-8,
33
+ output: 14e-6,
34
+ cacheRead: 175e-9
35
+ },
36
+ contextWindow: 4e5,
37
+ maxOutput: 128e3,
38
+ modalities: {
39
+ input: [
40
+ "text",
41
+ "image",
42
+ "pdf"
43
+ ],
44
+ output: ["text"]
45
+ },
46
+ capabilities: {
47
+ reasoning: true,
48
+ toolCall: true,
49
+ attachment: true,
50
+ structuredOutput: true
51
+ }
52
+ },
53
+ {
54
+ id: "gpt-5-codex",
55
+ name: "GPT-5-Codex",
56
+ provider: "openai",
57
+ family: "gpt-codex",
58
+ pricing: {
59
+ input: 125e-8,
60
+ output: 1e-5,
61
+ cacheRead: 125e-9
62
+ },
63
+ contextWindow: 4e5,
64
+ maxOutput: 128e3,
65
+ modalities: {
66
+ input: ["text", "image"],
67
+ output: ["text"]
68
+ },
69
+ capabilities: {
70
+ reasoning: true,
71
+ toolCall: true,
72
+ attachment: false,
73
+ structuredOutput: true
74
+ }
75
+ },
76
+ {
77
+ id: "gpt-5-pro",
78
+ name: "GPT-5 Pro",
79
+ provider: "openai",
80
+ family: "gpt-pro",
81
+ pricing: {
82
+ input: 15e-6,
83
+ output: 12e-5
84
+ },
85
+ contextWindow: 4e5,
86
+ maxOutput: 272e3,
87
+ modalities: {
88
+ input: ["text", "image"],
89
+ output: ["text"]
90
+ },
91
+ capabilities: {
92
+ reasoning: true,
93
+ toolCall: true,
94
+ attachment: true,
95
+ structuredOutput: true
96
+ }
97
+ },
98
+ {
99
+ id: "gpt-4o-mini",
100
+ name: "GPT-4o mini",
101
+ provider: "openai",
102
+ family: "gpt-mini",
103
+ pricing: {
104
+ input: 15e-8,
105
+ output: 6e-7,
106
+ cacheRead: 8e-8
107
+ },
108
+ contextWindow: 128e3,
109
+ maxOutput: 16384,
110
+ modalities: {
111
+ input: ["text", "image"],
112
+ output: ["text"]
113
+ },
114
+ capabilities: {
115
+ reasoning: false,
116
+ toolCall: true,
117
+ attachment: true,
118
+ structuredOutput: true
119
+ }
120
+ },
121
+ {
122
+ id: "text-embedding-ada-002",
123
+ name: "text-embedding-ada-002",
124
+ provider: "openai",
125
+ family: "text-embedding",
126
+ pricing: {
127
+ input: 1e-7,
128
+ output: 0
129
+ },
130
+ contextWindow: 8192,
131
+ maxOutput: 1536,
132
+ modalities: {
133
+ input: ["text"],
134
+ output: ["text"]
135
+ },
136
+ capabilities: {
137
+ reasoning: false,
138
+ toolCall: false,
139
+ attachment: false,
140
+ structuredOutput: false
141
+ }
142
+ },
143
+ {
144
+ id: "gpt-5-chat-latest",
145
+ name: "GPT-5 Chat (latest)",
146
+ provider: "openai",
147
+ family: "gpt-codex",
148
+ pricing: {
149
+ input: 125e-8,
150
+ output: 1e-5
151
+ },
152
+ contextWindow: 4e5,
153
+ maxOutput: 128e3,
154
+ modalities: {
155
+ input: ["text", "image"],
156
+ output: ["text"]
157
+ },
158
+ capabilities: {
159
+ reasoning: true,
160
+ toolCall: false,
161
+ attachment: true,
162
+ structuredOutput: true
163
+ }
164
+ },
165
+ {
166
+ id: "codex-mini-latest",
167
+ name: "Codex Mini",
168
+ provider: "openai",
169
+ family: "gpt-codex-mini",
170
+ pricing: {
171
+ input: 15e-7,
172
+ output: 6e-6,
173
+ cacheRead: 375e-9
174
+ },
175
+ contextWindow: 2e5,
176
+ maxOutput: 1e5,
177
+ modalities: {
178
+ input: ["text"],
179
+ output: ["text"]
180
+ },
181
+ capabilities: {
182
+ reasoning: true,
183
+ toolCall: true,
184
+ attachment: true,
185
+ structuredOutput: false
186
+ }
187
+ },
188
+ {
189
+ id: "gpt-5.1-codex-max",
190
+ name: "GPT-5.1 Codex Max",
191
+ provider: "openai",
192
+ family: "gpt-codex",
193
+ pricing: {
194
+ input: 125e-8,
195
+ output: 1e-5,
196
+ cacheRead: 125e-9
197
+ },
198
+ contextWindow: 4e5,
199
+ maxOutput: 128e3,
200
+ modalities: {
201
+ input: ["text", "image"],
202
+ output: ["text"]
203
+ },
204
+ capabilities: {
205
+ reasoning: true,
206
+ toolCall: true,
207
+ attachment: true,
208
+ structuredOutput: true
209
+ }
210
+ },
211
+ {
212
+ id: "gpt-4o-2024-05-13",
213
+ name: "GPT-4o (2024-05-13)",
214
+ provider: "openai",
215
+ family: "gpt",
216
+ pricing: {
217
+ input: 5e-6,
218
+ output: 15e-6
219
+ },
220
+ contextWindow: 128e3,
221
+ maxOutput: 4096,
222
+ modalities: {
223
+ input: ["text", "image"],
224
+ output: ["text"]
225
+ },
226
+ capabilities: {
227
+ reasoning: false,
228
+ toolCall: true,
229
+ attachment: true,
230
+ structuredOutput: true
231
+ }
232
+ },
233
+ {
234
+ id: "gpt-5.2-chat-latest",
235
+ name: "GPT-5.2 Chat",
236
+ provider: "openai",
237
+ family: "gpt-codex",
238
+ pricing: {
239
+ input: 175e-8,
240
+ output: 14e-6,
241
+ cacheRead: 175e-9
242
+ },
243
+ contextWindow: 128e3,
244
+ maxOutput: 16384,
245
+ modalities: {
246
+ input: ["text", "image"],
247
+ output: ["text"]
248
+ },
249
+ capabilities: {
250
+ reasoning: true,
251
+ toolCall: true,
252
+ attachment: true,
253
+ structuredOutput: true
254
+ }
255
+ },
256
+ {
257
+ id: "gpt-5.2-codex",
258
+ name: "GPT-5.2 Codex",
259
+ provider: "openai",
260
+ family: "gpt-codex",
261
+ pricing: {
262
+ input: 175e-8,
263
+ output: 14e-6,
264
+ cacheRead: 175e-9
265
+ },
266
+ contextWindow: 4e5,
267
+ maxOutput: 128e3,
268
+ modalities: {
269
+ input: [
270
+ "text",
271
+ "image",
272
+ "pdf"
273
+ ],
274
+ output: ["text"]
275
+ },
276
+ capabilities: {
277
+ reasoning: true,
278
+ toolCall: true,
279
+ attachment: true,
280
+ structuredOutput: true
281
+ }
282
+ },
283
+ {
284
+ id: "o3-deep-research",
285
+ name: "o3-deep-research",
286
+ provider: "openai",
287
+ family: "o",
288
+ pricing: {
289
+ input: 1e-5,
290
+ output: 4e-5,
291
+ cacheRead: 25e-7
292
+ },
293
+ contextWindow: 2e5,
294
+ maxOutput: 1e5,
295
+ modalities: {
296
+ input: ["text", "image"],
297
+ output: ["text"]
298
+ },
299
+ capabilities: {
300
+ reasoning: true,
301
+ toolCall: true,
302
+ attachment: true,
303
+ structuredOutput: false
304
+ }
305
+ },
306
+ {
307
+ id: "o1",
308
+ name: "o1",
309
+ provider: "openai",
310
+ family: "o",
311
+ pricing: {
312
+ input: 15e-6,
313
+ output: 6e-5,
314
+ cacheRead: 75e-7
315
+ },
316
+ contextWindow: 2e5,
317
+ maxOutput: 1e5,
318
+ modalities: {
319
+ input: ["text", "image"],
320
+ output: ["text"]
321
+ },
322
+ capabilities: {
323
+ reasoning: true,
324
+ toolCall: true,
325
+ attachment: true,
326
+ structuredOutput: true
327
+ }
328
+ },
329
+ {
330
+ id: "gpt-5.1",
331
+ name: "GPT-5.1",
332
+ provider: "openai",
333
+ family: "gpt",
334
+ pricing: {
335
+ input: 125e-8,
336
+ output: 1e-5,
337
+ cacheRead: 13e-8
338
+ },
339
+ contextWindow: 4e5,
340
+ maxOutput: 128e3,
341
+ modalities: {
342
+ input: ["text", "image"],
343
+ output: ["text"]
344
+ },
345
+ capabilities: {
346
+ reasoning: true,
347
+ toolCall: true,
348
+ attachment: true,
349
+ structuredOutput: true
350
+ }
351
+ },
352
+ {
353
+ id: "o4-mini-deep-research",
354
+ name: "o4-mini-deep-research",
355
+ provider: "openai",
356
+ family: "o-mini",
357
+ pricing: {
358
+ input: 2e-6,
359
+ output: 8e-6,
360
+ cacheRead: 5e-7
361
+ },
362
+ contextWindow: 2e5,
363
+ maxOutput: 1e5,
364
+ modalities: {
365
+ input: ["text", "image"],
366
+ output: ["text"]
367
+ },
368
+ capabilities: {
369
+ reasoning: true,
370
+ toolCall: true,
371
+ attachment: true,
372
+ structuredOutput: false
373
+ }
374
+ },
375
+ {
376
+ id: "gpt-5.3-codex-spark",
377
+ name: "GPT-5.3 Codex Spark",
378
+ provider: "openai",
379
+ family: "gpt-codex-spark",
380
+ pricing: {
381
+ input: 175e-8,
382
+ output: 14e-6,
383
+ cacheRead: 175e-9
384
+ },
385
+ contextWindow: 128e3,
386
+ maxOutput: 32e3,
387
+ modalities: {
388
+ input: [
389
+ "text",
390
+ "image",
391
+ "pdf"
392
+ ],
393
+ output: ["text"]
394
+ },
395
+ capabilities: {
396
+ reasoning: true,
397
+ toolCall: true,
398
+ attachment: true,
399
+ structuredOutput: true
400
+ }
401
+ },
402
+ {
403
+ id: "o3",
404
+ name: "o3",
405
+ provider: "openai",
406
+ family: "o",
407
+ pricing: {
408
+ input: 2e-6,
409
+ output: 8e-6,
410
+ cacheRead: 5e-7
411
+ },
412
+ contextWindow: 2e5,
413
+ maxOutput: 1e5,
414
+ modalities: {
415
+ input: ["text", "image"],
416
+ output: ["text"]
417
+ },
418
+ capabilities: {
419
+ reasoning: true,
420
+ toolCall: true,
421
+ attachment: true,
422
+ structuredOutput: true
423
+ }
424
+ },
425
+ {
426
+ id: "text-embedding-3-small",
427
+ name: "text-embedding-3-small",
428
+ provider: "openai",
429
+ family: "text-embedding",
430
+ pricing: {
431
+ input: 2e-8,
432
+ output: 0
433
+ },
434
+ contextWindow: 8191,
435
+ maxOutput: 1536,
436
+ modalities: {
437
+ input: ["text"],
438
+ output: ["text"]
439
+ },
440
+ capabilities: {
441
+ reasoning: false,
442
+ toolCall: false,
443
+ attachment: false,
444
+ structuredOutput: false
445
+ }
446
+ },
447
+ {
448
+ id: "gpt-4.1-nano",
449
+ name: "GPT-4.1 nano",
450
+ provider: "openai",
451
+ family: "gpt-nano",
452
+ pricing: {
453
+ input: 1e-7,
454
+ output: 4e-7,
455
+ cacheRead: 3e-8
456
+ },
457
+ contextWindow: 1047576,
458
+ maxOutput: 32768,
459
+ modalities: {
460
+ input: ["text", "image"],
461
+ output: ["text"]
462
+ },
463
+ capabilities: {
464
+ reasoning: false,
465
+ toolCall: true,
466
+ attachment: true,
467
+ structuredOutput: true
468
+ }
469
+ },
470
+ {
471
+ id: "text-embedding-3-large",
472
+ name: "text-embedding-3-large",
473
+ provider: "openai",
474
+ family: "text-embedding",
475
+ pricing: {
476
+ input: 13e-8,
477
+ output: 0
478
+ },
479
+ contextWindow: 8191,
480
+ maxOutput: 3072,
481
+ modalities: {
482
+ input: ["text"],
483
+ output: ["text"]
484
+ },
485
+ capabilities: {
486
+ reasoning: false,
487
+ toolCall: false,
488
+ attachment: false,
489
+ structuredOutput: false
490
+ }
491
+ },
492
+ {
493
+ id: "gpt-3.5-turbo",
494
+ name: "GPT-3.5-turbo",
495
+ provider: "openai",
496
+ family: "gpt",
497
+ pricing: {
498
+ input: 5e-7,
499
+ output: 15e-7,
500
+ cacheRead: 125e-8
501
+ },
502
+ contextWindow: 16385,
503
+ maxOutput: 4096,
504
+ modalities: {
505
+ input: ["text"],
506
+ output: ["text"]
507
+ },
508
+ capabilities: {
509
+ reasoning: false,
510
+ toolCall: false,
511
+ attachment: false,
512
+ structuredOutput: false
513
+ }
514
+ },
515
+ {
516
+ id: "gpt-5.1-codex-mini",
517
+ name: "GPT-5.1 Codex mini",
518
+ provider: "openai",
519
+ family: "gpt-codex",
520
+ pricing: {
521
+ input: 25e-8,
522
+ output: 2e-6,
523
+ cacheRead: 25e-9
524
+ },
525
+ contextWindow: 4e5,
526
+ maxOutput: 128e3,
527
+ modalities: {
528
+ input: ["text", "image"],
529
+ output: ["text"]
530
+ },
531
+ capabilities: {
532
+ reasoning: true,
533
+ toolCall: true,
534
+ attachment: true,
535
+ structuredOutput: true
536
+ }
537
+ },
538
+ {
539
+ id: "gpt-5.2",
540
+ name: "GPT-5.2",
541
+ provider: "openai",
542
+ family: "gpt",
543
+ pricing: {
544
+ input: 175e-8,
545
+ output: 14e-6,
546
+ cacheRead: 175e-9
547
+ },
548
+ contextWindow: 4e5,
549
+ maxOutput: 128e3,
550
+ modalities: {
551
+ input: ["text", "image"],
552
+ output: ["text"]
553
+ },
554
+ capabilities: {
555
+ reasoning: true,
556
+ toolCall: true,
557
+ attachment: true,
558
+ structuredOutput: true
559
+ }
560
+ },
561
+ {
562
+ id: "gpt-4.1",
563
+ name: "GPT-4.1",
564
+ provider: "openai",
565
+ family: "gpt",
566
+ pricing: {
567
+ input: 2e-6,
568
+ output: 8e-6,
569
+ cacheRead: 5e-7
570
+ },
571
+ contextWindow: 1047576,
572
+ maxOutput: 32768,
573
+ modalities: {
574
+ input: ["text", "image"],
575
+ output: ["text"]
576
+ },
577
+ capabilities: {
578
+ reasoning: false,
579
+ toolCall: true,
580
+ attachment: true,
581
+ structuredOutput: true
582
+ }
583
+ },
584
+ {
585
+ id: "o3-pro",
586
+ name: "o3-pro",
587
+ provider: "openai",
588
+ family: "o-pro",
589
+ pricing: {
590
+ input: 2e-5,
591
+ output: 8e-5
592
+ },
593
+ contextWindow: 2e5,
594
+ maxOutput: 1e5,
595
+ modalities: {
596
+ input: ["text", "image"],
597
+ output: ["text"]
598
+ },
599
+ capabilities: {
600
+ reasoning: true,
601
+ toolCall: true,
602
+ attachment: true,
603
+ structuredOutput: true
604
+ }
605
+ },
606
+ {
607
+ id: "gpt-4-turbo",
608
+ name: "GPT-4 Turbo",
609
+ provider: "openai",
610
+ family: "gpt",
611
+ pricing: {
612
+ input: 1e-5,
613
+ output: 3e-5
614
+ },
615
+ contextWindow: 128e3,
616
+ maxOutput: 4096,
617
+ modalities: {
618
+ input: ["text", "image"],
619
+ output: ["text"]
620
+ },
621
+ capabilities: {
622
+ reasoning: false,
623
+ toolCall: true,
624
+ attachment: true,
625
+ structuredOutput: false
626
+ }
627
+ },
628
+ {
629
+ id: "gpt-5",
630
+ name: "GPT-5",
631
+ provider: "openai",
632
+ family: "gpt",
633
+ pricing: {
634
+ input: 125e-8,
635
+ output: 1e-5,
636
+ cacheRead: 125e-9
637
+ },
638
+ contextWindow: 4e5,
639
+ maxOutput: 128e3,
640
+ modalities: {
641
+ input: ["text", "image"],
642
+ output: ["text"]
643
+ },
644
+ capabilities: {
645
+ reasoning: true,
646
+ toolCall: true,
647
+ attachment: true,
648
+ structuredOutput: true
649
+ }
650
+ },
651
+ {
652
+ id: "o4-mini",
653
+ name: "o4-mini",
654
+ provider: "openai",
655
+ family: "o-mini",
656
+ pricing: {
657
+ input: 11e-7,
658
+ output: 44e-7,
659
+ cacheRead: 28e-8
660
+ },
661
+ contextWindow: 2e5,
662
+ maxOutput: 1e5,
663
+ modalities: {
664
+ input: ["text", "image"],
665
+ output: ["text"]
666
+ },
667
+ capabilities: {
668
+ reasoning: true,
669
+ toolCall: true,
670
+ attachment: true,
671
+ structuredOutput: true
672
+ }
673
+ },
674
+ {
675
+ id: "gpt-4.1-mini",
676
+ name: "GPT-4.1 mini",
677
+ provider: "openai",
678
+ family: "gpt-mini",
679
+ pricing: {
680
+ input: 4e-7,
681
+ output: 16e-7,
682
+ cacheRead: 1e-7
683
+ },
684
+ contextWindow: 1047576,
685
+ maxOutput: 32768,
686
+ modalities: {
687
+ input: ["text", "image"],
688
+ output: ["text"]
689
+ },
690
+ capabilities: {
691
+ reasoning: false,
692
+ toolCall: true,
693
+ attachment: true,
694
+ structuredOutput: true
695
+ }
696
+ },
697
+ {
698
+ id: "gpt-5.4",
699
+ name: "GPT-5.4",
700
+ provider: "openai",
701
+ family: "gpt",
702
+ pricing: {
703
+ input: 25e-7,
704
+ output: 15e-6,
705
+ cacheRead: 25e-8
706
+ },
707
+ contextWindow: 105e4,
708
+ maxOutput: 128e3,
709
+ modalities: {
710
+ input: [
711
+ "text",
712
+ "image",
713
+ "pdf"
714
+ ],
715
+ output: ["text"]
716
+ },
717
+ capabilities: {
718
+ reasoning: true,
719
+ toolCall: true,
720
+ attachment: true,
721
+ structuredOutput: true
722
+ }
723
+ },
724
+ {
725
+ id: "o1-preview",
726
+ name: "o1-preview",
727
+ provider: "openai",
728
+ family: "o",
729
+ pricing: {
730
+ input: 15e-6,
731
+ output: 6e-5,
732
+ cacheRead: 75e-7
733
+ },
734
+ contextWindow: 128e3,
735
+ maxOutput: 32768,
736
+ modalities: {
737
+ input: ["text"],
738
+ output: ["text"]
739
+ },
740
+ capabilities: {
741
+ reasoning: true,
742
+ toolCall: false,
743
+ attachment: false,
744
+ structuredOutput: false
745
+ }
746
+ },
747
+ {
748
+ id: "gpt-5.4-pro",
749
+ name: "GPT-5.4 Pro",
750
+ provider: "openai",
751
+ family: "gpt-pro",
752
+ pricing: {
753
+ input: 3e-5,
754
+ output: 18e-5
755
+ },
756
+ contextWindow: 105e4,
757
+ maxOutput: 128e3,
758
+ modalities: {
759
+ input: ["text", "image"],
760
+ output: ["text"]
761
+ },
762
+ capabilities: {
763
+ reasoning: true,
764
+ toolCall: true,
765
+ attachment: true,
766
+ structuredOutput: false
767
+ }
768
+ },
769
+ {
770
+ id: "o1-pro",
771
+ name: "o1-pro",
772
+ provider: "openai",
773
+ family: "o-pro",
774
+ pricing: {
775
+ input: 15e-5,
776
+ output: 6e-4
777
+ },
778
+ contextWindow: 2e5,
779
+ maxOutput: 1e5,
780
+ modalities: {
781
+ input: ["text", "image"],
782
+ output: ["text"]
783
+ },
784
+ capabilities: {
785
+ reasoning: true,
786
+ toolCall: true,
787
+ attachment: true,
788
+ structuredOutput: true
789
+ }
790
+ },
791
+ {
792
+ id: "gpt-5.1-codex",
793
+ name: "GPT-5.1 Codex",
794
+ provider: "openai",
795
+ family: "gpt-codex",
796
+ pricing: {
797
+ input: 125e-8,
798
+ output: 1e-5,
799
+ cacheRead: 125e-9
800
+ },
801
+ contextWindow: 4e5,
802
+ maxOutput: 128e3,
803
+ modalities: {
804
+ input: ["text", "image"],
805
+ output: ["text"]
806
+ },
807
+ capabilities: {
808
+ reasoning: true,
809
+ toolCall: true,
810
+ attachment: true,
811
+ structuredOutput: true
812
+ }
813
+ },
814
+ {
815
+ id: "gpt-5.2-pro",
816
+ name: "GPT-5.2 Pro",
817
+ provider: "openai",
818
+ family: "gpt-pro",
819
+ pricing: {
820
+ input: 21e-6,
821
+ output: 168e-6
822
+ },
823
+ contextWindow: 4e5,
824
+ maxOutput: 128e3,
825
+ modalities: {
826
+ input: ["text", "image"],
827
+ output: ["text"]
828
+ },
829
+ capabilities: {
830
+ reasoning: true,
831
+ toolCall: true,
832
+ attachment: true,
833
+ structuredOutput: false
834
+ }
835
+ },
836
+ {
837
+ id: "o3-mini",
838
+ name: "o3-mini",
839
+ provider: "openai",
840
+ family: "o-mini",
841
+ pricing: {
842
+ input: 11e-7,
843
+ output: 44e-7,
844
+ cacheRead: 55e-8
845
+ },
846
+ contextWindow: 2e5,
847
+ maxOutput: 1e5,
848
+ modalities: {
849
+ input: ["text"],
850
+ output: ["text"]
851
+ },
852
+ capabilities: {
853
+ reasoning: true,
854
+ toolCall: true,
855
+ attachment: false,
856
+ structuredOutput: true
857
+ }
858
+ },
859
+ {
860
+ id: "gpt-4o-2024-08-06",
861
+ name: "GPT-4o (2024-08-06)",
862
+ provider: "openai",
863
+ family: "gpt",
864
+ pricing: {
865
+ input: 25e-7,
866
+ output: 1e-5,
867
+ cacheRead: 125e-8
868
+ },
869
+ contextWindow: 128e3,
870
+ maxOutput: 16384,
871
+ modalities: {
872
+ input: ["text", "image"],
873
+ output: ["text"]
874
+ },
875
+ capabilities: {
876
+ reasoning: false,
877
+ toolCall: true,
878
+ attachment: true,
879
+ structuredOutput: true
880
+ }
881
+ },
882
+ {
883
+ id: "gpt-5-mini",
884
+ name: "GPT-5 Mini",
885
+ provider: "openai",
886
+ family: "gpt-mini",
887
+ pricing: {
888
+ input: 25e-8,
889
+ output: 2e-6,
890
+ cacheRead: 25e-9
891
+ },
892
+ contextWindow: 4e5,
893
+ maxOutput: 128e3,
894
+ modalities: {
895
+ input: ["text", "image"],
896
+ output: ["text"]
897
+ },
898
+ capabilities: {
899
+ reasoning: true,
900
+ toolCall: true,
901
+ attachment: true,
902
+ structuredOutput: true
903
+ }
904
+ },
905
+ {
906
+ id: "gpt-5.1-chat-latest",
907
+ name: "GPT-5.1 Chat",
908
+ provider: "openai",
909
+ family: "gpt-codex",
910
+ pricing: {
911
+ input: 125e-8,
912
+ output: 1e-5,
913
+ cacheRead: 125e-9
914
+ },
915
+ contextWindow: 128e3,
916
+ maxOutput: 16384,
917
+ modalities: {
918
+ input: ["text", "image"],
919
+ output: ["text"]
920
+ },
921
+ capabilities: {
922
+ reasoning: true,
923
+ toolCall: true,
924
+ attachment: true,
925
+ structuredOutput: true
926
+ }
927
+ },
928
+ {
929
+ id: "gpt-4",
930
+ name: "GPT-4",
931
+ provider: "openai",
932
+ family: "gpt",
933
+ pricing: {
934
+ input: 3e-5,
935
+ output: 6e-5
936
+ },
937
+ contextWindow: 8192,
938
+ maxOutput: 8192,
939
+ modalities: {
940
+ input: ["text"],
941
+ output: ["text"]
942
+ },
943
+ capabilities: {
944
+ reasoning: false,
945
+ toolCall: true,
946
+ attachment: true,
947
+ structuredOutput: false
948
+ }
949
+ },
950
+ {
951
+ id: "gpt-5-nano",
952
+ name: "GPT-5 Nano",
953
+ provider: "openai",
954
+ family: "gpt-nano",
955
+ pricing: {
956
+ input: 5e-8,
957
+ output: 4e-7,
958
+ cacheRead: 5e-9
959
+ },
960
+ contextWindow: 4e5,
961
+ maxOutput: 128e3,
962
+ modalities: {
963
+ input: ["text", "image"],
964
+ output: ["text"]
965
+ },
966
+ capabilities: {
967
+ reasoning: true,
968
+ toolCall: true,
969
+ attachment: true,
970
+ structuredOutput: true
971
+ }
972
+ },
973
+ {
974
+ id: "o1-mini",
975
+ name: "o1-mini",
976
+ provider: "openai",
977
+ family: "o-mini",
978
+ pricing: {
979
+ input: 11e-7,
980
+ output: 44e-7,
981
+ cacheRead: 55e-8
982
+ },
983
+ contextWindow: 128e3,
984
+ maxOutput: 65536,
985
+ modalities: {
986
+ input: ["text"],
987
+ output: ["text"]
988
+ },
989
+ capabilities: {
990
+ reasoning: true,
991
+ toolCall: false,
992
+ attachment: false,
993
+ structuredOutput: true
994
+ }
995
+ },
996
+ {
997
+ id: "gpt-4o",
998
+ name: "GPT-4o",
999
+ provider: "openai",
1000
+ family: "gpt",
1001
+ pricing: {
1002
+ input: 25e-7,
1003
+ output: 1e-5,
1004
+ cacheRead: 125e-8
1005
+ },
1006
+ contextWindow: 128e3,
1007
+ maxOutput: 16384,
1008
+ modalities: {
1009
+ input: ["text", "image"],
1010
+ output: ["text"]
1011
+ },
1012
+ capabilities: {
1013
+ reasoning: false,
1014
+ toolCall: true,
1015
+ attachment: true,
1016
+ structuredOutput: true
1017
+ }
1018
+ }
1019
+ ];
1020
+ //#endregion
1021
+ export { OPENAI_MODELS as t };
1022
+
1023
+ //# sourceMappingURL=openai-C0nCfZUq.mjs.map