From d277ecde7ce7c7766a570a019dbcec732ab638f5 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Mon, 27 Oct 2025 17:24:37 -0500 Subject: [PATCH] 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 --- packages/types/src/providers/xai.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/types/src/providers/xai.ts b/packages/types/src/providers/xai.ts index d3cdb33f8e..ae078c7afa 100644 --- a/packages/types/src/providers/xai.ts +++ b/packages/types/src/providers/xai.ts @@ -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,