AIModelsTester
X-aitext+image->text

xAI: Grok 4

Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not exposed, reasoning cannot be disabled, and the reasoning effort cannot be specified. Pricing increases once the total tokens in a given request is greater than 128k tokens. See more details on the [xAI docs](https://docs.x.ai/docs/models/grok-4-0709)

Context Window

256K

Input Price

$3.00/M tokens

Output Price

$15.00/M tokens

Modality

text+image->text

Pricing Breakdown
Cost per million tokens for input and output
Input$3.00/M tokens
Output$15.00/M tokens

Cost Example: Processing 10,000 input tokens and generating 1,000 output tokens would cost approximately $0.045000

Context Window Size
Maximum tokens the model can process in a single request
Context Window256K tokens
26% of 1M max

~192K

Words Equivalent

~128

Pages of Text

~2560

Code Functions

Best Use Cases
What this model excels at
MathReasoningAnalysisVisionImage-analysisMultimodal

Ready to Test xAI: Grok 4?

Use our free AI Models Tester to compare xAI: Grok 4 with other models side-by-side using your own prompts. See real results instantly.