Skip to content

Commit 125c76c

Browse files
steebchenclaude
andauthored
feat: add Grok 4.1 model support (#1185)
Co-authored-by: Claude <[email protected]>
1 parent 028873f commit 125c76c

File tree

1 file changed

+42
-0
lines changed
  • packages/models/src/models

1 file changed

+42
-0
lines changed

packages/models/src/models/xai.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,46 @@ export const xaiModels = [
241241
},
242242
],
243243
},
244+
{
245+
id: "grok-4-1-fast-reasoning",
246+
name: "Grok 4.1 Fast Reasoning",
247+
family: "xai",
248+
providers: [
249+
{
250+
providerId: "xai",
251+
modelName: "grok-4-1-fast-reasoning",
252+
inputPrice: 3.0 / 1e6,
253+
outputPrice: 15.0 / 1e6,
254+
requestPrice: 0,
255+
imageInputPrice: undefined,
256+
contextSize: 256000,
257+
maxOutput: undefined,
258+
streaming: true,
259+
vision: true,
260+
tools: true,
261+
jsonOutput: true,
262+
},
263+
],
264+
},
265+
{
266+
id: "grok-4-1-fast-non-reasoning",
267+
name: "Grok 4.1 Fast Non-Reasoning",
268+
family: "xai",
269+
providers: [
270+
{
271+
providerId: "xai",
272+
modelName: "grok-4-1-fast-non-reasoning",
273+
inputPrice: 3.0 / 1e6,
274+
outputPrice: 15.0 / 1e6,
275+
requestPrice: 0,
276+
imageInputPrice: undefined,
277+
contextSize: 2_000_000,
278+
maxOutput: undefined,
279+
streaming: true,
280+
vision: true,
281+
tools: true,
282+
jsonOutput: true,
283+
},
284+
],
285+
},
244286
] as const satisfies ModelDefinition[];

0 commit comments

Comments
 (0)