Pashpashpash/grok 4 (#4793)

* grok 4

* numbers
This commit is contained in:
pashpashpash authored and GitHub committed 2025-07-09 23:36:06 -07:00
1 parent c724edd118
commit 192cd2602e
1 file changed
+9 -1
+9 -1
View File
@@ -2086,8 +2086,16 @@ export const nebiusDefaultModelId = "Qwen/Qwen2.5-32B-Instruct-fast" satisfies N
// X AI
// https://docs.x.ai/docs/api-reference
export type XAIModelId = keyof typeof xaiModels
export const xaiDefaultModelId: XAIModelId = "grok-3"
export const xaiDefaultModelId: XAIModelId = "grok-4"
export const xaiModels = {
"grok-4": {
maxTokens: 8192,
contextWindow: 262144,
supportsImages: true,
supportsPromptCache: true,
inputPrice: 3.0, // will have different pricing for long context vs short context
outputPrice: 6.0,
},
"grok-3-beta": {
maxTokens: 8192,
contextWindow: 131072,