Grok 4

by xAI

Grok 4 is xAI's flagship model from its July 2025 release, bringing improved reasoning depth and tool use compared to Grok 3. It accepts both text and image input across a 256k token context window, with native integration for web search and external tool invocation, making it strong for agentic systems that need grounding in current data. The model treats tool use as a first-class feature, letting developers build multi-step agents that invoke APIs, run code, and access external data sources. It handles complex reasoning, multimodal analysis, and tasks that need both accuracy and live context. Grok 4 was trained with reinforcement learning at scale on xAI's Colossus cluster. It balances reasoning power with practical performance, positioning it for production agentic applications where reliability matters alongside capability.

Key info

Input
Output
Features
Context window
256K
Max output
16K

Benchmarks

Independent benchmark scores — composite indices for reasoning, coding, and math, plus individual eval scores where available.

Intelligence Index22.5
Math Index92.7
Reasoning & knowledge
MMLU-Pro
87%
GPQA Diamond
88%
Humanity's Last Exam
27%
Long-context reasoning
68%
Coding
LiveCodeBench
82%
Agentic & tool use
Terminal-Bench Hard
38%
τ²-Bench Telecom
75%
Math & instruction following
AIME 2025
93%
IFBench
54%

Available routes

No routes currently available — Grok 4 isn't routed through the Opper gateway right now. It may return.

Contact us about this model →

Available models from xAI

Start building with 700+ models

One API key for every major provider, up and running in minutes.

Get startedView Documentation