xAI's most intelligent and fastest flagship model, succeeding Grok 4.3. Recommended for code and chat tasks with a 500,000-token context window, image understanding, and live search integration. Knowledge cutoff February 1, 2026.
- Most intelligent and fastest xAI model, recommended for code and chat tasks over Grok 4.3.
- 500,000-token context window with tiered pricing above 200K tokens.
- Native function calling, live search via web/X integration, and image understanding.
- Image input support accepting JPEG/PNG up to 20MiB each.
- Pricing is $2.00 per 1M input tokens and $6.00 per 1M output tokens (up to 200K tokens).
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.
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.