xAI Provider

xAI's Grok large language models

Data & Privacy

HQ:US
API Training:No
Consumer Training:No
Prompt Logging:Yes
Retention:30 days
GDPR:Compliant
SOC2:Type II Certified

Available Models

Grok STT 1.0

xai
grok-stt-1-0
xAI
Context:
Input
$0
/M tokens
Cached
/M tokens
Output
$0
/M tokens

Grok 4.5

xai
grok-4-5
Streaming
Vision
Tools
Reasoning
JSON Output
xAI
Context: 500k
Input
$2
/M tokens
Cached
$0.5
/M tokens
Output
$6
/M tokens

Grok Imagine Video 1.5

xai
grok-imagine-video-1-5
Vision
xAI
Context: 2k
Per Second Pricing
Default$0.14/sec

Grok Imagine Video 1.5 Preview

xai
grok-imagine-video-1-5-preview
Vision
xAI
Context: 2k
Per Second Pricing
Default$0.14/sec

Grok Build 0.1

xai
grok-build-0-1
Streaming
Vision
Tools
Reasoning
JSON Output
xAI
Context: 256k
Input
$1
/M tokens
Cached
$0.2
/M tokens
Output
$2
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤200K tokens
$1
$0.2
$2
>200K tokens
$2
$0.4
$4

Grok 4.3

xai
grok-4-3
Streaming
Vision
Tools
Reasoning
JSON Output
xAI
Context: 1M
Input
$1.25
/M tokens
Cached
$0.3125
/M tokens
Output
$2.5
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤200K tokens
$1.25
$0.3125
$2.5
>200K tokens
$2.5
$0
$5

Grok 4.20 Beta Reasoning (0309)

xai
grok-4-20-beta-0309-reasoning
Streaming
Vision
Tools
Reasoning
JSON Output
xAI
Context: 2M
Input
$2
/M tokens
Cached
$0.2
/M tokens
Output
$6
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤200K tokens
$2
$0.2
$6
>200K tokens
$4
$0.4
$12

Grok 4.20 Beta Non-Reasoning (0309)

xai
grok-4-20-beta-0309-non-reasoning
Streaming
Vision
Tools
JSON Output
xAI
Context: 2M
Input
$2
/M tokens
Cached
$0.2
/M tokens
Output
$6
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤200K tokens
$2
$0.2
$6
>200K tokens
$4
$0.4
$12

Grok Imagine Image

xai
grok-imagine-image
Vision
Image Generation
xAI
Context: 2k
Input
$0
/M tokens
Cached
/M tokens
Output
$0
/M tokens

Grok 4

xaiPremium
grok-4
Streaming
Vision
Tools
Reasoning
JSON Output
xAI
Context: 256k
Input
$3
/M tokens
Cached
$0.75
/M tokens
Output
$15
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤128K tokens
$3
$0.75
$15
>128K tokens
$6
$0
$30