@funkai/models 0.3.0 → 0.3.2

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 (83) hide show
  1. package/.turbo/turbo-build.log +34 -33
  2. package/CHANGELOG.md +36 -0
  3. package/dist/alibaba-B6q4Ng1R.mjs.map +1 -1
  4. package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -1
  5. package/dist/anthropic-yB7ST97_.mjs.map +1 -1
  6. package/dist/cerebras-COfl7XM-.mjs.map +1 -1
  7. package/dist/cohere-B7TgO0hT.mjs.map +1 -1
  8. package/dist/deepinfra-B0GxUwCG.mjs.map +1 -1
  9. package/dist/deepseek-D64ZEsvS.mjs.map +1 -1
  10. package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -1
  11. package/dist/google-BypRl349.mjs.map +1 -1
  12. package/dist/google-vertex-DbS-zTGD.mjs.map +1 -1
  13. package/dist/groq-ei_PerYi.mjs.map +1 -1
  14. package/dist/huggingface-DaM1EeLP.mjs.map +1 -1
  15. package/dist/inception-CspEzqNV.mjs.map +1 -1
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.mts.map +1 -1
  18. package/dist/index.mjs +14 -2
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/llama-Cf3-koap.mjs.map +1 -1
  21. package/dist/mistral-BI9MdAO4.mjs.map +1 -1
  22. package/dist/nvidia-COHacuoa.mjs.map +1 -1
  23. package/dist/openai-C0nCfZUq.mjs.map +1 -1
  24. package/dist/openrouter-DSFzxKQb.mjs.map +1 -1
  25. package/dist/perplexity-zeZ2WlBU.mjs.map +1 -1
  26. package/dist/providers/alibaba.d.mts +1 -1
  27. package/dist/providers/amazon-bedrock.d.mts +1 -1
  28. package/dist/providers/anthropic.d.mts +1 -1
  29. package/dist/providers/cerebras.d.mts +1 -1
  30. package/dist/providers/cohere.d.mts +1 -1
  31. package/dist/providers/deepinfra.d.mts +1 -1
  32. package/dist/providers/deepseek.d.mts +1 -1
  33. package/dist/providers/fireworks-ai.d.mts +1 -1
  34. package/dist/providers/google-vertex.d.mts +1 -1
  35. package/dist/providers/google.d.mts +1 -1
  36. package/dist/providers/groq.d.mts +1 -1
  37. package/dist/providers/huggingface.d.mts +1 -1
  38. package/dist/providers/inception.d.mts +1 -1
  39. package/dist/providers/llama.d.mts +1 -1
  40. package/dist/providers/mistral.d.mts +1 -1
  41. package/dist/providers/nvidia.d.mts +1 -1
  42. package/dist/providers/openai.d.mts +1 -1
  43. package/dist/providers/openrouter.d.mts +1 -1
  44. package/dist/providers/perplexity.d.mts +1 -1
  45. package/dist/providers/togetherai.d.mts +1 -1
  46. package/dist/providers/xai.d.mts +1 -1
  47. package/dist/togetherai-BvcxUfPE.mjs.map +1 -1
  48. package/dist/{types-DjdaZckF.d.mts → types-DIzolT_s.d.mts} +61 -21
  49. package/dist/types-DIzolT_s.d.mts.map +1 -0
  50. package/dist/xai-fSuAkQJo.mjs.map +1 -1
  51. package/package.json +6 -3
  52. package/scripts/generate-models.ts +147 -56
  53. package/src/catalog/index.test.ts +8 -8
  54. package/src/catalog/index.ts +5 -1
  55. package/src/catalog/providers/alibaba.ts +91 -91
  56. package/src/catalog/providers/amazon-bedrock.ts +205 -185
  57. package/src/catalog/providers/anthropic.ts +87 -62
  58. package/src/catalog/providers/cerebras.ts +9 -9
  59. package/src/catalog/providers/cohere.ts +16 -16
  60. package/src/catalog/providers/deepinfra.ts +71 -71
  61. package/src/catalog/providers/deepseek.ts +3 -3
  62. package/src/catalog/providers/fireworks-ai.ts +36 -36
  63. package/src/catalog/providers/google-vertex.ts +62 -62
  64. package/src/catalog/providers/google.ts +69 -69
  65. package/src/catalog/providers/groq.ts +24 -24
  66. package/src/catalog/providers/huggingface.ts +52 -52
  67. package/src/catalog/providers/inception.ts +9 -9
  68. package/src/catalog/providers/index.ts +1 -0
  69. package/src/catalog/providers/llama.ts +7 -7
  70. package/src/catalog/providers/mistral.ts +60 -60
  71. package/src/catalog/providers/nvidia.ts +84 -84
  72. package/src/catalog/providers/openai.ts +115 -115
  73. package/src/catalog/providers/openrouter.ts +448 -433
  74. package/src/catalog/providers/perplexity.ts +9 -9
  75. package/src/catalog/providers/togetherai.ts +47 -47
  76. package/src/catalog/providers/xai.ts +49 -49
  77. package/src/catalog/types.ts +60 -20
  78. package/src/cost/calculate.test.ts +11 -11
  79. package/src/provider/registry.ts +21 -2
  80. package/src/provider/types.ts +1 -1
  81. package/tsconfig.json +2 -1
  82. package/tsdown.config.ts +7 -3
  83. package/dist/types-DjdaZckF.d.mts.map +0 -1
