Skip to content

Commit d277ecd

Browse files
committed
fix: correct Grok-4-Fast pricing and maxTokens according to official xAI specs
- Fix inputPrice from .0 to /bin/sh.20 per million tokens - Fix outputPrice from .0 to /bin/sh.50 per million tokens - Update maxTokens from 30,000 to 8,192 (matching grok-4, as xAI doesn't publish max output limit) - Remove subjective 'SOTA cost-efficiency' wording from description
1 parent a02a0e7 commit d277ecd

File tree

1 file changed

+4
-4
lines changed
  • packages/types/src/providers

1 file changed

+4
-4
lines changed

packages/types/src/providers/xai.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export const xaiModels = {
2929
description: "xAI's Grok-4 model with 256K context window",
3030
},
3131
"grok-4-fast": {
32-
maxTokens: 30_000,
32+
maxTokens: 8192,
3333
contextWindow: 2_000_000,
3434
supportsImages: false,
3535
supportsPromptCache: false,
36-
inputPrice: 1.0,
37-
outputPrice: 5.0,
38-
description: "xAI's Grok-4 Fast model with 2M context window and SOTA cost-efficiency",
36+
inputPrice: 0.2,
37+
outputPrice: 0.5,
38+
description: "xAI's Grok-4 Fast model with 2M context window",
3939
},
4040
"grok-3": {
4141
maxTokens: 8192,

0 commit comments

Comments
 (0)