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