@@ -19,9 +19,9 @@ export const ANTHROPIC_MODELS = [
19
19
  name: "Claude Opus 4.5",
20
20
  provider: "anthropic",
21
21
  family: "claude-opus",
22
- pricing: { input: 0.000005, output: 0.000025, cacheRead: 5e-7, cacheWrite: 0.00000625 },
23
- contextWindow: 200000,
24
- maxOutput: 64000,
22
+ pricing: { input: 0.000_005, output: 0.000_025, cacheRead: 5e-7, cacheWrite: 0.000_006_25 },
23
+ contextWindow: 200_000,
24
+ maxOutput: 64_000,
25
25
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
26
26
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
27
27
  },
@@ -30,8 +30,8 @@ export const ANTHROPIC_MODELS = [
30
30
  name: "Claude Haiku 3.5 (latest)",
31
31
  provider: "anthropic",
32
32
  family: "claude-haiku",
33
- pricing: { input: 8e-7, output: 0.000004, cacheRead: 8e-8, cacheWrite: 0.000001 },
34
- contextWindow: 200000,
33
+ pricing: { input: 8e-7, output: 0.000_004, cacheRead: 8e-8, cacheWrite: 0.000_001 },
34
+ contextWindow: 200_000,
35
35
  maxOutput: 8192,
36
36
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
37
37
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -41,9 +41,14 @@ export const ANTHROPIC_MODELS = [
41
41
  name: "Claude Opus 4.1 (latest)",
42
42
  provider: "anthropic",
43
43
  family: "claude-opus",
44
- pricing: { input: 0.000015, output: 0.000075, cacheRead: 0.0000015, cacheWrite: 0.00001875 },
45
- contextWindow: 200000,
46
- maxOutput: 32000,
44
+ pricing: {
45
+ input: 0.000_015,
46
+ output: 0.000_075,
47
+ cacheRead: 0.000_001_5,
48
+ cacheWrite: 0.000_018_75,
49
+ },
50
+ contextWindow: 200_000,
51
+ maxOutput: 32_000,
47
52
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
48
53
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
49
54
  },
@@ -52,8 +57,8 @@ export const ANTHROPIC_MODELS = [
52
57
  name: "Claude Sonnet 3.5 v2",
53
58
  provider: "anthropic",
54
59
  family: "claude-sonnet",
55
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
56
- contextWindow: 200000,
60
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
61
+ contextWindow: 200_000,
57
62
  maxOutput: 8192,
58
63
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
59
64
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -63,8 +68,8 @@ export const ANTHROPIC_MODELS = [
63
68
  name: "Claude Sonnet 3",
64
69
  provider: "anthropic",
65
70
  family: "claude-sonnet",
66
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 3e-7 },
67
- contextWindow: 200000,
71
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 3e-7 },
72
+ contextWindow: 200_000,
68
73
  maxOutput: 4096,
69
74
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
70
75
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -74,9 +79,9 @@ export const ANTHROPIC_MODELS = [
74
79
  name: "Claude Opus 4.6",
75
80
  provider: "anthropic",
76
81
  family: "claude-opus",
77
- pricing: { input: 0.000005, output: 0.000025, cacheRead: 5e-7, cacheWrite: 0.00000625 },
78
- contextWindow: 1000000,
79
- maxOutput: 128000,
82
+ pricing: { input: 0.000_005, output: 0.000_025, cacheRead: 5e-7, cacheWrite: 0.000_006_25 },
83
+ contextWindow: 1_000_000,
84
+ maxOutput: 128_000,
80
85
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
81
86
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
82
87
  },
@@ -85,9 +90,9 @@ export const ANTHROPIC_MODELS = [
85
90
  name: "Claude Sonnet 4.6",
86
91
  provider: "anthropic",
87
92
  family: "claude-sonnet",
88
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
89
- contextWindow: 1000000,
90
- maxOutput: 64000,
93
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
94
+ contextWindow: 1_000_000,
95
+ maxOutput: 64_000,
91
96
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
92
97
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
93
98
  },
@@ -96,9 +101,9 @@ export const ANTHROPIC_MODELS = [
96
101
  name: "Claude Sonnet 4 (latest)",
97
102
  provider: "anthropic",
98
103
  family: "claude-sonnet",
99
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
100
- contextWindow: 200000,
101
- maxOutput: 64000,
104
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
105
+ contextWindow: 200_000,
106
+ maxOutput: 64_000,
102
107
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
103
108
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
104
109
  },
@@ -107,9 +112,14 @@ export const ANTHROPIC_MODELS = [
107
112
  name: "Claude Opus 4",
108
113
  provider: "anthropic",
109
114
  family: "claude-opus",
110
- pricing: { input: 0.000015, output: 0.000075, cacheRead: 0.0000015, cacheWrite: 0.00001875 },
111
- contextWindow: 200000,
112
- maxOutput: 32000,
115
+ pricing: {
116
+ input: 0.000_015,
117
+ output: 0.000_075,
118
+ cacheRead: 0.000_001_5,
119
+ cacheWrite: 0.000_018_75,
120
+ },
121
+ contextWindow: 200_000,
122
+ maxOutput: 32_000,
113
123
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
114
124
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
115
125
  },
@@ -118,9 +128,9 @@ export const ANTHROPIC_MODELS = [
118
128
  name: "Claude Sonnet 4.5",
119
129
  provider: "anthropic",
120
130
  family: "claude-sonnet",
121
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
122
- contextWindow: 200000,
123
- maxOutput: 64000,
131
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
132
+ contextWindow: 200_000,
133
+ maxOutput: 64_000,
124
134
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
125
135
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
126
136
  },
@@ -129,9 +139,14 @@ export const ANTHROPIC_MODELS = [
129
139
  name: "Claude Opus 4 (latest)",
130
140
  provider: "anthropic",
131
141
  family: "claude-opus",
132
- pricing: { input: 0.000015, output: 0.000075, cacheRead: 0.0000015, cacheWrite: 0.00001875 },
133
- contextWindow: 200000,
134
- maxOutput: 32000,
142
+ pricing: {
143
+ input: 0.000_015,
144
+ output: 0.000_075,
145
+ cacheRead: 0.000_001_5,
146
+ cacheWrite: 0.000_018_75,
147
+ },
148
+ contextWindow: 200_000,
149
+ maxOutput: 32_000,
135
150
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
136
151
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
137
152
  },
@@ -140,8 +155,8 @@ export const ANTHROPIC_MODELS = [
140
155
  name: "Claude Haiku 3.5",
141
156
  provider: "anthropic",
142
157
  family: "claude-haiku",
143
- pricing: { input: 8e-7, output: 0.000004, cacheRead: 8e-8, cacheWrite: 0.000001 },
144
- contextWindow: 200000,
158
+ pricing: { input: 8e-7, output: 0.000_004, cacheRead: 8e-8, cacheWrite: 0.000_001 },
159
+ contextWindow: 200_000,
145
160
  maxOutput: 8192,
146
161
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
147
162
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -151,8 +166,8 @@ export const ANTHROPIC_MODELS = [
151
166
  name: "Claude Sonnet 3.5",
152
167
  provider: "anthropic",
153
168
  family: "claude-sonnet",
154
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
155
- contextWindow: 200000,
169
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
170
+ contextWindow: 200_000,
156
171
  maxOutput: 8192,
157
172
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
158
173
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -162,9 +177,9 @@ export const ANTHROPIC_MODELS = [
162
177
  name: "Claude Sonnet 3.7 (latest)",
163
178
  provider: "anthropic",
164
179
  family: "claude-sonnet",
165
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
166
- contextWindow: 200000,
167
- maxOutput: 64000,
180
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
181
+ contextWindow: 200_000,
182
+ maxOutput: 64_000,
168
183
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
169
184
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
170
185
  },
@@ -173,9 +188,9 @@ export const ANTHROPIC_MODELS = [
173
188
  name: "Claude Sonnet 3.7",
174
189
  provider: "anthropic",
175
190
  family: "claude-sonnet",
176
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
177
- contextWindow: 200000,
178
- maxOutput: 64000,
191
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
192
+ contextWindow: 200_000,
193
+ maxOutput: 64_000,
179
194
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
180
195
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
181
196
  },
@@ -184,8 +199,8 @@ export const ANTHROPIC_MODELS = [
184
199
  name: "Claude Haiku 3",
185
200
  provider: "anthropic",
186
201
  family: "claude-haiku",
187
- pricing: { input: 2.5e-7, output: 0.00000125, cacheRead: 3e-8, cacheWrite: 3e-7 },
188
- contextWindow: 200000,
202
+ pricing: { input: 2.5e-7, output: 0.000_001_25, cacheRead: 3e-8, cacheWrite: 3e-7 },
203
+ contextWindow: 200_000,
189
204
  maxOutput: 4096,
190
205
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
191
206
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -195,9 +210,9 @@ export const ANTHROPIC_MODELS = [
195
210
  name: "Claude Haiku 4.5",
196
211
  provider: "anthropic",
197
212
  family: "claude-haiku",
198
- pricing: { input: 0.000001, output: 0.000005, cacheRead: 1e-7, cacheWrite: 0.00000125 },
199
- contextWindow: 200000,
200
- maxOutput: 64000,
213
+ pricing: { input: 0.000_001, output: 0.000_005, cacheRead: 1e-7, cacheWrite: 0.000_001_25 },
214
+ contextWindow: 200_000,
215
+ maxOutput: 64_000,
201
216
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
202
217
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
203
218
  },
@@ -206,9 +221,9 @@ export const ANTHROPIC_MODELS = [
206
221
  name: "Claude Haiku 4.5 (latest)",
207
222
  provider: "anthropic",
208
223
  family: "claude-haiku",
209
- pricing: { input: 0.000001, output: 0.000005, cacheRead: 1e-7, cacheWrite: 0.00000125 },
210
- contextWindow: 200000,
211
- maxOutput: 64000,
224
+ pricing: { input: 0.000_001, output: 0.000_005, cacheRead: 1e-7, cacheWrite: 0.000_001_25 },
225
+ contextWindow: 200_000,
226
+ maxOutput: 64_000,
212
227
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
213
228
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
214
229
  },
@@ -217,9 +232,9 @@ export const ANTHROPIC_MODELS = [
217
232
  name: "Claude Opus 4.5 (latest)",
218
233
  provider: "anthropic",
219
234
  family: "claude-opus",
220
- pricing: { input: 0.000005, output: 0.000025, cacheRead: 5e-7, cacheWrite: 0.00000625 },
221
- contextWindow: 200000,
222
- maxOutput: 64000,
235
+ pricing: { input: 0.000_005, output: 0.000_025, cacheRead: 5e-7, cacheWrite: 0.000_006_25 },
236
+ contextWindow: 200_000,
237
+ maxOutput: 64_000,
223
238
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
224
239
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
225
240
  },
@@ -228,8 +243,13 @@ export const ANTHROPIC_MODELS = [
228
243
  name: "Claude Opus 3",
229
244
  provider: "anthropic",
230
245
  family: "claude-opus",
231
- pricing: { input: 0.000015, output: 0.000075, cacheRead: 0.0000015, cacheWrite: 0.00001875 },
232
- contextWindow: 200000,
246
+ pricing: {
247
+ input: 0.000_015,
248
+ output: 0.000_075,
249
+ cacheRead: 0.000_001_5,
250
+ cacheWrite: 0.000_018_75,
251
+ },
252
+ contextWindow: 200_000,
233
253
  maxOutput: 4096,
234
254
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
235
255
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -239,9 +259,9 @@ export const ANTHROPIC_MODELS = [
239
259
  name: "Claude Sonnet 4.5 (latest)",
240
260
  provider: "anthropic",
241
261
  family: "claude-sonnet",
242
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
243
- contextWindow: 200000,
244
- maxOutput: 64000,
262
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
263
+ contextWindow: 200_000,
264
+ maxOutput: 64_000,
245
265
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
246
266
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
247
267
  },
@@ -250,9 +270,9 @@ export const ANTHROPIC_MODELS = [
250
270
  name: "Claude Sonnet 4",
251
271
  provider: "anthropic",
252
272
  family: "claude-sonnet",
253
- pricing: { input: 0.000003, output: 0.000015, cacheRead: 3e-7, cacheWrite: 0.00000375 },
254
- contextWindow: 200000,
255
- maxOutput: 64000,
273
+ pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 3e-7, cacheWrite: 0.000_003_75 },
274
+ contextWindow: 200_000,
275
+ maxOutput: 64_000,
256
276
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
257
277
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
258
278
  },
@@ -261,9 +281,14 @@ export const ANTHROPIC_MODELS = [
261
281
  name: "Claude Opus 4.1",
262
282
  provider: "anthropic",
263
283
  family: "claude-opus",
264
- pricing: { input: 0.000015, output: 0.000075, cacheRead: 0.0000015, cacheWrite: 0.00001875 },
265
- contextWindow: 200000,
266
- maxOutput: 32000,
284
+ pricing: {
285
+ input: 0.000_015,
286
+ output: 0.000_075,
287
+ cacheRead: 0.000_001_5,
288
+ cacheWrite: 0.000_018_75,
289
+ },
290
+ contextWindow: 200_000,
291
+ maxOutput: 32_000,
267
292
  modalities: { input: ["text", "image", "pdf"], output: ["text"] },
268
293
  capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
269
294
  },
@@ -19,9 +19,9 @@ export const CEREBRAS_MODELS = [
19
19
  name: "Qwen 3 235B Instruct",
20
20
  provider: "cerebras",
21
21
  family: "qwen",
22
- pricing: { input: 6e-7, output: 0.0000012 },
23
- contextWindow: 131000,
24
- maxOutput: 32000,
22
+ pricing: { input: 6e-7, output: 0.000_001_2 },
23
+ contextWindow: 131_000,
24
+ maxOutput: 32_000,
25
25
  modalities: { input: ["text"], output: ["text"] },
26
26
  capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
27
27
  },
@@ -31,8 +31,8 @@ export const CEREBRAS_MODELS = [
31
31
  provider: "cerebras",
32
32
  family: "gpt-oss",
33
33
  pricing: { input: 2.5e-7, output: 6.9e-7 },
34
- contextWindow: 131072,
35
- maxOutput: 32768,
34
+ contextWindow: 131_072,
35
+ maxOutput: 32_768,
36
36
  modalities: { input: ["text"], output: ["text"] },
37
37
  capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
38
38
  },
@@ -42,7 +42,7 @@ export const CEREBRAS_MODELS = [
42
42
  provider: "cerebras",
43
43
  family: "llama",
44
44
  pricing: { input: 1e-7, output: 1e-7 },
45
- contextWindow: 32000,
45
+ contextWindow: 32_000,
46
46
  maxOutput: 8000,
47
47
  modalities: { input: ["text"], output: ["text"] },
48
48
  capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
@@ -52,9 +52,9 @@ export const CEREBRAS_MODELS = [
52
52
  name: "Z.AI GLM-4.7",
53
53
  provider: "cerebras",
54
54
  family: "",
55
- pricing: { input: 0.00000225, output: 0.00000275 },
56
- contextWindow: 131072,
57
- maxOutput: 40000,
55
+ pricing: { input: 0.000_002_25, output: 0.000_002_75 },
56
+ contextWindow: 131_072,
57
+ maxOutput: 40_000,
58
58
  modalities: { input: ["text"], output: ["text"] },
59
59
  capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
60
60
  },
@@ -20,7 +20,7 @@ export const COHERE_MODELS = [
20
20
  provider: "cohere",
21
21
  family: "",
22
22
  pricing: { input: 0, output: 0 },
23
- contextWindow: 128000,
23
+ contextWindow: 128_000,
24
24
  maxOutput: 4000,
25
25
  modalities: { input: ["text"], output: ["text"] },
26
26
  capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
@@ -30,8 +30,8 @@ export const COHERE_MODELS = [
30
30
  name: "Command A",
31
31
  provider: "cohere",
32
32
  family: "command-a",
33
- pricing: { input: 0.0000025, output: 0.00001 },
34
- contextWindow: 256000,
33
+ pricing: { input: 0.000_002_5, output: 0.000_01 },
34
+ contextWindow: 256_000,
35
35
  maxOutput: 8000,
36
36
  modalities: { input: ["text"], output: ["text"] },
37
37
  capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
@@ -42,7 +42,7 @@ export const COHERE_MODELS = [
42
42
  provider: "cohere",
43
43
  family: "command-r",
44
44
  pricing: { input: 3.75e-8, output: 1.5e-7 },
45
- contextWindow: 128000,
45
+ contextWindow: 128_000,
46
46
  maxOutput: 4000,
47
47
  modalities: { input: ["text"], output: ["text"] },
48
48
  capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
@@ -52,7 +52,7 @@ export const COHERE_MODELS = [
52
52
  name: "Command A Translate",
53
53
  provider: "cohere",
54
54
  family: "command-a",
55
- pricing: { input: 0.0000025, output: 0.00001 },
55
+ pricing: { input: 0.000_002_5, output: 0.000_01 },
56
56
  contextWindow: 8000,
57
57
  maxOutput: 8000,
58
58
  modalities: { input: ["text"], output: ["text"] },
@@ -64,7 +64,7 @@ export const COHERE_MODELS = [
64
64
  provider: "cohere",
65
65
  family: "command-r",
66
66
  pricing: { input: 1.5e-7, output: 6e-7 },
67
- contextWindow: 128000,
67
+ contextWindow: 128_000,
68
68
  maxOutput: 4000,
69
69
  modalities: { input: ["text"], output: ["text"] },
70
70
  capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
@@ -74,8 +74,8 @@ export const COHERE_MODELS = [
74
74
  name: "Command R+",
75
75
  provider: "cohere",
76
76
  family: "command-r",
77
- pricing: { input: 0.0000025, output: 0.00001 },
78
- contextWindow: 128000,
77
+ pricing: { input: 0.000_002_5, output: 0.000_01 },
78
+ contextWindow: 128_000,
79
79
  maxOutput: 4000,
80
80
  modalities: { input: ["text"], output: ["text"] },
81
81
  capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
@@ -85,9 +85,9 @@ export const COHERE_MODELS = [
85
85
  name: "Command A Reasoning",
86
86
  provider: "cohere",
87
87
  family: "command-a",
88
- pricing: { input: 0.0000025, output: 0.00001 },
89
- contextWindow: 256000,
90
- maxOutput: 32000,
88
+ pricing: { input: 0.000_002_5, output: 0.000_01 },
89
+ contextWindow: 256_000,
90
+ maxOutput: 32_000,
91
91
  modalities: { input: ["text"], output: ["text"] },
92
92
  capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
93
93
  },
@@ -108,7 +108,7 @@ export const COHERE_MODELS = [
108
108
  provider: "cohere",
109
109
  family: "",
110
110
  pricing: { input: 0, output: 0 },
111
- contextWindow: 16000,
111
+ contextWindow: 16_000,
112
112
  maxOutput: 4000,
113
113
  modalities: { input: ["text", "image"], output: ["text"] },
114
114
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -119,7 +119,7 @@ export const COHERE_MODELS = [
119
119
  provider: "cohere",
120
120
  family: "",
121
121
  pricing: { input: 0, output: 0 },
122
- contextWindow: 16000,
122
+ contextWindow: 16_000,
123
123
  maxOutput: 4000,
124
124
  modalities: { input: ["text", "image"], output: ["text"] },
125
125
  capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
@@ -130,7 +130,7 @@ export const COHERE_MODELS = [
130
130
  provider: "cohere",
131
131
  family: "command-r",
132
132
  pricing: { input: 3.75e-8, output: 1.5e-7 },
133
- contextWindow: 128000,
133
+ contextWindow: 128_000,
134
134
  maxOutput: 4000,
135
135
  modalities: { input: ["text"], output: ["text"] },
136
136
  capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
@@ -140,8 +140,8 @@ export const COHERE_MODELS = [
140
140
  name: "Command A Vision",
141
141
  provider: "cohere",
142
142
  family: "command-a",
143
- pricing: { input: 0.0000025, output: 0.00001 },
144
- contextWindow: 128000,
143
+ pricing: { input: 0.000_002_5, output: 0.000_01 },
144
+ contextWindow: 128_000,
145
145
  maxOutput: 8000,
146
146
  modalities: { input: ["text", "image"], output: ["text"] },
147
147
  capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },