xAI's most advanced flagship model released March 2026 with 2M token context window. Features extended reasoning, multi-agent collaboration, and function calling capabilities. Supports cached input at $0.20/M tokens with 50% batch discount.
- xAI's most advanced model with 2M token context window for comprehensive document and codebase analysis
- Extended reasoning capabilities with deep thinking for complex multi-step problem solving
- Multi-agent variant available for collaborative AI workflows with 4 specialized agents
- Function calling, structured output, and image input support for versatile applications
- Cached input pricing at $0.20/M tokens enabling cost-effective long-context processing
Web Search
Search the web and X for real-time info.
JSON Mode
Output responses in valid JSON format.
Code Execution
Run Python code to compute and analyze.
Model Information
Supported Formats
xAI's latest flagship model released April 30, 2026, leading the industry in non-hallucination rate, agentic tool calling, and instruction following. Features 1M token context window with cached input at $0.20/M and supports function calling, structured outputs, image understanding, and live search.
Coding-specialized model optimized for software engineering tasks with 256K context window. Priced at $1.00 input / $2.00 output per 1M tokens - 20% cheaper than Grok 4.3 for code-focused workflows. Ideal for agentic coding, refactors, and large codebase analysis.
Non-reasoning variant of Grok 4.20 optimized for fast, direct responses without extended deliberation. Same 1M context window and image understanding as the reasoning variant, ideal for high-throughput workloads where step-by-step thinking is not required.