@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,611 @@
1
+ import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
2
+ import { LiteralUnion } from "type-fest";
3
+
4
+ //#region src/catalog/providers/fireworks-ai.d.ts
5
+ declare const FIREWORKS_AI_MODELS: readonly [{
6
+ readonly id: "accounts/fireworks/models/kimi-k2-instruct";
7
+ readonly name: "Kimi K2 Instruct";
8
+ readonly provider: "fireworks-ai";
9
+ readonly family: "kimi";
10
+ readonly pricing: {
11
+ readonly input: 0.000001;
12
+ readonly output: 0.000003;
13
+ };
14
+ readonly contextWindow: 128000;
15
+ readonly maxOutput: 16384;
16
+ readonly modalities: {
17
+ readonly input: readonly ["text"];
18
+ readonly output: readonly ["text"];
19
+ };
20
+ readonly capabilities: {
21
+ readonly reasoning: false;
22
+ readonly toolCall: true;
23
+ readonly attachment: false;
24
+ readonly structuredOutput: false;
25
+ };
26
+ }, {
27
+ readonly id: "accounts/fireworks/models/glm-4p7";
28
+ readonly name: "GLM 4.7";
29
+ readonly provider: "fireworks-ai";
30
+ readonly family: "glm";
31
+ readonly pricing: {
32
+ readonly input: 6e-7;
33
+ readonly output: 0.0000022;
34
+ readonly cacheRead: 3e-7;
35
+ };
36
+ readonly contextWindow: 198000;
37
+ readonly maxOutput: 198000;
38
+ readonly modalities: {
39
+ readonly input: readonly ["text"];
40
+ readonly output: readonly ["text"];
41
+ };
42
+ readonly capabilities: {
43
+ readonly reasoning: true;
44
+ readonly toolCall: true;
45
+ readonly attachment: false;
46
+ readonly structuredOutput: false;
47
+ };
48
+ }, {
49
+ readonly id: "accounts/fireworks/models/glm-5";
50
+ readonly name: "GLM 5";
51
+ readonly provider: "fireworks-ai";
52
+ readonly family: "glm";
53
+ readonly pricing: {
54
+ readonly input: 0.000001;
55
+ readonly output: 0.0000032;
56
+ readonly cacheRead: 5e-7;
57
+ };
58
+ readonly contextWindow: 202752;
59
+ readonly maxOutput: 131072;
60
+ readonly modalities: {
61
+ readonly input: readonly ["text"];
62
+ readonly output: readonly ["text"];
63
+ };
64
+ readonly capabilities: {
65
+ readonly reasoning: true;
66
+ readonly toolCall: true;
67
+ readonly attachment: false;
68
+ readonly structuredOutput: false;
69
+ };
70
+ }, {
71
+ readonly id: "accounts/fireworks/models/deepseek-v3p1";
72
+ readonly name: "DeepSeek V3.1";
73
+ readonly provider: "fireworks-ai";
74
+ readonly family: "deepseek";
75
+ readonly pricing: {
76
+ readonly input: 5.6e-7;
77
+ readonly output: 0.00000168;
78
+ };
79
+ readonly contextWindow: 163840;
80
+ readonly maxOutput: 163840;
81
+ readonly modalities: {
82
+ readonly input: readonly ["text"];
83
+ readonly output: readonly ["text"];
84
+ };
85
+ readonly capabilities: {
86
+ readonly reasoning: true;
87
+ readonly toolCall: true;
88
+ readonly attachment: false;
89
+ readonly structuredOutput: false;
90
+ };
91
+ }, {
92
+ readonly id: "accounts/fireworks/models/minimax-m2p1";
93
+ readonly name: "MiniMax-M2.1";
94
+ readonly provider: "fireworks-ai";
95
+ readonly family: "minimax";
96
+ readonly pricing: {
97
+ readonly input: 3e-7;
98
+ readonly output: 0.0000012;
99
+ readonly cacheRead: 3e-8;
100
+ };
101
+ readonly contextWindow: 200000;
102
+ readonly maxOutput: 200000;
103
+ readonly modalities: {
104
+ readonly input: readonly ["text"];
105
+ readonly output: readonly ["text"];
106
+ };
107
+ readonly capabilities: {
108
+ readonly reasoning: true;
109
+ readonly toolCall: true;
110
+ readonly attachment: false;
111
+ readonly structuredOutput: false;
112
+ };
113
+ }, {
114
+ readonly id: "accounts/fireworks/models/glm-4p5-air";
115
+ readonly name: "GLM 4.5 Air";
116
+ readonly provider: "fireworks-ai";
117
+ readonly family: "glm-air";
118
+ readonly pricing: {
119
+ readonly input: 2.2e-7;
120
+ readonly output: 8.8e-7;
121
+ };
122
+ readonly contextWindow: 131072;
123
+ readonly maxOutput: 131072;
124
+ readonly modalities: {
125
+ readonly input: readonly ["text"];
126
+ readonly output: readonly ["text"];
127
+ };
128
+ readonly capabilities: {
129
+ readonly reasoning: true;
130
+ readonly toolCall: true;
131
+ readonly attachment: false;
132
+ readonly structuredOutput: false;
133
+ };
134
+ }, {
135
+ readonly id: "accounts/fireworks/models/deepseek-v3p2";
136
+ readonly name: "DeepSeek V3.2";
137
+ readonly provider: "fireworks-ai";
138
+ readonly family: "deepseek";
139
+ readonly pricing: {
140
+ readonly input: 5.6e-7;
141
+ readonly output: 0.00000168;
142
+ readonly cacheRead: 2.8e-7;
143
+ };
144
+ readonly contextWindow: 160000;
145
+ readonly maxOutput: 160000;
146
+ readonly modalities: {
147
+ readonly input: readonly ["text"];
148
+ readonly output: readonly ["text"];
149
+ };
150
+ readonly capabilities: {
151
+ readonly reasoning: true;
152
+ readonly toolCall: true;
153
+ readonly attachment: false;
154
+ readonly structuredOutput: false;
155
+ };
156
+ }, {
157
+ readonly id: "accounts/fireworks/models/minimax-m2p5";
158
+ readonly name: "MiniMax-M2.5";
159
+ readonly provider: "fireworks-ai";
160
+ readonly family: "minimax";
161
+ readonly pricing: {
162
+ readonly input: 3e-7;
163
+ readonly output: 0.0000012;
164
+ readonly cacheRead: 3e-8;
165
+ };
166
+ readonly contextWindow: 196608;
167
+ readonly maxOutput: 196608;
168
+ readonly modalities: {
169
+ readonly input: readonly ["text"];
170
+ readonly output: readonly ["text"];
171
+ };
172
+ readonly capabilities: {
173
+ readonly reasoning: true;
174
+ readonly toolCall: true;
175
+ readonly attachment: false;
176
+ readonly structuredOutput: false;
177
+ };
178
+ }, {
179
+ readonly id: "accounts/fireworks/models/gpt-oss-120b";
180
+ readonly name: "GPT OSS 120B";
181
+ readonly provider: "fireworks-ai";
182
+ readonly family: "gpt-oss";
183
+ readonly pricing: {
184
+ readonly input: 1.5e-7;
185
+ readonly output: 6e-7;
186
+ };
187
+ readonly contextWindow: 131072;
188
+ readonly maxOutput: 32768;
189
+ readonly modalities: {
190
+ readonly input: readonly ["text"];
191
+ readonly output: readonly ["text"];
192
+ };
193
+ readonly capabilities: {
194
+ readonly reasoning: true;
195
+ readonly toolCall: true;
196
+ readonly attachment: false;
197
+ readonly structuredOutput: false;
198
+ };
199
+ }, {
200
+ readonly id: "accounts/fireworks/models/kimi-k2p5";
201
+ readonly name: "Kimi K2.5";
202
+ readonly provider: "fireworks-ai";
203
+ readonly family: "kimi-thinking";
204
+ readonly pricing: {
205
+ readonly input: 6e-7;
206
+ readonly output: 0.000003;
207
+ readonly cacheRead: 1e-7;
208
+ };
209
+ readonly contextWindow: 256000;
210
+ readonly maxOutput: 256000;
211
+ readonly modalities: {
212
+ readonly input: readonly ["text", "image", "video"];
213
+ readonly output: readonly ["text"];
214
+ };
215
+ readonly capabilities: {
216
+ readonly reasoning: true;
217
+ readonly toolCall: true;
218
+ readonly attachment: false;
219
+ readonly structuredOutput: false;
220
+ };
221
+ }, {
222
+ readonly id: "accounts/fireworks/models/kimi-k2-thinking";
223
+ readonly name: "Kimi K2 Thinking";
224
+ readonly provider: "fireworks-ai";
225
+ readonly family: "kimi-thinking";
226
+ readonly pricing: {
227
+ readonly input: 6e-7;
228
+ readonly output: 0.0000025;
229
+ readonly cacheRead: 3e-7;
230
+ };
231
+ readonly contextWindow: 256000;
232
+ readonly maxOutput: 256000;
233
+ readonly modalities: {
234
+ readonly input: readonly ["text"];
235
+ readonly output: readonly ["text"];
236
+ };
237
+ readonly capabilities: {
238
+ readonly reasoning: true;
239
+ readonly toolCall: true;
240
+ readonly attachment: false;
241
+ readonly structuredOutput: false;
242
+ };
243
+ }, {
244
+ readonly id: "accounts/fireworks/models/glm-4p5";
245
+ readonly name: "GLM 4.5";
246
+ readonly provider: "fireworks-ai";
247
+ readonly family: "glm";
248
+ readonly pricing: {
249
+ readonly input: 5.5e-7;
250
+ readonly output: 0.00000219;
251
+ };
252
+ readonly contextWindow: 131072;
253
+ readonly maxOutput: 131072;
254
+ readonly modalities: {
255
+ readonly input: readonly ["text"];
256
+ readonly output: readonly ["text"];
257
+ };
258
+ readonly capabilities: {
259
+ readonly reasoning: true;
260
+ readonly toolCall: true;
261
+ readonly attachment: false;
262
+ readonly structuredOutput: false;
263
+ };
264
+ }, {
265
+ readonly id: "accounts/fireworks/models/gpt-oss-20b";
266
+ readonly name: "GPT OSS 20B";
267
+ readonly provider: "fireworks-ai";
268
+ readonly family: "gpt-oss";
269
+ readonly pricing: {
270
+ readonly input: 5e-8;
271
+ readonly output: 2e-7;
272
+ };
273
+ readonly contextWindow: 131072;
274
+ readonly maxOutput: 32768;
275
+ readonly modalities: {
276
+ readonly input: readonly ["text"];
277
+ readonly output: readonly ["text"];
278
+ };
279
+ readonly capabilities: {
280
+ readonly reasoning: true;
281
+ readonly toolCall: true;
282
+ readonly attachment: false;
283
+ readonly structuredOutput: false;
284
+ };
285
+ }];
286
+ //#endregion
287
+ //#region src/providers/fireworks-ai.d.ts
288
+ /**
289
+ * Known model identifiers for Fireworks AI.
290
+ *
291
+ * @example
292
+ * ```typescript
293
+ * import type { FireworksModelId } from '@funkai/models/fireworks-ai'
294
+ *
295
+ * const id: FireworksModelId = 'accounts/fireworks/models/kimi-k2-instruct'
296
+ * ```
297
+ */
298
+ type FireworksModelId = (typeof FIREWORKS_AI_MODELS)[number]["id"];
299
+ /**
300
+ * All Fireworks AI models in the catalog.
301
+ *
302
+ * @example
303
+ * ```typescript
304
+ * import { fireworksModels } from '@funkai/models/fireworks-ai'
305
+ *
306
+ * for (const m of fireworksModels) {
307
+ * console.log(m.id, m.pricing.input)
308
+ * }
309
+ * ```
310
+ */
311
+ declare const fireworksModels: readonly [{
312
+ readonly id: "accounts/fireworks/models/kimi-k2-instruct";
313
+ readonly name: "Kimi K2 Instruct";
314
+ readonly provider: "fireworks-ai";
315
+ readonly family: "kimi";
316
+ readonly pricing: {
317
+ readonly input: 0.000001;
318
+ readonly output: 0.000003;
319
+ };
320
+ readonly contextWindow: 128000;
321
+ readonly maxOutput: 16384;
322
+ readonly modalities: {
323
+ readonly input: readonly ["text"];
324
+ readonly output: readonly ["text"];
325
+ };
326
+ readonly capabilities: {
327
+ readonly reasoning: false;
328
+ readonly toolCall: true;
329
+ readonly attachment: false;
330
+ readonly structuredOutput: false;
331
+ };
332
+ }, {
333
+ readonly id: "accounts/fireworks/models/glm-4p7";
334
+ readonly name: "GLM 4.7";
335
+ readonly provider: "fireworks-ai";
336
+ readonly family: "glm";
337
+ readonly pricing: {
338
+ readonly input: 6e-7;
339
+ readonly output: 0.0000022;
340
+ readonly cacheRead: 3e-7;
341
+ };
342
+ readonly contextWindow: 198000;
343
+ readonly maxOutput: 198000;
344
+ readonly modalities: {
345
+ readonly input: readonly ["text"];
346
+ readonly output: readonly ["text"];
347
+ };
348
+ readonly capabilities: {
349
+ readonly reasoning: true;
350
+ readonly toolCall: true;
351
+ readonly attachment: false;
352
+ readonly structuredOutput: false;
353
+ };
354
+ }, {
355
+ readonly id: "accounts/fireworks/models/glm-5";
356
+ readonly name: "GLM 5";
357
+ readonly provider: "fireworks-ai";
358
+ readonly family: "glm";
359
+ readonly pricing: {
360
+ readonly input: 0.000001;
361
+ readonly output: 0.0000032;
362
+ readonly cacheRead: 5e-7;
363
+ };
364
+ readonly contextWindow: 202752;
365
+ readonly maxOutput: 131072;
366
+ readonly modalities: {
367
+ readonly input: readonly ["text"];
368
+ readonly output: readonly ["text"];
369
+ };
370
+ readonly capabilities: {
371
+ readonly reasoning: true;
372
+ readonly toolCall: true;
373
+ readonly attachment: false;
374
+ readonly structuredOutput: false;
375
+ };
376
+ }, {
377
+ readonly id: "accounts/fireworks/models/deepseek-v3p1";
378
+ readonly name: "DeepSeek V3.1";
379
+ readonly provider: "fireworks-ai";
380
+ readonly family: "deepseek";
381
+ readonly pricing: {
382
+ readonly input: 5.6e-7;
383
+ readonly output: 0.00000168;
384
+ };
385
+ readonly contextWindow: 163840;
386
+ readonly maxOutput: 163840;
387
+ readonly modalities: {
388
+ readonly input: readonly ["text"];
389
+ readonly output: readonly ["text"];
390
+ };
391
+ readonly capabilities: {
392
+ readonly reasoning: true;
393
+ readonly toolCall: true;
394
+ readonly attachment: false;
395
+ readonly structuredOutput: false;
396
+ };
397
+ }, {
398
+ readonly id: "accounts/fireworks/models/minimax-m2p1";
399
+ readonly name: "MiniMax-M2.1";
400
+ readonly provider: "fireworks-ai";
401
+ readonly family: "minimax";
402
+ readonly pricing: {
403
+ readonly input: 3e-7;
404
+ readonly output: 0.0000012;
405
+ readonly cacheRead: 3e-8;
406
+ };
407
+ readonly contextWindow: 200000;
408
+ readonly maxOutput: 200000;
409
+ readonly modalities: {
410
+ readonly input: readonly ["text"];
411
+ readonly output: readonly ["text"];
412
+ };
413
+ readonly capabilities: {
414
+ readonly reasoning: true;
415
+ readonly toolCall: true;
416
+ readonly attachment: false;
417
+ readonly structuredOutput: false;
418
+ };
419
+ }, {
420
+ readonly id: "accounts/fireworks/models/glm-4p5-air";
421
+ readonly name: "GLM 4.5 Air";
422
+ readonly provider: "fireworks-ai";
423
+ readonly family: "glm-air";
424
+ readonly pricing: {
425
+ readonly input: 2.2e-7;
426
+ readonly output: 8.8e-7;
427
+ };
428
+ readonly contextWindow: 131072;
429
+ readonly maxOutput: 131072;
430
+ readonly modalities: {
431
+ readonly input: readonly ["text"];
432
+ readonly output: readonly ["text"];
433
+ };
434
+ readonly capabilities: {
435
+ readonly reasoning: true;
436
+ readonly toolCall: true;
437
+ readonly attachment: false;
438
+ readonly structuredOutput: false;
439
+ };
440
+ }, {
441
+ readonly id: "accounts/fireworks/models/deepseek-v3p2";
442
+ readonly name: "DeepSeek V3.2";
443
+ readonly provider: "fireworks-ai";
444
+ readonly family: "deepseek";
445
+ readonly pricing: {
446
+ readonly input: 5.6e-7;
447
+ readonly output: 0.00000168;
448
+ readonly cacheRead: 2.8e-7;
449
+ };
450
+ readonly contextWindow: 160000;
451
+ readonly maxOutput: 160000;
452
+ readonly modalities: {
453
+ readonly input: readonly ["text"];
454
+ readonly output: readonly ["text"];
455
+ };
456
+ readonly capabilities: {
457
+ readonly reasoning: true;
458
+ readonly toolCall: true;
459
+ readonly attachment: false;
460
+ readonly structuredOutput: false;
461
+ };
462
+ }, {
463
+ readonly id: "accounts/fireworks/models/minimax-m2p5";
464
+ readonly name: "MiniMax-M2.5";
465
+ readonly provider: "fireworks-ai";
466
+ readonly family: "minimax";
467
+ readonly pricing: {
468
+ readonly input: 3e-7;
469
+ readonly output: 0.0000012;
470
+ readonly cacheRead: 3e-8;
471
+ };
472
+ readonly contextWindow: 196608;
473
+ readonly maxOutput: 196608;
474
+ readonly modalities: {
475
+ readonly input: readonly ["text"];
476
+ readonly output: readonly ["text"];
477
+ };
478
+ readonly capabilities: {
479
+ readonly reasoning: true;
480
+ readonly toolCall: true;
481
+ readonly attachment: false;
482
+ readonly structuredOutput: false;
483
+ };
484
+ }, {
485
+ readonly id: "accounts/fireworks/models/gpt-oss-120b";
486
+ readonly name: "GPT OSS 120B";
487
+ readonly provider: "fireworks-ai";
488
+ readonly family: "gpt-oss";
489
+ readonly pricing: {
490
+ readonly input: 1.5e-7;
491
+ readonly output: 6e-7;
492
+ };
493
+ readonly contextWindow: 131072;
494
+ readonly maxOutput: 32768;
495
+ readonly modalities: {
496
+ readonly input: readonly ["text"];
497
+ readonly output: readonly ["text"];
498
+ };
499
+ readonly capabilities: {
500
+ readonly reasoning: true;
501
+ readonly toolCall: true;
502
+ readonly attachment: false;
503
+ readonly structuredOutput: false;
504
+ };
505
+ }, {
506
+ readonly id: "accounts/fireworks/models/kimi-k2p5";
507
+ readonly name: "Kimi K2.5";
508
+ readonly provider: "fireworks-ai";
509
+ readonly family: "kimi-thinking";
510
+ readonly pricing: {
511
+ readonly input: 6e-7;
512
+ readonly output: 0.000003;
513
+ readonly cacheRead: 1e-7;
514
+ };
515
+ readonly contextWindow: 256000;
516
+ readonly maxOutput: 256000;
517
+ readonly modalities: {
518
+ readonly input: readonly ["text", "image", "video"];
519
+ readonly output: readonly ["text"];
520
+ };
521
+ readonly capabilities: {
522
+ readonly reasoning: true;
523
+ readonly toolCall: true;
524
+ readonly attachment: false;
525
+ readonly structuredOutput: false;
526
+ };
527
+ }, {
528
+ readonly id: "accounts/fireworks/models/kimi-k2-thinking";
529
+ readonly name: "Kimi K2 Thinking";
530
+ readonly provider: "fireworks-ai";
531
+ readonly family: "kimi-thinking";
532
+ readonly pricing: {
533
+ readonly input: 6e-7;
534
+ readonly output: 0.0000025;
535
+ readonly cacheRead: 3e-7;
536
+ };
537
+ readonly contextWindow: 256000;
538
+ readonly maxOutput: 256000;
539
+ readonly modalities: {
540
+ readonly input: readonly ["text"];
541
+ readonly output: readonly ["text"];
542
+ };
543
+ readonly capabilities: {
544
+ readonly reasoning: true;
545
+ readonly toolCall: true;
546
+ readonly attachment: false;
547
+ readonly structuredOutput: false;
548
+ };
549
+ }, {
550
+ readonly id: "accounts/fireworks/models/glm-4p5";
551
+ readonly name: "GLM 4.5";
552
+ readonly provider: "fireworks-ai";
553
+ readonly family: "glm";
554
+ readonly pricing: {
555
+ readonly input: 5.5e-7;
556
+ readonly output: 0.00000219;
557
+ };
558
+ readonly contextWindow: 131072;
559
+ readonly maxOutput: 131072;
560
+ readonly modalities: {
561
+ readonly input: readonly ["text"];
562
+ readonly output: readonly ["text"];
563
+ };
564
+ readonly capabilities: {
565
+ readonly reasoning: true;
566
+ readonly toolCall: true;
567
+ readonly attachment: false;
568
+ readonly structuredOutput: false;
569
+ };
570
+ }, {
571
+ readonly id: "accounts/fireworks/models/gpt-oss-20b";
572
+ readonly name: "GPT OSS 20B";
573
+ readonly provider: "fireworks-ai";
574
+ readonly family: "gpt-oss";
575
+ readonly pricing: {
576
+ readonly input: 5e-8;
577
+ readonly output: 2e-7;
578
+ };
579
+ readonly contextWindow: 131072;
580
+ readonly maxOutput: 32768;
581
+ readonly modalities: {
582
+ readonly input: readonly ["text"];
583
+ readonly output: readonly ["text"];
584
+ };
585
+ readonly capabilities: {
586
+ readonly reasoning: true;
587
+ readonly toolCall: true;
588
+ readonly attachment: false;
589
+ readonly structuredOutput: false;
590
+ };
591
+ }];
592
+ /**
593
+ * Look up a Fireworks AI model by ID.
594
+ *
595
+ * @param id - The provider-native model identifier.
596
+ * @returns The matching model definition, or `null`.
597
+ *
598
+ * @example
599
+ * ```typescript
600
+ * import { fireworksModel } from '@funkai/models/fireworks-ai'
601
+ *
602
+ * const m = fireworksModel('accounts/fireworks/models/kimi-k2-instruct')
603
+ * if (m) {
604
+ * console.log(m.pricing.input)
605
+ * }
606
+ * ```
607
+ */
608
+ declare function fireworksModel(id: LiteralUnion<FireworksModelId, string>): ModelDefinition | null;
609
+ //#endregion
610
+ export { FireworksModelId, fireworksModel, fireworksModels };
611
+ //# sourceMappingURL=fireworks-ai.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fireworks-ai.d.mts","names":[],"sources":["../../src/catalog/providers/fireworks-ai.ts","../../src/providers/fireworks-ai.ts"],"mappings":";;;;cAea,mBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;;;;;KCaY,gBAAA,WAA2B,mBAAA;;;;;;;;;;;;;cAc1B,eAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBG,cAAA,CAAe,EAAA,EAAI,YAAA,CAAa,gBAAA,YAA4B,eAAA"}
@@ -0,0 +1,39 @@
1
+ import { t as FIREWORKS_AI_MODELS } from "../fireworks-ai-DJYvdAi_.mjs";
2
+ //#region src/providers/fireworks-ai.ts
3
+ /**
4
+ * All Fireworks AI models in the catalog.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { fireworksModels } from '@funkai/models/fireworks-ai'
9
+ *
10
+ * for (const m of fireworksModels) {
11
+ * console.log(m.id, m.pricing.input)
12
+ * }
13
+ * ```
14
+ */
15
+ const fireworksModels = FIREWORKS_AI_MODELS;
16
+ const MODEL_INDEX = new Map(FIREWORKS_AI_MODELS.map((m) => [m.id, m]));
17
+ /**
18
+ * Look up a Fireworks AI model by ID.
19
+ *
20
+ * @param id - The provider-native model identifier.
21
+ * @returns The matching model definition, or `null`.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * import { fireworksModel } from '@funkai/models/fireworks-ai'
26
+ *
27
+ * const m = fireworksModel('accounts/fireworks/models/kimi-k2-instruct')
28
+ * if (m) {
29
+ * console.log(m.pricing.input)
30
+ * }
31
+ * ```
32
+ */
33
+ function fireworksModel(id) {
34
+ return MODEL_INDEX.get(id) ?? null;
35
+ }
36
+ //#endregion
37
+ export { fireworksModel, fireworksModels };
38
+
39
+ //# sourceMappingURL=fireworks-ai.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fireworks-ai.mjs","names":[],"sources":["../../src/providers/fireworks-ai.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { LiteralUnion } from \"type-fest\";\n\nimport { FIREWORKS_AI_MODELS } from \"../catalog/providers/fireworks-ai.js\";\nimport type { ModelDefinition } from \"../catalog/types.js\";\n\n/**\n * Known model identifiers for Fireworks AI.\n *\n * @example\n * ```typescript\n * import type { FireworksModelId } from '@funkai/models/fireworks-ai'\n *\n * const id: FireworksModelId = 'accounts/fireworks/models/kimi-k2-instruct'\n * ```\n */\nexport type FireworksModelId = (typeof FIREWORKS_AI_MODELS)[number][\"id\"];\n\n/**\n * All Fireworks AI models in the catalog.\n *\n * @example\n * ```typescript\n * import { fireworksModels } from '@funkai/models/fireworks-ai'\n *\n * for (const m of fireworksModels) {\n * console.log(m.id, m.pricing.input)\n * }\n * ```\n */\nexport const fireworksModels = FIREWORKS_AI_MODELS;\n\nconst MODEL_INDEX = new Map<string, ModelDefinition>(FIREWORKS_AI_MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up a Fireworks AI model by ID.\n *\n * @param id - The provider-native model identifier.\n * @returns The matching model definition, or `null`.\n *\n * @example\n * ```typescript\n * import { fireworksModel } from '@funkai/models/fireworks-ai'\n *\n * const m = fireworksModel('accounts/fireworks/models/kimi-k2-instruct')\n * if (m) {\n * console.log(m.pricing.input)\n * }\n * ```\n */\nexport function fireworksModel(id: LiteralUnion<FireworksModelId, string>): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;AA0CA,MAAa,kBAAkB;AAE/B,MAAM,cAAc,IAAI,IAA6B,oBAAoB,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;AAkB/F,SAAgB,eAAe,IAAoE;AACjG,QAAO,YAAY,IAAI,GAAG,IAAI"}