Skip to main content
First party

xAI

xAI is a First party provider with 8 models across 8 offerings.

Access

SDK
@ai-sdk/xai
Environment variables
XAI_API_KEY

Models

List view / Table view

8 of 8 model versions

ModelFamilyProvider model IDProtocolStreamingOrganizationContextMax outputInputOutputReasoningTool callStructuredTemperatureWeightsPriceReleasedUpdated
Grok 4.5
xai/grok-4.5
XAxAIGrok
grok-4.5
Custom
Yes
500K500K
YesYesYesYesClosed
input $2/M · output $6/M
cache read $0.3/M
2026-07-082026-08-06
Grok Imagine Video 1.5
xai/grok-imagine-video-1.5
XAxAIGrok
grok-imagine-video-1.5
Custom
Yes
1K-
-No-No-No-NoClosed
input $0.01/image · output $0.08/video second
2026-05-302026-05-30
Grok 4.3
xai/grok-4.3
XAxAIGrok
grok-4.3
Custom
Yes
1M30K
YesYesYesYesClosed
input $1.25/M · output $2.5/M
cache read $0.2/M
2026-04-172026-06-11
Grok Build 0.1
xai/grok-build-0.1
XAxAIGrok Build
grok-build-0.1
Custom
Yes
256K256K
YesYesYesYesClosed
input $1/M · output $2/M
cache read $0.2/M
2026-04-162026-06-11
Grok 4.20
xai/grok-4.20
XAxAIGrok
grok-4.20
Custom
Yes
2M-
YesYesYesYesClosedPricing unavailable2026-03-312026-03-31
Grok 4.20 Multi-Agent
xai/grok-4.20-multi-agent
XAxAIGrok
grok-4.20-multi-agent
Custom
Yes
2M-
Yes-NoYesYesClosedPricing unavailable2026-03-312026-03-31
Grok 4.20 (Non-Reasoning)
xai/grok-4.20-0309-non-reasoning
XAxAIGrok
grok-4.20-0309-non-reasoning
Custom
Yes
1M30K
-NoYesYesYesClosed
input $1.25/M · output $2.5/M
cache read $0.2/M
2026-03-092026-03-09
Grok 4.20 (Reasoning)
xai/grok-4.20-0309-reasoning
XAxAIGrok
grok-4.20-0309-reasoning
Custom
Yes
1M30K
YesYesYesYesClosed
input $1.25/M · output $2.5/M
cache read $0.2/M
2026-03-092026-03-09

FAQ