@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,1245 @@
1
+ import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
2
+ import { LiteralUnion } from "type-fest";
3
+
4
+ //#region src/catalog/providers/deepinfra.d.ts
5
+ declare const DEEPINFRA_MODELS: readonly [{
6
+ readonly id: "zai-org/GLM-4.7-Flash";
7
+ readonly name: "GLM-4.7-Flash";
8
+ readonly provider: "deepinfra";
9
+ readonly family: "glm-flash";
10
+ readonly pricing: {
11
+ readonly input: 6e-8;
12
+ readonly output: 4e-7;
13
+ };
14
+ readonly contextWindow: 202752;
15
+ readonly maxOutput: 16384;
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.6";
28
+ readonly name: "GLM-4.6";
29
+ readonly provider: "deepinfra";
30
+ readonly family: "glm";
31
+ readonly pricing: {
32
+ readonly input: 4.3e-7;
33
+ readonly output: 0.00000174;
34
+ readonly cacheRead: 8e-8;
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-4.7";
50
+ readonly name: "GLM-4.7";
51
+ readonly provider: "deepinfra";
52
+ readonly family: "glm";
53
+ readonly pricing: {
54
+ readonly input: 4.3e-7;
55
+ readonly output: 0.00000175;
56
+ readonly cacheRead: 8e-8;
57
+ };
58
+ readonly contextWindow: 202752;
59
+ readonly maxOutput: 16384;
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: "zai-org/GLM-4.6V";
72
+ readonly name: "GLM-4.6V";
73
+ readonly provider: "deepinfra";
74
+ readonly family: "glm";
75
+ readonly pricing: {
76
+ readonly input: 3e-7;
77
+ readonly output: 9e-7;
78
+ };
79
+ readonly contextWindow: 204800;
80
+ readonly maxOutput: 131072;
81
+ readonly modalities: {
82
+ readonly input: readonly ["text", "image"];
83
+ readonly output: readonly ["text"];
84
+ };
85
+ readonly capabilities: {
86
+ readonly reasoning: true;
87
+ readonly toolCall: true;
88
+ readonly attachment: true;
89
+ readonly structuredOutput: false;
90
+ };
91
+ }, {
92
+ readonly id: "zai-org/GLM-4.5";
93
+ readonly name: "GLM-4.5";
94
+ readonly provider: "deepinfra";
95
+ readonly family: "glm";
96
+ readonly pricing: {
97
+ readonly input: 6e-7;
98
+ readonly output: 0.0000022;
99
+ };
100
+ readonly contextWindow: 131072;
101
+ readonly maxOutput: 98304;
102
+ readonly modalities: {
103
+ readonly input: readonly ["text"];
104
+ readonly output: readonly ["text"];
105
+ };
106
+ readonly capabilities: {
107
+ readonly reasoning: false;
108
+ readonly toolCall: true;
109
+ readonly attachment: false;
110
+ readonly structuredOutput: false;
111
+ };
112
+ }, {
113
+ readonly id: "zai-org/GLM-5";
114
+ readonly name: "GLM-5";
115
+ readonly provider: "deepinfra";
116
+ readonly family: "glm";
117
+ readonly pricing: {
118
+ readonly input: 8e-7;
119
+ readonly output: 0.00000256;
120
+ readonly cacheRead: 1.6e-7;
121
+ };
122
+ readonly contextWindow: 202752;
123
+ readonly maxOutput: 16384;
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: "MiniMaxAI/MiniMax-M2.5";
136
+ readonly name: "MiniMax M2.5";
137
+ readonly provider: "deepinfra";
138
+ readonly family: "minimax";
139
+ readonly pricing: {
140
+ readonly input: 2.7e-7;
141
+ readonly output: 9.5e-7;
142
+ readonly cacheRead: 3e-8;
143
+ readonly cacheWrite: 3.75e-7;
144
+ };
145
+ readonly contextWindow: 204800;
146
+ readonly maxOutput: 131072;
147
+ readonly modalities: {
148
+ readonly input: readonly ["text"];
149
+ readonly output: readonly ["text"];
150
+ };
151
+ readonly capabilities: {
152
+ readonly reasoning: true;
153
+ readonly toolCall: true;
154
+ readonly attachment: false;
155
+ readonly structuredOutput: false;
156
+ };
157
+ }, {
158
+ readonly id: "MiniMaxAI/MiniMax-M2";
159
+ readonly name: "MiniMax M2";
160
+ readonly provider: "deepinfra";
161
+ readonly family: "minimax";
162
+ readonly pricing: {
163
+ readonly input: 2.54e-7;
164
+ readonly output: 0.00000102;
165
+ };
166
+ readonly contextWindow: 262144;
167
+ readonly maxOutput: 32768;
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: "MiniMaxAI/MiniMax-M2.1";
180
+ readonly name: "MiniMax M2.1";
181
+ readonly provider: "deepinfra";
182
+ readonly family: "";
183
+ readonly pricing: {
184
+ readonly input: 2.8e-7;
185
+ readonly output: 0.0000012;
186
+ };
187
+ readonly contextWindow: 196608;
188
+ readonly maxOutput: 196608;
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: "deepseek-ai/DeepSeek-R1-0528";
201
+ readonly name: "DeepSeek-R1-0528";
202
+ readonly provider: "deepinfra";
203
+ readonly family: "";
204
+ readonly pricing: {
205
+ readonly input: 5e-7;
206
+ readonly output: 0.00000215;
207
+ readonly cacheRead: 3.5e-7;
208
+ };
209
+ readonly contextWindow: 163840;
210
+ readonly maxOutput: 64000;
211
+ readonly modalities: {
212
+ readonly input: readonly ["text"];
213
+ readonly output: readonly ["text"];
214
+ };
215
+ readonly capabilities: {
216
+ readonly reasoning: true;
217
+ readonly toolCall: false;
218
+ readonly attachment: false;
219
+ readonly structuredOutput: false;
220
+ };
221
+ }, {
222
+ readonly id: "deepseek-ai/DeepSeek-V3.2";
223
+ readonly name: "DeepSeek-V3.2";
224
+ readonly provider: "deepinfra";
225
+ readonly family: "";
226
+ readonly pricing: {
227
+ readonly input: 2.6e-7;
228
+ readonly output: 3.8e-7;
229
+ readonly cacheRead: 1.3e-7;
230
+ };
231
+ readonly contextWindow: 163840;
232
+ readonly maxOutput: 64000;
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: "moonshotai/Kimi-K2-Instruct";
245
+ readonly name: "Kimi K2";
246
+ readonly provider: "deepinfra";
247
+ readonly family: "kimi";
248
+ readonly pricing: {
249
+ readonly input: 5e-7;
250
+ readonly output: 0.000002;
251
+ };
252
+ readonly contextWindow: 131072;
253
+ readonly maxOutput: 32768;
254
+ readonly modalities: {
255
+ readonly input: readonly ["text"];
256
+ readonly output: readonly ["text"];
257
+ };
258
+ readonly capabilities: {
259
+ readonly reasoning: false;
260
+ readonly toolCall: true;
261
+ readonly attachment: false;
262
+ readonly structuredOutput: false;
263
+ };
264
+ }, {
265
+ readonly id: "moonshotai/Kimi-K2-Instruct-0905";
266
+ readonly name: "Kimi K2 0905";
267
+ readonly provider: "deepinfra";
268
+ readonly family: "kimi";
269
+ readonly pricing: {
270
+ readonly input: 4e-7;
271
+ readonly output: 0.000002;
272
+ readonly cacheRead: 1.5e-7;
273
+ };
274
+ readonly contextWindow: 262144;
275
+ readonly maxOutput: 262144;
276
+ readonly modalities: {
277
+ readonly input: readonly ["text"];
278
+ readonly output: readonly ["text"];
279
+ };
280
+ readonly capabilities: {
281
+ readonly reasoning: false;
282
+ readonly toolCall: true;
283
+ readonly attachment: false;
284
+ readonly structuredOutput: false;
285
+ };
286
+ }, {
287
+ readonly id: "moonshotai/Kimi-K2.5";
288
+ readonly name: "Kimi K2.5";
289
+ readonly provider: "deepinfra";
290
+ readonly family: "kimi";
291
+ readonly pricing: {
292
+ readonly input: 5e-7;
293
+ readonly output: 0.0000028;
294
+ };
295
+ readonly contextWindow: 262144;
296
+ readonly maxOutput: 32768;
297
+ readonly modalities: {
298
+ readonly input: readonly ["text", "image", "video"];
299
+ readonly output: readonly ["text"];
300
+ };
301
+ readonly capabilities: {
302
+ readonly reasoning: true;
303
+ readonly toolCall: true;
304
+ readonly attachment: true;
305
+ readonly structuredOutput: true;
306
+ };
307
+ }, {
308
+ readonly id: "moonshotai/Kimi-K2-Thinking";
309
+ readonly name: "Kimi K2 Thinking";
310
+ readonly provider: "deepinfra";
311
+ readonly family: "kimi-thinking";
312
+ readonly pricing: {
313
+ readonly input: 4.7e-7;
314
+ readonly output: 0.000002;
315
+ };
316
+ readonly contextWindow: 131072;
317
+ readonly maxOutput: 32768;
318
+ readonly modalities: {
319
+ readonly input: readonly ["text"];
320
+ readonly output: readonly ["text"];
321
+ };
322
+ readonly capabilities: {
323
+ readonly reasoning: true;
324
+ readonly toolCall: true;
325
+ readonly attachment: false;
326
+ readonly structuredOutput: false;
327
+ };
328
+ }, {
329
+ readonly id: "meta-llama/Llama-3.1-8B-Instruct-Turbo";
330
+ readonly name: "Llama 3.1 8B Turbo";
331
+ readonly provider: "deepinfra";
332
+ readonly family: "llama";
333
+ readonly pricing: {
334
+ readonly input: 2e-8;
335
+ readonly output: 3e-8;
336
+ };
337
+ readonly contextWindow: 131072;
338
+ readonly maxOutput: 16384;
339
+ readonly modalities: {
340
+ readonly input: readonly ["text"];
341
+ readonly output: readonly ["text"];
342
+ };
343
+ readonly capabilities: {
344
+ readonly reasoning: false;
345
+ readonly toolCall: true;
346
+ readonly attachment: false;
347
+ readonly structuredOutput: false;
348
+ };
349
+ }, {
350
+ readonly id: "meta-llama/Llama-3.1-70B-Instruct-Turbo";
351
+ readonly name: "Llama 3.1 70B Turbo";
352
+ readonly provider: "deepinfra";
353
+ readonly family: "llama";
354
+ readonly pricing: {
355
+ readonly input: 4e-7;
356
+ readonly output: 4e-7;
357
+ };
358
+ readonly contextWindow: 131072;
359
+ readonly maxOutput: 16384;
360
+ readonly modalities: {
361
+ readonly input: readonly ["text"];
362
+ readonly output: readonly ["text"];
363
+ };
364
+ readonly capabilities: {
365
+ readonly reasoning: false;
366
+ readonly toolCall: true;
367
+ readonly attachment: false;
368
+ readonly structuredOutput: false;
369
+ };
370
+ }, {
371
+ readonly id: "meta-llama/Llama-4-Scout-17B-16E-Instruct";
372
+ readonly name: "Llama 4 Scout 17B";
373
+ readonly provider: "deepinfra";
374
+ readonly family: "llama";
375
+ readonly pricing: {
376
+ readonly input: 8e-8;
377
+ readonly output: 3e-7;
378
+ };
379
+ readonly contextWindow: 10000000;
380
+ readonly maxOutput: 16384;
381
+ readonly modalities: {
382
+ readonly input: readonly ["text", "image"];
383
+ readonly output: readonly ["text"];
384
+ };
385
+ readonly capabilities: {
386
+ readonly reasoning: false;
387
+ readonly toolCall: true;
388
+ readonly attachment: false;
389
+ readonly structuredOutput: false;
390
+ };
391
+ }, {
392
+ readonly id: "meta-llama/Llama-3.1-70B-Instruct";
393
+ readonly name: "Llama 3.1 70B";
394
+ readonly provider: "deepinfra";
395
+ readonly family: "llama";
396
+ readonly pricing: {
397
+ readonly input: 4e-7;
398
+ readonly output: 4e-7;
399
+ };
400
+ readonly contextWindow: 131072;
401
+ readonly maxOutput: 16384;
402
+ readonly modalities: {
403
+ readonly input: readonly ["text"];
404
+ readonly output: readonly ["text"];
405
+ };
406
+ readonly capabilities: {
407
+ readonly reasoning: false;
408
+ readonly toolCall: true;
409
+ readonly attachment: false;
410
+ readonly structuredOutput: false;
411
+ };
412
+ }, {
413
+ readonly id: "meta-llama/Llama-3.1-8B-Instruct";
414
+ readonly name: "Llama 3.1 8B";
415
+ readonly provider: "deepinfra";
416
+ readonly family: "llama";
417
+ readonly pricing: {
418
+ readonly input: 2e-8;
419
+ readonly output: 5e-8;
420
+ };
421
+ readonly contextWindow: 131072;
422
+ readonly maxOutput: 16384;
423
+ readonly modalities: {
424
+ readonly input: readonly ["text"];
425
+ readonly output: readonly ["text"];
426
+ };
427
+ readonly capabilities: {
428
+ readonly reasoning: false;
429
+ readonly toolCall: true;
430
+ readonly attachment: false;
431
+ readonly structuredOutput: false;
432
+ };
433
+ }, {
434
+ readonly id: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8";
435
+ readonly name: "Llama 4 Maverick 17B FP8";
436
+ readonly provider: "deepinfra";
437
+ readonly family: "llama";
438
+ readonly pricing: {
439
+ readonly input: 1.5e-7;
440
+ readonly output: 6e-7;
441
+ };
442
+ readonly contextWindow: 1000000;
443
+ readonly maxOutput: 16384;
444
+ readonly modalities: {
445
+ readonly input: readonly ["text", "image"];
446
+ readonly output: readonly ["text"];
447
+ };
448
+ readonly capabilities: {
449
+ readonly reasoning: false;
450
+ readonly toolCall: true;
451
+ readonly attachment: false;
452
+ readonly structuredOutput: false;
453
+ };
454
+ }, {
455
+ readonly id: "meta-llama/Llama-3.3-70B-Instruct-Turbo";
456
+ readonly name: "Llama 3.3 70B Turbo";
457
+ readonly provider: "deepinfra";
458
+ readonly family: "llama";
459
+ readonly pricing: {
460
+ readonly input: 1e-7;
461
+ readonly output: 3.2e-7;
462
+ };
463
+ readonly contextWindow: 131072;
464
+ readonly maxOutput: 16384;
465
+ readonly modalities: {
466
+ readonly input: readonly ["text"];
467
+ readonly output: readonly ["text"];
468
+ };
469
+ readonly capabilities: {
470
+ readonly reasoning: false;
471
+ readonly toolCall: true;
472
+ readonly attachment: false;
473
+ readonly structuredOutput: false;
474
+ };
475
+ }, {
476
+ readonly id: "Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo";
477
+ readonly name: "Qwen3 Coder 480B A35B Instruct Turbo";
478
+ readonly provider: "deepinfra";
479
+ readonly family: "qwen";
480
+ readonly pricing: {
481
+ readonly input: 3e-7;
482
+ readonly output: 0.0000012;
483
+ };
484
+ readonly contextWindow: 262144;
485
+ readonly maxOutput: 66536;
486
+ readonly modalities: {
487
+ readonly input: readonly ["text"];
488
+ readonly output: readonly ["text"];
489
+ };
490
+ readonly capabilities: {
491
+ readonly reasoning: false;
492
+ readonly toolCall: true;
493
+ readonly attachment: false;
494
+ readonly structuredOutput: false;
495
+ };
496
+ }, {
497
+ readonly id: "Qwen/Qwen3-Coder-480B-A35B-Instruct";
498
+ readonly name: "Qwen3 Coder 480B A35B Instruct";
499
+ readonly provider: "deepinfra";
500
+ readonly family: "qwen";
501
+ readonly pricing: {
502
+ readonly input: 4e-7;
503
+ readonly output: 0.0000016;
504
+ };
505
+ readonly contextWindow: 262144;
506
+ readonly maxOutput: 66536;
507
+ readonly modalities: {
508
+ readonly input: readonly ["text"];
509
+ readonly output: readonly ["text"];
510
+ };
511
+ readonly capabilities: {
512
+ readonly reasoning: false;
513
+ readonly toolCall: true;
514
+ readonly attachment: false;
515
+ readonly structuredOutput: false;
516
+ };
517
+ }, {
518
+ readonly id: "openai/gpt-oss-120b";
519
+ readonly name: "GPT OSS 120B";
520
+ readonly provider: "deepinfra";
521
+ readonly family: "gpt-oss";
522
+ readonly pricing: {
523
+ readonly input: 5e-8;
524
+ readonly output: 2.4e-7;
525
+ };
526
+ readonly contextWindow: 131072;
527
+ readonly maxOutput: 16384;
528
+ readonly modalities: {
529
+ readonly input: readonly ["text"];
530
+ readonly output: readonly ["text"];
531
+ };
532
+ readonly capabilities: {
533
+ readonly reasoning: true;
534
+ readonly toolCall: true;
535
+ readonly attachment: false;
536
+ readonly structuredOutput: false;
537
+ };
538
+ }, {
539
+ readonly id: "openai/gpt-oss-20b";
540
+ readonly name: "GPT OSS 20B";
541
+ readonly provider: "deepinfra";
542
+ readonly family: "gpt-oss";
543
+ readonly pricing: {
544
+ readonly input: 3e-8;
545
+ readonly output: 1.4e-7;
546
+ };
547
+ readonly contextWindow: 131072;
548
+ readonly maxOutput: 16384;
549
+ readonly modalities: {
550
+ readonly input: readonly ["text"];
551
+ readonly output: readonly ["text"];
552
+ };
553
+ readonly capabilities: {
554
+ readonly reasoning: true;
555
+ readonly toolCall: true;
556
+ readonly attachment: false;
557
+ readonly structuredOutput: false;
558
+ };
559
+ }, {
560
+ readonly id: "anthropic/claude-3-7-sonnet-latest";
561
+ readonly name: "Claude Sonnet 3.7 (Latest)";
562
+ readonly provider: "deepinfra";
563
+ readonly family: "claude-sonnet";
564
+ readonly pricing: {
565
+ readonly input: 0.0000033;
566
+ readonly output: 0.0000165;
567
+ readonly cacheRead: 3.3e-7;
568
+ };
569
+ readonly contextWindow: 200000;
570
+ readonly maxOutput: 64000;
571
+ readonly modalities: {
572
+ readonly input: readonly ["text", "image"];
573
+ readonly output: readonly ["text"];
574
+ };
575
+ readonly capabilities: {
576
+ readonly reasoning: true;
577
+ readonly toolCall: true;
578
+ readonly attachment: true;
579
+ readonly structuredOutput: false;
580
+ };
581
+ }, {
582
+ readonly id: "anthropic/claude-4-opus";
583
+ readonly name: "Claude Opus 4";
584
+ readonly provider: "deepinfra";
585
+ readonly family: "claude-opus";
586
+ readonly pricing: {
587
+ readonly input: 0.0000165;
588
+ readonly output: 0.0000825;
589
+ };
590
+ readonly contextWindow: 200000;
591
+ readonly maxOutput: 32000;
592
+ readonly modalities: {
593
+ readonly input: readonly ["text", "image"];
594
+ readonly output: readonly ["text"];
595
+ };
596
+ readonly capabilities: {
597
+ readonly reasoning: true;
598
+ readonly toolCall: true;
599
+ readonly attachment: true;
600
+ readonly structuredOutput: false;
601
+ };
602
+ }];
603
+ //#endregion
604
+ //#region src/providers/deepinfra.d.ts
605
+ /**
606
+ * Known model identifiers for DeepInfra.
607
+ *
608
+ * @example
609
+ * ```typescript
610
+ * import type { DeepInfraModelId } from '@funkai/models/deepinfra'
611
+ *
612
+ * const id: DeepInfraModelId = 'zai-org/GLM-4.7-Flash'
613
+ * ```
614
+ */
615
+ type DeepInfraModelId = (typeof DEEPINFRA_MODELS)[number]["id"];
616
+ /**
617
+ * All DeepInfra models in the catalog.
618
+ *
619
+ * @example
620
+ * ```typescript
621
+ * import { deepInfraModels } from '@funkai/models/deepinfra'
622
+ *
623
+ * for (const m of deepInfraModels) {
624
+ * console.log(m.id, m.pricing.input)
625
+ * }
626
+ * ```
627
+ */
628
+ declare const deepInfraModels: readonly [{
629
+ readonly id: "zai-org/GLM-4.7-Flash";
630
+ readonly name: "GLM-4.7-Flash";
631
+ readonly provider: "deepinfra";
632
+ readonly family: "glm-flash";
633
+ readonly pricing: {
634
+ readonly input: 6e-8;
635
+ readonly output: 4e-7;
636
+ };
637
+ readonly contextWindow: 202752;
638
+ readonly maxOutput: 16384;
639
+ readonly modalities: {
640
+ readonly input: readonly ["text"];
641
+ readonly output: readonly ["text"];
642
+ };
643
+ readonly capabilities: {
644
+ readonly reasoning: true;
645
+ readonly toolCall: true;
646
+ readonly attachment: false;
647
+ readonly structuredOutput: false;
648
+ };
649
+ }, {
650
+ readonly id: "zai-org/GLM-4.6";
651
+ readonly name: "GLM-4.6";
652
+ readonly provider: "deepinfra";
653
+ readonly family: "glm";
654
+ readonly pricing: {
655
+ readonly input: 4.3e-7;
656
+ readonly output: 0.00000174;
657
+ readonly cacheRead: 8e-8;
658
+ };
659
+ readonly contextWindow: 204800;
660
+ readonly maxOutput: 131072;
661
+ readonly modalities: {
662
+ readonly input: readonly ["text"];
663
+ readonly output: readonly ["text"];
664
+ };
665
+ readonly capabilities: {
666
+ readonly reasoning: true;
667
+ readonly toolCall: true;
668
+ readonly attachment: false;
669
+ readonly structuredOutput: false;
670
+ };
671
+ }, {
672
+ readonly id: "zai-org/GLM-4.7";
673
+ readonly name: "GLM-4.7";
674
+ readonly provider: "deepinfra";
675
+ readonly family: "glm";
676
+ readonly pricing: {
677
+ readonly input: 4.3e-7;
678
+ readonly output: 0.00000175;
679
+ readonly cacheRead: 8e-8;
680
+ };
681
+ readonly contextWindow: 202752;
682
+ readonly maxOutput: 16384;
683
+ readonly modalities: {
684
+ readonly input: readonly ["text"];
685
+ readonly output: readonly ["text"];
686
+ };
687
+ readonly capabilities: {
688
+ readonly reasoning: true;
689
+ readonly toolCall: true;
690
+ readonly attachment: false;
691
+ readonly structuredOutput: false;
692
+ };
693
+ }, {
694
+ readonly id: "zai-org/GLM-4.6V";
695
+ readonly name: "GLM-4.6V";
696
+ readonly provider: "deepinfra";
697
+ readonly family: "glm";
698
+ readonly pricing: {
699
+ readonly input: 3e-7;
700
+ readonly output: 9e-7;
701
+ };
702
+ readonly contextWindow: 204800;
703
+ readonly maxOutput: 131072;
704
+ readonly modalities: {
705
+ readonly input: readonly ["text", "image"];
706
+ readonly output: readonly ["text"];
707
+ };
708
+ readonly capabilities: {
709
+ readonly reasoning: true;
710
+ readonly toolCall: true;
711
+ readonly attachment: true;
712
+ readonly structuredOutput: false;
713
+ };
714
+ }, {
715
+ readonly id: "zai-org/GLM-4.5";
716
+ readonly name: "GLM-4.5";
717
+ readonly provider: "deepinfra";
718
+ readonly family: "glm";
719
+ readonly pricing: {
720
+ readonly input: 6e-7;
721
+ readonly output: 0.0000022;
722
+ };
723
+ readonly contextWindow: 131072;
724
+ readonly maxOutput: 98304;
725
+ readonly modalities: {
726
+ readonly input: readonly ["text"];
727
+ readonly output: readonly ["text"];
728
+ };
729
+ readonly capabilities: {
730
+ readonly reasoning: false;
731
+ readonly toolCall: true;
732
+ readonly attachment: false;
733
+ readonly structuredOutput: false;
734
+ };
735
+ }, {
736
+ readonly id: "zai-org/GLM-5";
737
+ readonly name: "GLM-5";
738
+ readonly provider: "deepinfra";
739
+ readonly family: "glm";
740
+ readonly pricing: {
741
+ readonly input: 8e-7;
742
+ readonly output: 0.00000256;
743
+ readonly cacheRead: 1.6e-7;
744
+ };
745
+ readonly contextWindow: 202752;
746
+ readonly maxOutput: 16384;
747
+ readonly modalities: {
748
+ readonly input: readonly ["text"];
749
+ readonly output: readonly ["text"];
750
+ };
751
+ readonly capabilities: {
752
+ readonly reasoning: true;
753
+ readonly toolCall: true;
754
+ readonly attachment: false;
755
+ readonly structuredOutput: false;
756
+ };
757
+ }, {
758
+ readonly id: "MiniMaxAI/MiniMax-M2.5";
759
+ readonly name: "MiniMax M2.5";
760
+ readonly provider: "deepinfra";
761
+ readonly family: "minimax";
762
+ readonly pricing: {
763
+ readonly input: 2.7e-7;
764
+ readonly output: 9.5e-7;
765
+ readonly cacheRead: 3e-8;
766
+ readonly cacheWrite: 3.75e-7;
767
+ };
768
+ readonly contextWindow: 204800;
769
+ readonly maxOutput: 131072;
770
+ readonly modalities: {
771
+ readonly input: readonly ["text"];
772
+ readonly output: readonly ["text"];
773
+ };
774
+ readonly capabilities: {
775
+ readonly reasoning: true;
776
+ readonly toolCall: true;
777
+ readonly attachment: false;
778
+ readonly structuredOutput: false;
779
+ };
780
+ }, {
781
+ readonly id: "MiniMaxAI/MiniMax-M2";
782
+ readonly name: "MiniMax M2";
783
+ readonly provider: "deepinfra";
784
+ readonly family: "minimax";
785
+ readonly pricing: {
786
+ readonly input: 2.54e-7;
787
+ readonly output: 0.00000102;
788
+ };
789
+ readonly contextWindow: 262144;
790
+ readonly maxOutput: 32768;
791
+ readonly modalities: {
792
+ readonly input: readonly ["text"];
793
+ readonly output: readonly ["text"];
794
+ };
795
+ readonly capabilities: {
796
+ readonly reasoning: true;
797
+ readonly toolCall: true;
798
+ readonly attachment: false;
799
+ readonly structuredOutput: false;
800
+ };
801
+ }, {
802
+ readonly id: "MiniMaxAI/MiniMax-M2.1";
803
+ readonly name: "MiniMax M2.1";
804
+ readonly provider: "deepinfra";
805
+ readonly family: "";
806
+ readonly pricing: {
807
+ readonly input: 2.8e-7;
808
+ readonly output: 0.0000012;
809
+ };
810
+ readonly contextWindow: 196608;
811
+ readonly maxOutput: 196608;
812
+ readonly modalities: {
813
+ readonly input: readonly ["text"];
814
+ readonly output: readonly ["text"];
815
+ };
816
+ readonly capabilities: {
817
+ readonly reasoning: true;
818
+ readonly toolCall: true;
819
+ readonly attachment: false;
820
+ readonly structuredOutput: false;
821
+ };
822
+ }, {
823
+ readonly id: "deepseek-ai/DeepSeek-R1-0528";
824
+ readonly name: "DeepSeek-R1-0528";
825
+ readonly provider: "deepinfra";
826
+ readonly family: "";
827
+ readonly pricing: {
828
+ readonly input: 5e-7;
829
+ readonly output: 0.00000215;
830
+ readonly cacheRead: 3.5e-7;
831
+ };
832
+ readonly contextWindow: 163840;
833
+ readonly maxOutput: 64000;
834
+ readonly modalities: {
835
+ readonly input: readonly ["text"];
836
+ readonly output: readonly ["text"];
837
+ };
838
+ readonly capabilities: {
839
+ readonly reasoning: true;
840
+ readonly toolCall: false;
841
+ readonly attachment: false;
842
+ readonly structuredOutput: false;
843
+ };
844
+ }, {
845
+ readonly id: "deepseek-ai/DeepSeek-V3.2";
846
+ readonly name: "DeepSeek-V3.2";
847
+ readonly provider: "deepinfra";
848
+ readonly family: "";
849
+ readonly pricing: {
850
+ readonly input: 2.6e-7;
851
+ readonly output: 3.8e-7;
852
+ readonly cacheRead: 1.3e-7;
853
+ };
854
+ readonly contextWindow: 163840;
855
+ readonly maxOutput: 64000;
856
+ readonly modalities: {
857
+ readonly input: readonly ["text"];
858
+ readonly output: readonly ["text"];
859
+ };
860
+ readonly capabilities: {
861
+ readonly reasoning: true;
862
+ readonly toolCall: true;
863
+ readonly attachment: false;
864
+ readonly structuredOutput: false;
865
+ };
866
+ }, {
867
+ readonly id: "moonshotai/Kimi-K2-Instruct";
868
+ readonly name: "Kimi K2";
869
+ readonly provider: "deepinfra";
870
+ readonly family: "kimi";
871
+ readonly pricing: {
872
+ readonly input: 5e-7;
873
+ readonly output: 0.000002;
874
+ };
875
+ readonly contextWindow: 131072;
876
+ readonly maxOutput: 32768;
877
+ readonly modalities: {
878
+ readonly input: readonly ["text"];
879
+ readonly output: readonly ["text"];
880
+ };
881
+ readonly capabilities: {
882
+ readonly reasoning: false;
883
+ readonly toolCall: true;
884
+ readonly attachment: false;
885
+ readonly structuredOutput: false;
886
+ };
887
+ }, {
888
+ readonly id: "moonshotai/Kimi-K2-Instruct-0905";
889
+ readonly name: "Kimi K2 0905";
890
+ readonly provider: "deepinfra";
891
+ readonly family: "kimi";
892
+ readonly pricing: {
893
+ readonly input: 4e-7;
894
+ readonly output: 0.000002;
895
+ readonly cacheRead: 1.5e-7;
896
+ };
897
+ readonly contextWindow: 262144;
898
+ readonly maxOutput: 262144;
899
+ readonly modalities: {
900
+ readonly input: readonly ["text"];
901
+ readonly output: readonly ["text"];
902
+ };
903
+ readonly capabilities: {
904
+ readonly reasoning: false;
905
+ readonly toolCall: true;
906
+ readonly attachment: false;
907
+ readonly structuredOutput: false;
908
+ };
909
+ }, {
910
+ readonly id: "moonshotai/Kimi-K2.5";
911
+ readonly name: "Kimi K2.5";
912
+ readonly provider: "deepinfra";
913
+ readonly family: "kimi";
914
+ readonly pricing: {
915
+ readonly input: 5e-7;
916
+ readonly output: 0.0000028;
917
+ };
918
+ readonly contextWindow: 262144;
919
+ readonly maxOutput: 32768;
920
+ readonly modalities: {
921
+ readonly input: readonly ["text", "image", "video"];
922
+ readonly output: readonly ["text"];
923
+ };
924
+ readonly capabilities: {
925
+ readonly reasoning: true;
926
+ readonly toolCall: true;
927
+ readonly attachment: true;
928
+ readonly structuredOutput: true;
929
+ };
930
+ }, {
931
+ readonly id: "moonshotai/Kimi-K2-Thinking";
932
+ readonly name: "Kimi K2 Thinking";
933
+ readonly provider: "deepinfra";
934
+ readonly family: "kimi-thinking";
935
+ readonly pricing: {
936
+ readonly input: 4.7e-7;
937
+ readonly output: 0.000002;
938
+ };
939
+ readonly contextWindow: 131072;
940
+ readonly maxOutput: 32768;
941
+ readonly modalities: {
942
+ readonly input: readonly ["text"];
943
+ readonly output: readonly ["text"];
944
+ };
945
+ readonly capabilities: {
946
+ readonly reasoning: true;
947
+ readonly toolCall: true;
948
+ readonly attachment: false;
949
+ readonly structuredOutput: false;
950
+ };
951
+ }, {
952
+ readonly id: "meta-llama/Llama-3.1-8B-Instruct-Turbo";
953
+ readonly name: "Llama 3.1 8B Turbo";
954
+ readonly provider: "deepinfra";
955
+ readonly family: "llama";
956
+ readonly pricing: {
957
+ readonly input: 2e-8;
958
+ readonly output: 3e-8;
959
+ };
960
+ readonly contextWindow: 131072;
961
+ readonly maxOutput: 16384;
962
+ readonly modalities: {
963
+ readonly input: readonly ["text"];
964
+ readonly output: readonly ["text"];
965
+ };
966
+ readonly capabilities: {
967
+ readonly reasoning: false;
968
+ readonly toolCall: true;
969
+ readonly attachment: false;
970
+ readonly structuredOutput: false;
971
+ };
972
+ }, {
973
+ readonly id: "meta-llama/Llama-3.1-70B-Instruct-Turbo";
974
+ readonly name: "Llama 3.1 70B Turbo";
975
+ readonly provider: "deepinfra";
976
+ readonly family: "llama";
977
+ readonly pricing: {
978
+ readonly input: 4e-7;
979
+ readonly output: 4e-7;
980
+ };
981
+ readonly contextWindow: 131072;
982
+ readonly maxOutput: 16384;
983
+ readonly modalities: {
984
+ readonly input: readonly ["text"];
985
+ readonly output: readonly ["text"];
986
+ };
987
+ readonly capabilities: {
988
+ readonly reasoning: false;
989
+ readonly toolCall: true;
990
+ readonly attachment: false;
991
+ readonly structuredOutput: false;
992
+ };
993
+ }, {
994
+ readonly id: "meta-llama/Llama-4-Scout-17B-16E-Instruct";
995
+ readonly name: "Llama 4 Scout 17B";
996
+ readonly provider: "deepinfra";
997
+ readonly family: "llama";
998
+ readonly pricing: {
999
+ readonly input: 8e-8;
1000
+ readonly output: 3e-7;
1001
+ };
1002
+ readonly contextWindow: 10000000;
1003
+ readonly maxOutput: 16384;
1004
+ readonly modalities: {
1005
+ readonly input: readonly ["text", "image"];
1006
+ readonly output: readonly ["text"];
1007
+ };
1008
+ readonly capabilities: {
1009
+ readonly reasoning: false;
1010
+ readonly toolCall: true;
1011
+ readonly attachment: false;
1012
+ readonly structuredOutput: false;
1013
+ };
1014
+ }, {
1015
+ readonly id: "meta-llama/Llama-3.1-70B-Instruct";
1016
+ readonly name: "Llama 3.1 70B";
1017
+ readonly provider: "deepinfra";
1018
+ readonly family: "llama";
1019
+ readonly pricing: {
1020
+ readonly input: 4e-7;
1021
+ readonly output: 4e-7;
1022
+ };
1023
+ readonly contextWindow: 131072;
1024
+ readonly maxOutput: 16384;
1025
+ readonly modalities: {
1026
+ readonly input: readonly ["text"];
1027
+ readonly output: readonly ["text"];
1028
+ };
1029
+ readonly capabilities: {
1030
+ readonly reasoning: false;
1031
+ readonly toolCall: true;
1032
+ readonly attachment: false;
1033
+ readonly structuredOutput: false;
1034
+ };
1035
+ }, {
1036
+ readonly id: "meta-llama/Llama-3.1-8B-Instruct";
1037
+ readonly name: "Llama 3.1 8B";
1038
+ readonly provider: "deepinfra";
1039
+ readonly family: "llama";
1040
+ readonly pricing: {
1041
+ readonly input: 2e-8;
1042
+ readonly output: 5e-8;
1043
+ };
1044
+ readonly contextWindow: 131072;
1045
+ readonly maxOutput: 16384;
1046
+ readonly modalities: {
1047
+ readonly input: readonly ["text"];
1048
+ readonly output: readonly ["text"];
1049
+ };
1050
+ readonly capabilities: {
1051
+ readonly reasoning: false;
1052
+ readonly toolCall: true;
1053
+ readonly attachment: false;
1054
+ readonly structuredOutput: false;
1055
+ };
1056
+ }, {
1057
+ readonly id: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8";
1058
+ readonly name: "Llama 4 Maverick 17B FP8";
1059
+ readonly provider: "deepinfra";
1060
+ readonly family: "llama";
1061
+ readonly pricing: {
1062
+ readonly input: 1.5e-7;
1063
+ readonly output: 6e-7;
1064
+ };
1065
+ readonly contextWindow: 1000000;
1066
+ readonly maxOutput: 16384;
1067
+ readonly modalities: {
1068
+ readonly input: readonly ["text", "image"];
1069
+ readonly output: readonly ["text"];
1070
+ };
1071
+ readonly capabilities: {
1072
+ readonly reasoning: false;
1073
+ readonly toolCall: true;
1074
+ readonly attachment: false;
1075
+ readonly structuredOutput: false;
1076
+ };
1077
+ }, {
1078
+ readonly id: "meta-llama/Llama-3.3-70B-Instruct-Turbo";
1079
+ readonly name: "Llama 3.3 70B Turbo";
1080
+ readonly provider: "deepinfra";
1081
+ readonly family: "llama";
1082
+ readonly pricing: {
1083
+ readonly input: 1e-7;
1084
+ readonly output: 3.2e-7;
1085
+ };
1086
+ readonly contextWindow: 131072;
1087
+ readonly maxOutput: 16384;
1088
+ readonly modalities: {
1089
+ readonly input: readonly ["text"];
1090
+ readonly output: readonly ["text"];
1091
+ };
1092
+ readonly capabilities: {
1093
+ readonly reasoning: false;
1094
+ readonly toolCall: true;
1095
+ readonly attachment: false;
1096
+ readonly structuredOutput: false;
1097
+ };
1098
+ }, {
1099
+ readonly id: "Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo";
1100
+ readonly name: "Qwen3 Coder 480B A35B Instruct Turbo";
1101
+ readonly provider: "deepinfra";
1102
+ readonly family: "qwen";
1103
+ readonly pricing: {
1104
+ readonly input: 3e-7;
1105
+ readonly output: 0.0000012;
1106
+ };
1107
+ readonly contextWindow: 262144;
1108
+ readonly maxOutput: 66536;
1109
+ readonly modalities: {
1110
+ readonly input: readonly ["text"];
1111
+ readonly output: readonly ["text"];
1112
+ };
1113
+ readonly capabilities: {
1114
+ readonly reasoning: false;
1115
+ readonly toolCall: true;
1116
+ readonly attachment: false;
1117
+ readonly structuredOutput: false;
1118
+ };
1119
+ }, {
1120
+ readonly id: "Qwen/Qwen3-Coder-480B-A35B-Instruct";
1121
+ readonly name: "Qwen3 Coder 480B A35B Instruct";
1122
+ readonly provider: "deepinfra";
1123
+ readonly family: "qwen";
1124
+ readonly pricing: {
1125
+ readonly input: 4e-7;
1126
+ readonly output: 0.0000016;
1127
+ };
1128
+ readonly contextWindow: 262144;
1129
+ readonly maxOutput: 66536;
1130
+ readonly modalities: {
1131
+ readonly input: readonly ["text"];
1132
+ readonly output: readonly ["text"];
1133
+ };
1134
+ readonly capabilities: {
1135
+ readonly reasoning: false;
1136
+ readonly toolCall: true;
1137
+ readonly attachment: false;
1138
+ readonly structuredOutput: false;
1139
+ };
1140
+ }, {
1141
+ readonly id: "openai/gpt-oss-120b";
1142
+ readonly name: "GPT OSS 120B";
1143
+ readonly provider: "deepinfra";
1144
+ readonly family: "gpt-oss";
1145
+ readonly pricing: {
1146
+ readonly input: 5e-8;
1147
+ readonly output: 2.4e-7;
1148
+ };
1149
+ readonly contextWindow: 131072;
1150
+ readonly maxOutput: 16384;
1151
+ readonly modalities: {
1152
+ readonly input: readonly ["text"];
1153
+ readonly output: readonly ["text"];
1154
+ };
1155
+ readonly capabilities: {
1156
+ readonly reasoning: true;
1157
+ readonly toolCall: true;
1158
+ readonly attachment: false;
1159
+ readonly structuredOutput: false;
1160
+ };
1161
+ }, {
1162
+ readonly id: "openai/gpt-oss-20b";
1163
+ readonly name: "GPT OSS 20B";
1164
+ readonly provider: "deepinfra";
1165
+ readonly family: "gpt-oss";
1166
+ readonly pricing: {
1167
+ readonly input: 3e-8;
1168
+ readonly output: 1.4e-7;
1169
+ };
1170
+ readonly contextWindow: 131072;
1171
+ readonly maxOutput: 16384;
1172
+ readonly modalities: {
1173
+ readonly input: readonly ["text"];
1174
+ readonly output: readonly ["text"];
1175
+ };
1176
+ readonly capabilities: {
1177
+ readonly reasoning: true;
1178
+ readonly toolCall: true;
1179
+ readonly attachment: false;
1180
+ readonly structuredOutput: false;
1181
+ };
1182
+ }, {
1183
+ readonly id: "anthropic/claude-3-7-sonnet-latest";
1184
+ readonly name: "Claude Sonnet 3.7 (Latest)";
1185
+ readonly provider: "deepinfra";
1186
+ readonly family: "claude-sonnet";
1187
+ readonly pricing: {
1188
+ readonly input: 0.0000033;
1189
+ readonly output: 0.0000165;
1190
+ readonly cacheRead: 3.3e-7;
1191
+ };
1192
+ readonly contextWindow: 200000;
1193
+ readonly maxOutput: 64000;
1194
+ readonly modalities: {
1195
+ readonly input: readonly ["text", "image"];
1196
+ readonly output: readonly ["text"];
1197
+ };
1198
+ readonly capabilities: {
1199
+ readonly reasoning: true;
1200
+ readonly toolCall: true;
1201
+ readonly attachment: true;
1202
+ readonly structuredOutput: false;
1203
+ };
1204
+ }, {
1205
+ readonly id: "anthropic/claude-4-opus";
1206
+ readonly name: "Claude Opus 4";
1207
+ readonly provider: "deepinfra";
1208
+ readonly family: "claude-opus";
1209
+ readonly pricing: {
1210
+ readonly input: 0.0000165;
1211
+ readonly output: 0.0000825;
1212
+ };
1213
+ readonly contextWindow: 200000;
1214
+ readonly maxOutput: 32000;
1215
+ readonly modalities: {
1216
+ readonly input: readonly ["text", "image"];
1217
+ readonly output: readonly ["text"];
1218
+ };
1219
+ readonly capabilities: {
1220
+ readonly reasoning: true;
1221
+ readonly toolCall: true;
1222
+ readonly attachment: true;
1223
+ readonly structuredOutput: false;
1224
+ };
1225
+ }];
1226
+ /**
1227
+ * Look up a DeepInfra model by ID.
1228
+ *
1229
+ * @param id - The provider-native model identifier.
1230
+ * @returns The matching model definition, or `null`.
1231
+ *
1232
+ * @example
1233
+ * ```typescript
1234
+ * import { deepInfraModel } from '@funkai/models/deepinfra'
1235
+ *
1236
+ * const m = deepInfraModel('zai-org/GLM-4.7-Flash')
1237
+ * if (m) {
1238
+ * console.log(m.pricing.input)
1239
+ * }
1240
+ * ```
1241
+ */
1242
+ declare function deepInfraModel(id: LiteralUnion<DeepInfraModelId, string>): ModelDefinition | null;
1243
+ //#endregion
1244
+ export { DeepInfraModelId, deepInfraModel, deepInfraModels };
1245
+ //# sourceMappingURL=deepinfra.d.mts.map