@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,901 @@
1
+ import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
2
+ import { LiteralUnion } from "type-fest";
3
+
4
+ //#region src/catalog/providers/huggingface.d.ts
5
+ declare const HUGGINGFACE_MODELS: readonly [{
6
+ readonly id: "zai-org/GLM-4.7-Flash";
7
+ readonly name: "GLM-4.7-Flash";
8
+ readonly provider: "huggingface";
9
+ readonly family: "glm";
10
+ readonly pricing: {
11
+ readonly input: 0;
12
+ readonly output: 0;
13
+ };
14
+ readonly contextWindow: 200000;
15
+ readonly maxOutput: 128000;
16
+ readonly modalities: {
17
+ readonly input: readonly ["text"];
18
+ readonly output: readonly ["text"];
19
+ };
20
+ readonly capabilities: {
21
+ readonly reasoning: true;
22
+ readonly toolCall: true;
23
+ readonly attachment: false;
24
+ readonly structuredOutput: false;
25
+ };
26
+ }, {
27
+ readonly id: "zai-org/GLM-4.7";
28
+ readonly name: "GLM-4.7";
29
+ readonly provider: "huggingface";
30
+ readonly family: "glm";
31
+ readonly pricing: {
32
+ readonly input: 6e-7;
33
+ readonly output: 0.0000022;
34
+ readonly cacheRead: 1.1e-7;
35
+ };
36
+ readonly contextWindow: 204800;
37
+ readonly maxOutput: 131072;
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: "zai-org/GLM-5";
50
+ readonly name: "GLM-5";
51
+ readonly provider: "huggingface";
52
+ readonly family: "glm";
53
+ readonly pricing: {
54
+ readonly input: 0.000001;
55
+ readonly output: 0.0000032;
56
+ readonly cacheRead: 2e-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: "XiaomiMiMo/MiMo-V2-Flash";
72
+ readonly name: "MiMo-V2-Flash";
73
+ readonly provider: "huggingface";
74
+ readonly family: "mimo";
75
+ readonly pricing: {
76
+ readonly input: 1e-7;
77
+ readonly output: 3e-7;
78
+ };
79
+ readonly contextWindow: 262144;
80
+ readonly maxOutput: 4096;
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: "MiniMaxAI/MiniMax-M2.5";
93
+ readonly name: "MiniMax-M2.5";
94
+ readonly provider: "huggingface";
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: 204800;
102
+ readonly maxOutput: 131072;
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: "MiniMaxAI/MiniMax-M2.1";
115
+ readonly name: "MiniMax-M2.1";
116
+ readonly provider: "huggingface";
117
+ readonly family: "minimax";
118
+ readonly pricing: {
119
+ readonly input: 3e-7;
120
+ readonly output: 0.0000012;
121
+ };
122
+ readonly contextWindow: 204800;
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: "deepseek-ai/DeepSeek-R1-0528";
136
+ readonly name: "DeepSeek-R1-0528";
137
+ readonly provider: "huggingface";
138
+ readonly family: "deepseek-thinking";
139
+ readonly pricing: {
140
+ readonly input: 0.000003;
141
+ readonly output: 0.000005;
142
+ };
143
+ readonly contextWindow: 163840;
144
+ readonly maxOutput: 163840;
145
+ readonly modalities: {
146
+ readonly input: readonly ["text"];
147
+ readonly output: readonly ["text"];
148
+ };
149
+ readonly capabilities: {
150
+ readonly reasoning: true;
151
+ readonly toolCall: true;
152
+ readonly attachment: false;
153
+ readonly structuredOutput: false;
154
+ };
155
+ }, {
156
+ readonly id: "deepseek-ai/DeepSeek-V3.2";
157
+ readonly name: "DeepSeek-V3.2";
158
+ readonly provider: "huggingface";
159
+ readonly family: "deepseek";
160
+ readonly pricing: {
161
+ readonly input: 2.8e-7;
162
+ readonly output: 4e-7;
163
+ };
164
+ readonly contextWindow: 163840;
165
+ readonly maxOutput: 65536;
166
+ readonly modalities: {
167
+ readonly input: readonly ["text"];
168
+ readonly output: readonly ["text"];
169
+ };
170
+ readonly capabilities: {
171
+ readonly reasoning: true;
172
+ readonly toolCall: true;
173
+ readonly attachment: false;
174
+ readonly structuredOutput: false;
175
+ };
176
+ }, {
177
+ readonly id: "moonshotai/Kimi-K2-Instruct";
178
+ readonly name: "Kimi-K2-Instruct";
179
+ readonly provider: "huggingface";
180
+ readonly family: "kimi";
181
+ readonly pricing: {
182
+ readonly input: 0.000001;
183
+ readonly output: 0.000003;
184
+ };
185
+ readonly contextWindow: 131072;
186
+ readonly maxOutput: 16384;
187
+ readonly modalities: {
188
+ readonly input: readonly ["text"];
189
+ readonly output: readonly ["text"];
190
+ };
191
+ readonly capabilities: {
192
+ readonly reasoning: false;
193
+ readonly toolCall: true;
194
+ readonly attachment: false;
195
+ readonly structuredOutput: false;
196
+ };
197
+ }, {
198
+ readonly id: "moonshotai/Kimi-K2-Instruct-0905";
199
+ readonly name: "Kimi-K2-Instruct-0905";
200
+ readonly provider: "huggingface";
201
+ readonly family: "kimi";
202
+ readonly pricing: {
203
+ readonly input: 0.000001;
204
+ readonly output: 0.000003;
205
+ };
206
+ readonly contextWindow: 262144;
207
+ readonly maxOutput: 16384;
208
+ readonly modalities: {
209
+ readonly input: readonly ["text"];
210
+ readonly output: readonly ["text"];
211
+ };
212
+ readonly capabilities: {
213
+ readonly reasoning: false;
214
+ readonly toolCall: true;
215
+ readonly attachment: false;
216
+ readonly structuredOutput: false;
217
+ };
218
+ }, {
219
+ readonly id: "moonshotai/Kimi-K2.5";
220
+ readonly name: "Kimi-K2.5";
221
+ readonly provider: "huggingface";
222
+ readonly family: "kimi";
223
+ readonly pricing: {
224
+ readonly input: 6e-7;
225
+ readonly output: 0.000003;
226
+ readonly cacheRead: 1e-7;
227
+ };
228
+ readonly contextWindow: 262144;
229
+ readonly maxOutput: 262144;
230
+ readonly modalities: {
231
+ readonly input: readonly ["text", "image", "video"];
232
+ readonly output: readonly ["text"];
233
+ };
234
+ readonly capabilities: {
235
+ readonly reasoning: true;
236
+ readonly toolCall: true;
237
+ readonly attachment: true;
238
+ readonly structuredOutput: false;
239
+ };
240
+ }, {
241
+ readonly id: "moonshotai/Kimi-K2-Thinking";
242
+ readonly name: "Kimi-K2-Thinking";
243
+ readonly provider: "huggingface";
244
+ readonly family: "kimi-thinking";
245
+ readonly pricing: {
246
+ readonly input: 6e-7;
247
+ readonly output: 0.0000025;
248
+ readonly cacheRead: 1.5e-7;
249
+ };
250
+ readonly contextWindow: 262144;
251
+ readonly maxOutput: 262144;
252
+ readonly modalities: {
253
+ readonly input: readonly ["text"];
254
+ readonly output: readonly ["text"];
255
+ };
256
+ readonly capabilities: {
257
+ readonly reasoning: true;
258
+ readonly toolCall: true;
259
+ readonly attachment: false;
260
+ readonly structuredOutput: false;
261
+ };
262
+ }, {
263
+ readonly id: "Qwen/Qwen3-Next-80B-A3B-Instruct";
264
+ readonly name: "Qwen3-Next-80B-A3B-Instruct";
265
+ readonly provider: "huggingface";
266
+ readonly family: "qwen";
267
+ readonly pricing: {
268
+ readonly input: 2.5e-7;
269
+ readonly output: 0.000001;
270
+ };
271
+ readonly contextWindow: 262144;
272
+ readonly maxOutput: 66536;
273
+ readonly modalities: {
274
+ readonly input: readonly ["text"];
275
+ readonly output: readonly ["text"];
276
+ };
277
+ readonly capabilities: {
278
+ readonly reasoning: false;
279
+ readonly toolCall: true;
280
+ readonly attachment: false;
281
+ readonly structuredOutput: false;
282
+ };
283
+ }, {
284
+ readonly id: "Qwen/Qwen3.5-397B-A17B";
285
+ readonly name: "Qwen3.5-397B-A17B";
286
+ readonly provider: "huggingface";
287
+ readonly family: "qwen";
288
+ readonly pricing: {
289
+ readonly input: 6e-7;
290
+ readonly output: 0.0000036;
291
+ };
292
+ readonly contextWindow: 262144;
293
+ readonly maxOutput: 32768;
294
+ readonly modalities: {
295
+ readonly input: readonly ["text", "image"];
296
+ readonly output: readonly ["text"];
297
+ };
298
+ readonly capabilities: {
299
+ readonly reasoning: true;
300
+ readonly toolCall: true;
301
+ readonly attachment: true;
302
+ readonly structuredOutput: false;
303
+ };
304
+ }, {
305
+ readonly id: "Qwen/Qwen3-235B-A22B-Thinking-2507";
306
+ readonly name: "Qwen3-235B-A22B-Thinking-2507";
307
+ readonly provider: "huggingface";
308
+ readonly family: "qwen";
309
+ readonly pricing: {
310
+ readonly input: 3e-7;
311
+ readonly output: 0.000003;
312
+ };
313
+ readonly contextWindow: 262144;
314
+ readonly maxOutput: 131072;
315
+ readonly modalities: {
316
+ readonly input: readonly ["text"];
317
+ readonly output: readonly ["text"];
318
+ };
319
+ readonly capabilities: {
320
+ readonly reasoning: true;
321
+ readonly toolCall: true;
322
+ readonly attachment: false;
323
+ readonly structuredOutput: false;
324
+ };
325
+ }, {
326
+ readonly id: "Qwen/Qwen3-Coder-Next";
327
+ readonly name: "Qwen3-Coder-Next";
328
+ readonly provider: "huggingface";
329
+ readonly family: "qwen";
330
+ readonly pricing: {
331
+ readonly input: 2e-7;
332
+ readonly output: 0.0000015;
333
+ };
334
+ readonly contextWindow: 262144;
335
+ readonly maxOutput: 65536;
336
+ readonly modalities: {
337
+ readonly input: readonly ["text"];
338
+ readonly output: readonly ["text"];
339
+ };
340
+ readonly capabilities: {
341
+ readonly reasoning: false;
342
+ readonly toolCall: true;
343
+ readonly attachment: false;
344
+ readonly structuredOutput: false;
345
+ };
346
+ }, {
347
+ readonly id: "Qwen/Qwen3-Coder-480B-A35B-Instruct";
348
+ readonly name: "Qwen3-Coder-480B-A35B-Instruct";
349
+ readonly provider: "huggingface";
350
+ readonly family: "qwen";
351
+ readonly pricing: {
352
+ readonly input: 0.000002;
353
+ readonly output: 0.000002;
354
+ };
355
+ readonly contextWindow: 262144;
356
+ readonly maxOutput: 66536;
357
+ readonly modalities: {
358
+ readonly input: readonly ["text"];
359
+ readonly output: readonly ["text"];
360
+ };
361
+ readonly capabilities: {
362
+ readonly reasoning: false;
363
+ readonly toolCall: true;
364
+ readonly attachment: false;
365
+ readonly structuredOutput: false;
366
+ };
367
+ }, {
368
+ readonly id: "Qwen/Qwen3-Embedding-4B";
369
+ readonly name: "Qwen 3 Embedding 4B";
370
+ readonly provider: "huggingface";
371
+ readonly family: "qwen";
372
+ readonly pricing: {
373
+ readonly input: 1e-8;
374
+ readonly output: 0;
375
+ };
376
+ readonly contextWindow: 32000;
377
+ readonly maxOutput: 2048;
378
+ readonly modalities: {
379
+ readonly input: readonly ["text"];
380
+ readonly output: readonly ["text"];
381
+ };
382
+ readonly capabilities: {
383
+ readonly reasoning: false;
384
+ readonly toolCall: false;
385
+ readonly attachment: false;
386
+ readonly structuredOutput: false;
387
+ };
388
+ }, {
389
+ readonly id: "Qwen/Qwen3-Embedding-8B";
390
+ readonly name: "Qwen 3 Embedding 8B";
391
+ readonly provider: "huggingface";
392
+ readonly family: "qwen";
393
+ readonly pricing: {
394
+ readonly input: 1e-8;
395
+ readonly output: 0;
396
+ };
397
+ readonly contextWindow: 32000;
398
+ readonly maxOutput: 4096;
399
+ readonly modalities: {
400
+ readonly input: readonly ["text"];
401
+ readonly output: readonly ["text"];
402
+ };
403
+ readonly capabilities: {
404
+ readonly reasoning: false;
405
+ readonly toolCall: false;
406
+ readonly attachment: false;
407
+ readonly structuredOutput: false;
408
+ };
409
+ }, {
410
+ readonly id: "Qwen/Qwen3-Next-80B-A3B-Thinking";
411
+ readonly name: "Qwen3-Next-80B-A3B-Thinking";
412
+ readonly provider: "huggingface";
413
+ readonly family: "qwen";
414
+ readonly pricing: {
415
+ readonly input: 3e-7;
416
+ readonly output: 0.000002;
417
+ };
418
+ readonly contextWindow: 262144;
419
+ readonly maxOutput: 131072;
420
+ readonly modalities: {
421
+ readonly input: readonly ["text"];
422
+ readonly output: readonly ["text"];
423
+ };
424
+ readonly capabilities: {
425
+ readonly reasoning: false;
426
+ readonly toolCall: true;
427
+ readonly attachment: false;
428
+ readonly structuredOutput: false;
429
+ };
430
+ }];
431
+ //#endregion
432
+ //#region src/providers/huggingface.d.ts
433
+ /**
434
+ * Known model identifiers for Hugging Face.
435
+ *
436
+ * @example
437
+ * ```typescript
438
+ * import type { HuggingFaceModelId } from '@funkai/models/huggingface'
439
+ *
440
+ * const id: HuggingFaceModelId = 'zai-org/GLM-4.7-Flash'
441
+ * ```
442
+ */
443
+ type HuggingFaceModelId = (typeof HUGGINGFACE_MODELS)[number]["id"];
444
+ /**
445
+ * All Hugging Face models in the catalog.
446
+ *
447
+ * @example
448
+ * ```typescript
449
+ * import { huggingFaceModels } from '@funkai/models/huggingface'
450
+ *
451
+ * for (const m of huggingFaceModels) {
452
+ * console.log(m.id, m.pricing.input)
453
+ * }
454
+ * ```
455
+ */
456
+ declare const huggingFaceModels: readonly [{
457
+ readonly id: "zai-org/GLM-4.7-Flash";
458
+ readonly name: "GLM-4.7-Flash";
459
+ readonly provider: "huggingface";
460
+ readonly family: "glm";
461
+ readonly pricing: {
462
+ readonly input: 0;
463
+ readonly output: 0;
464
+ };
465
+ readonly contextWindow: 200000;
466
+ readonly maxOutput: 128000;
467
+ readonly modalities: {
468
+ readonly input: readonly ["text"];
469
+ readonly output: readonly ["text"];
470
+ };
471
+ readonly capabilities: {
472
+ readonly reasoning: true;
473
+ readonly toolCall: true;
474
+ readonly attachment: false;
475
+ readonly structuredOutput: false;
476
+ };
477
+ }, {
478
+ readonly id: "zai-org/GLM-4.7";
479
+ readonly name: "GLM-4.7";
480
+ readonly provider: "huggingface";
481
+ readonly family: "glm";
482
+ readonly pricing: {
483
+ readonly input: 6e-7;
484
+ readonly output: 0.0000022;
485
+ readonly cacheRead: 1.1e-7;
486
+ };
487
+ readonly contextWindow: 204800;
488
+ readonly maxOutput: 131072;
489
+ readonly modalities: {
490
+ readonly input: readonly ["text"];
491
+ readonly output: readonly ["text"];
492
+ };
493
+ readonly capabilities: {
494
+ readonly reasoning: true;
495
+ readonly toolCall: true;
496
+ readonly attachment: false;
497
+ readonly structuredOutput: false;
498
+ };
499
+ }, {
500
+ readonly id: "zai-org/GLM-5";
501
+ readonly name: "GLM-5";
502
+ readonly provider: "huggingface";
503
+ readonly family: "glm";
504
+ readonly pricing: {
505
+ readonly input: 0.000001;
506
+ readonly output: 0.0000032;
507
+ readonly cacheRead: 2e-7;
508
+ };
509
+ readonly contextWindow: 202752;
510
+ readonly maxOutput: 131072;
511
+ readonly modalities: {
512
+ readonly input: readonly ["text"];
513
+ readonly output: readonly ["text"];
514
+ };
515
+ readonly capabilities: {
516
+ readonly reasoning: true;
517
+ readonly toolCall: true;
518
+ readonly attachment: false;
519
+ readonly structuredOutput: false;
520
+ };
521
+ }, {
522
+ readonly id: "XiaomiMiMo/MiMo-V2-Flash";
523
+ readonly name: "MiMo-V2-Flash";
524
+ readonly provider: "huggingface";
525
+ readonly family: "mimo";
526
+ readonly pricing: {
527
+ readonly input: 1e-7;
528
+ readonly output: 3e-7;
529
+ };
530
+ readonly contextWindow: 262144;
531
+ readonly maxOutput: 4096;
532
+ readonly modalities: {
533
+ readonly input: readonly ["text"];
534
+ readonly output: readonly ["text"];
535
+ };
536
+ readonly capabilities: {
537
+ readonly reasoning: true;
538
+ readonly toolCall: true;
539
+ readonly attachment: false;
540
+ readonly structuredOutput: false;
541
+ };
542
+ }, {
543
+ readonly id: "MiniMaxAI/MiniMax-M2.5";
544
+ readonly name: "MiniMax-M2.5";
545
+ readonly provider: "huggingface";
546
+ readonly family: "minimax";
547
+ readonly pricing: {
548
+ readonly input: 3e-7;
549
+ readonly output: 0.0000012;
550
+ readonly cacheRead: 3e-8;
551
+ };
552
+ readonly contextWindow: 204800;
553
+ readonly maxOutput: 131072;
554
+ readonly modalities: {
555
+ readonly input: readonly ["text"];
556
+ readonly output: readonly ["text"];
557
+ };
558
+ readonly capabilities: {
559
+ readonly reasoning: true;
560
+ readonly toolCall: true;
561
+ readonly attachment: false;
562
+ readonly structuredOutput: false;
563
+ };
564
+ }, {
565
+ readonly id: "MiniMaxAI/MiniMax-M2.1";
566
+ readonly name: "MiniMax-M2.1";
567
+ readonly provider: "huggingface";
568
+ readonly family: "minimax";
569
+ readonly pricing: {
570
+ readonly input: 3e-7;
571
+ readonly output: 0.0000012;
572
+ };
573
+ readonly contextWindow: 204800;
574
+ readonly maxOutput: 131072;
575
+ readonly modalities: {
576
+ readonly input: readonly ["text"];
577
+ readonly output: readonly ["text"];
578
+ };
579
+ readonly capabilities: {
580
+ readonly reasoning: true;
581
+ readonly toolCall: true;
582
+ readonly attachment: false;
583
+ readonly structuredOutput: false;
584
+ };
585
+ }, {
586
+ readonly id: "deepseek-ai/DeepSeek-R1-0528";
587
+ readonly name: "DeepSeek-R1-0528";
588
+ readonly provider: "huggingface";
589
+ readonly family: "deepseek-thinking";
590
+ readonly pricing: {
591
+ readonly input: 0.000003;
592
+ readonly output: 0.000005;
593
+ };
594
+ readonly contextWindow: 163840;
595
+ readonly maxOutput: 163840;
596
+ readonly modalities: {
597
+ readonly input: readonly ["text"];
598
+ readonly output: readonly ["text"];
599
+ };
600
+ readonly capabilities: {
601
+ readonly reasoning: true;
602
+ readonly toolCall: true;
603
+ readonly attachment: false;
604
+ readonly structuredOutput: false;
605
+ };
606
+ }, {
607
+ readonly id: "deepseek-ai/DeepSeek-V3.2";
608
+ readonly name: "DeepSeek-V3.2";
609
+ readonly provider: "huggingface";
610
+ readonly family: "deepseek";
611
+ readonly pricing: {
612
+ readonly input: 2.8e-7;
613
+ readonly output: 4e-7;
614
+ };
615
+ readonly contextWindow: 163840;
616
+ readonly maxOutput: 65536;
617
+ readonly modalities: {
618
+ readonly input: readonly ["text"];
619
+ readonly output: readonly ["text"];
620
+ };
621
+ readonly capabilities: {
622
+ readonly reasoning: true;
623
+ readonly toolCall: true;
624
+ readonly attachment: false;
625
+ readonly structuredOutput: false;
626
+ };
627
+ }, {
628
+ readonly id: "moonshotai/Kimi-K2-Instruct";
629
+ readonly name: "Kimi-K2-Instruct";
630
+ readonly provider: "huggingface";
631
+ readonly family: "kimi";
632
+ readonly pricing: {
633
+ readonly input: 0.000001;
634
+ readonly output: 0.000003;
635
+ };
636
+ readonly contextWindow: 131072;
637
+ readonly maxOutput: 16384;
638
+ readonly modalities: {
639
+ readonly input: readonly ["text"];
640
+ readonly output: readonly ["text"];
641
+ };
642
+ readonly capabilities: {
643
+ readonly reasoning: false;
644
+ readonly toolCall: true;
645
+ readonly attachment: false;
646
+ readonly structuredOutput: false;
647
+ };
648
+ }, {
649
+ readonly id: "moonshotai/Kimi-K2-Instruct-0905";
650
+ readonly name: "Kimi-K2-Instruct-0905";
651
+ readonly provider: "huggingface";
652
+ readonly family: "kimi";
653
+ readonly pricing: {
654
+ readonly input: 0.000001;
655
+ readonly output: 0.000003;
656
+ };
657
+ readonly contextWindow: 262144;
658
+ readonly maxOutput: 16384;
659
+ readonly modalities: {
660
+ readonly input: readonly ["text"];
661
+ readonly output: readonly ["text"];
662
+ };
663
+ readonly capabilities: {
664
+ readonly reasoning: false;
665
+ readonly toolCall: true;
666
+ readonly attachment: false;
667
+ readonly structuredOutput: false;
668
+ };
669
+ }, {
670
+ readonly id: "moonshotai/Kimi-K2.5";
671
+ readonly name: "Kimi-K2.5";
672
+ readonly provider: "huggingface";
673
+ readonly family: "kimi";
674
+ readonly pricing: {
675
+ readonly input: 6e-7;
676
+ readonly output: 0.000003;
677
+ readonly cacheRead: 1e-7;
678
+ };
679
+ readonly contextWindow: 262144;
680
+ readonly maxOutput: 262144;
681
+ readonly modalities: {
682
+ readonly input: readonly ["text", "image", "video"];
683
+ readonly output: readonly ["text"];
684
+ };
685
+ readonly capabilities: {
686
+ readonly reasoning: true;
687
+ readonly toolCall: true;
688
+ readonly attachment: true;
689
+ readonly structuredOutput: false;
690
+ };
691
+ }, {
692
+ readonly id: "moonshotai/Kimi-K2-Thinking";
693
+ readonly name: "Kimi-K2-Thinking";
694
+ readonly provider: "huggingface";
695
+ readonly family: "kimi-thinking";
696
+ readonly pricing: {
697
+ readonly input: 6e-7;
698
+ readonly output: 0.0000025;
699
+ readonly cacheRead: 1.5e-7;
700
+ };
701
+ readonly contextWindow: 262144;
702
+ readonly maxOutput: 262144;
703
+ readonly modalities: {
704
+ readonly input: readonly ["text"];
705
+ readonly output: readonly ["text"];
706
+ };
707
+ readonly capabilities: {
708
+ readonly reasoning: true;
709
+ readonly toolCall: true;
710
+ readonly attachment: false;
711
+ readonly structuredOutput: false;
712
+ };
713
+ }, {
714
+ readonly id: "Qwen/Qwen3-Next-80B-A3B-Instruct";
715
+ readonly name: "Qwen3-Next-80B-A3B-Instruct";
716
+ readonly provider: "huggingface";
717
+ readonly family: "qwen";
718
+ readonly pricing: {
719
+ readonly input: 2.5e-7;
720
+ readonly output: 0.000001;
721
+ };
722
+ readonly contextWindow: 262144;
723
+ readonly maxOutput: 66536;
724
+ readonly modalities: {
725
+ readonly input: readonly ["text"];
726
+ readonly output: readonly ["text"];
727
+ };
728
+ readonly capabilities: {
729
+ readonly reasoning: false;
730
+ readonly toolCall: true;
731
+ readonly attachment: false;
732
+ readonly structuredOutput: false;
733
+ };
734
+ }, {
735
+ readonly id: "Qwen/Qwen3.5-397B-A17B";
736
+ readonly name: "Qwen3.5-397B-A17B";
737
+ readonly provider: "huggingface";
738
+ readonly family: "qwen";
739
+ readonly pricing: {
740
+ readonly input: 6e-7;
741
+ readonly output: 0.0000036;
742
+ };
743
+ readonly contextWindow: 262144;
744
+ readonly maxOutput: 32768;
745
+ readonly modalities: {
746
+ readonly input: readonly ["text", "image"];
747
+ readonly output: readonly ["text"];
748
+ };
749
+ readonly capabilities: {
750
+ readonly reasoning: true;
751
+ readonly toolCall: true;
752
+ readonly attachment: true;
753
+ readonly structuredOutput: false;
754
+ };
755
+ }, {
756
+ readonly id: "Qwen/Qwen3-235B-A22B-Thinking-2507";
757
+ readonly name: "Qwen3-235B-A22B-Thinking-2507";
758
+ readonly provider: "huggingface";
759
+ readonly family: "qwen";
760
+ readonly pricing: {
761
+ readonly input: 3e-7;
762
+ readonly output: 0.000003;
763
+ };
764
+ readonly contextWindow: 262144;
765
+ readonly maxOutput: 131072;
766
+ readonly modalities: {
767
+ readonly input: readonly ["text"];
768
+ readonly output: readonly ["text"];
769
+ };
770
+ readonly capabilities: {
771
+ readonly reasoning: true;
772
+ readonly toolCall: true;
773
+ readonly attachment: false;
774
+ readonly structuredOutput: false;
775
+ };
776
+ }, {
777
+ readonly id: "Qwen/Qwen3-Coder-Next";
778
+ readonly name: "Qwen3-Coder-Next";
779
+ readonly provider: "huggingface";
780
+ readonly family: "qwen";
781
+ readonly pricing: {
782
+ readonly input: 2e-7;
783
+ readonly output: 0.0000015;
784
+ };
785
+ readonly contextWindow: 262144;
786
+ readonly maxOutput: 65536;
787
+ readonly modalities: {
788
+ readonly input: readonly ["text"];
789
+ readonly output: readonly ["text"];
790
+ };
791
+ readonly capabilities: {
792
+ readonly reasoning: false;
793
+ readonly toolCall: true;
794
+ readonly attachment: false;
795
+ readonly structuredOutput: false;
796
+ };
797
+ }, {
798
+ readonly id: "Qwen/Qwen3-Coder-480B-A35B-Instruct";
799
+ readonly name: "Qwen3-Coder-480B-A35B-Instruct";
800
+ readonly provider: "huggingface";
801
+ readonly family: "qwen";
802
+ readonly pricing: {
803
+ readonly input: 0.000002;
804
+ readonly output: 0.000002;
805
+ };
806
+ readonly contextWindow: 262144;
807
+ readonly maxOutput: 66536;
808
+ readonly modalities: {
809
+ readonly input: readonly ["text"];
810
+ readonly output: readonly ["text"];
811
+ };
812
+ readonly capabilities: {
813
+ readonly reasoning: false;
814
+ readonly toolCall: true;
815
+ readonly attachment: false;
816
+ readonly structuredOutput: false;
817
+ };
818
+ }, {
819
+ readonly id: "Qwen/Qwen3-Embedding-4B";
820
+ readonly name: "Qwen 3 Embedding 4B";
821
+ readonly provider: "huggingface";
822
+ readonly family: "qwen";
823
+ readonly pricing: {
824
+ readonly input: 1e-8;
825
+ readonly output: 0;
826
+ };
827
+ readonly contextWindow: 32000;
828
+ readonly maxOutput: 2048;
829
+ readonly modalities: {
830
+ readonly input: readonly ["text"];
831
+ readonly output: readonly ["text"];
832
+ };
833
+ readonly capabilities: {
834
+ readonly reasoning: false;
835
+ readonly toolCall: false;
836
+ readonly attachment: false;
837
+ readonly structuredOutput: false;
838
+ };
839
+ }, {
840
+ readonly id: "Qwen/Qwen3-Embedding-8B";
841
+ readonly name: "Qwen 3 Embedding 8B";
842
+ readonly provider: "huggingface";
843
+ readonly family: "qwen";
844
+ readonly pricing: {
845
+ readonly input: 1e-8;
846
+ readonly output: 0;
847
+ };
848
+ readonly contextWindow: 32000;
849
+ readonly maxOutput: 4096;
850
+ readonly modalities: {
851
+ readonly input: readonly ["text"];
852
+ readonly output: readonly ["text"];
853
+ };
854
+ readonly capabilities: {
855
+ readonly reasoning: false;
856
+ readonly toolCall: false;
857
+ readonly attachment: false;
858
+ readonly structuredOutput: false;
859
+ };
860
+ }, {
861
+ readonly id: "Qwen/Qwen3-Next-80B-A3B-Thinking";
862
+ readonly name: "Qwen3-Next-80B-A3B-Thinking";
863
+ readonly provider: "huggingface";
864
+ readonly family: "qwen";
865
+ readonly pricing: {
866
+ readonly input: 3e-7;
867
+ readonly output: 0.000002;
868
+ };
869
+ readonly contextWindow: 262144;
870
+ readonly maxOutput: 131072;
871
+ readonly modalities: {
872
+ readonly input: readonly ["text"];
873
+ readonly output: readonly ["text"];
874
+ };
875
+ readonly capabilities: {
876
+ readonly reasoning: false;
877
+ readonly toolCall: true;
878
+ readonly attachment: false;
879
+ readonly structuredOutput: false;
880
+ };
881
+ }];
882
+ /**
883
+ * Look up a Hugging Face model by ID.
884
+ *
885
+ * @param id - The provider-native model identifier.
886
+ * @returns The matching model definition, or `null`.
887
+ *
888
+ * @example
889
+ * ```typescript
890
+ * import { huggingFaceModel } from '@funkai/models/huggingface'
891
+ *
892
+ * const m = huggingFaceModel('zai-org/GLM-4.7-Flash')
893
+ * if (m) {
894
+ * console.log(m.pricing.input)
895
+ * }
896
+ * ```
897
+ */
898
+ declare function huggingFaceModel(id: LiteralUnion<HuggingFaceModelId, string>): ModelDefinition | null;
899
+ //#endregion
900
+ export { HuggingFaceModelId, huggingFaceModel, huggingFaceModels };
901
+ //# sourceMappingURL=huggingface.d.mts.map