Grok 4 is xAI's full-scale Grok 4 reasoning model, released July 9, 2025. It represents a generational advancement over Grok 3, with substantial improvements in reasoning depth, instruction following, and scores on published benchmarks. The model builds on xAI's Colossus training infrastructure.
Grok 4 targets tasks that need extended multi-step reasoning, including competition-level mathematics, graduate-level science questions, and complex software engineering challenges. It produces detailed chain-of-thought traces you can inspect, which suits workflows where you need to verify reasoning steps.
The model supports a context window of 256K tokens and up to 256K tokens per response. It's available through Vercel AI Gateway at $3.0 per million input tokens and $15.0 per million output tokens. For lower latency, the Grok 4 Fast variants offer speed-optimized alternatives.