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
This commit is contained in:
daniel-lxs 2025-10-27 17:24:37 -05:00
parent a02a0e7db9
commit d277ecde7c
No known key found for this signature in database
GPG key ID: 21C74479048B3AA6

View file

@ -29,13 +29,13 @@ export const xaiModels = {
description: "xAI's Grok-4 model with 256K context window",
},
"grok-4-fast": {
maxTokens: 30_000,
maxTokens: 8192,
contextWindow: 2_000_000,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 1.0,
outputPrice: 5.0,
description: "xAI's Grok-4 Fast model with 2M context window and SOTA cost-efficiency",
inputPrice: 0.2,
outputPrice: 0.5,
description: "xAI's Grok-4 Fast model with 2M context window",
},
"grok-3": {
maxTokens: 8192,