All models
xAI

Grok 4

Grok 4 — xAI flagship with 2M context, vision, and advanced reasoning.

grok-4

List pricing

—
Input
$2 / 1,000,000 tokens
Output
$6 / 1,000,000 tokens
Cache read
$0.2 / 1,000,000 tokens
How pricing works

Discount history

No discount history yet.

Model details

Input
text, image
Output
text
Context window
2,000,000 tokens
Maximum output
128,000 tokens
Availability
Unknown
Updated
11/8/2026, 3:58:06 AM UTC

Capacity is reserved when your request is accepted.

Capabilities

ChatStreamingTool callingVisionReasoning

Supported parameters

include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_p