Grok 4
xAI's flagship premium model, positioned as the highest-capability lane in the Grok API.
Pricing
Input$3 / 1M
Cached inputSee docs
Output$15 / 1M
Large-context requests are priced at $6 input and $30 output per 1M tokens.
Cost bandPremium
Free tierNo free API tier.
Limits
Context window256k
Max outputSee docs
Knowledge cutoffNot surfaced in pricing page
DeploymentxAI API
OpenAI-compatible APIYes
ModalitiesText
Where it fits
Best forPremium Grok users who want top model quality over cost efficiency.
Business fitMore expensive than Grok 4.1 Fast, so it needs a strong quality reason to justify default use.
Capabilities
ReasoningTool useSearchX search
Benchmark scores
Composite90 / 100
Coding92 / 100 (SWE-bench Verified)
Reasoning94 / 100 (GPQA Diamond)
Long context86 / 100 (RULER 256K)
Vision80 / 100 (MMMU)
Instruction following88 / 100 (IFEval)
Editorial aggregate of published benchmark results as of Dec 1, 2025. These are not independent measurements run by this site.
Change history
- Jul 19, 2026DeprecatedGrok 4 retired No longer listed on xAI's model and pricing pages as of Jul 19, 2026. Current xAI lineup: Grok 4.5, 4.3, and 4.20. xAI models and pricing
Data
Last checkedMar 31, 2026
Verify with provider documentation before committing spend. Report an error and it gets fixed with a logged correction.