xAI: Grok 4

File input Text input Image input Text output
Author's Description

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...

Key Specifications
Cost
$$$$$
Context
256K
Released
Jul 09, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Seed Tools Structured Outputs Top P Logprobs Response Format Reasoning Temperature Include Reasoning Tool Choice Max Tokens Top Logprobs
Features

This model supports the following features:

Structured Outputs Response Format Tools Reasoning
Performance Summary

Grok 4, xAI's latest reasoning model, demonstrates exceptional reliability with a 100% success rate across all benchmarks, indicating consistent and usable responses. However, its speed performance tends to be slower, ranking in the 16th percentile, and it is positioned at premium pricing levels, ranking in the 2nd percentile. The model exhibits outstanding accuracy in several critical areas. It achieved perfect scores in Hallucinations, General Knowledge, Email Classification, and Reasoning, highlighting its strong foundational understanding and logical processing capabilities. Notably, it is the most accurate model at its price point and among models of similar speed for these categories. Grok 4 also performs very well in Coding (93.0% accuracy) and Mathematics (94.5% accuracy), placing it in the 78th and 85th percentiles respectively, despite the high cost associated with these tasks. Its Instruction Following accuracy is solid at 78.0%. The primary weakness appears to be its high cost and longer response times, particularly for complex tasks like Mathematics and Coding.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $3
Completion $15
Input Cache Read $0.75
Web Search $5000

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
xAI
xAI | x-ai/grok-4-07-09 256K $3 / 1M tokens $15 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Strategy Free Executions Accuracy Cost Duration
Other Models by x-ai