Grok 4

Released
2025-07-09
Last refreshed
2026-10-27
Status
Researched 13d ago
DeprecatedProprietaryCommercial use: restrictedMultimodalCodingRAGAgentsLong contextVisionClassificationJSON / Tool use

Grok 4 is a legacy integration reference; evaluate Grok 4.7 before starting new work.

xAI releases · 19 in the last 12 months · this family litChangelog →
Specifications
Family
Grok 4
Released
2025-07-09
Lifecycle
Retired May 15, 2026
Context
256K
Architecture
Decoder Only
Specialization
general
Openness
Proprietary
License
ProprietaryRestricted
Weights
Not released
Code
Unknown
Training
Pretrained
Created by

Developer of the Grok models

San Francisco, California, United States
Founded 2023
Website
Pricing
Output / 1M
$15.00
Input / 1M
$3.00

Cheapest of 1 route · Microsoft Foundry

This model is deprecated. xAI recommends switching to Grok 4.7.

About

Original Grok 4 API model (grok-4-0709) with 256K context, reasoning, text and image input, function calling, structured outputs, live browsing, and code execution support. xAI lists May 15, 2026 as the API retirement date for this model; new integrations should use Grok 4.3.

Providers(1)

Compare API pricing across 1 tracked provider route for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MRoute
Microsoft Foundry$3.00$15.00
ServerlessProvisioned

Deprecated provider routes(3)

ProviderStatusCatalog ID
OpenRouter
Deprecated
x-ai/grok-4
Replicate API
Deprecated
—
xAI Console
DeprecatedRetired May 15, 2026
grok-4-0709

Available via routers & gateways(6)

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt Caching

Benchmark peer barsfor Coding

Benchmark scores(12)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionEvaluationSource
79.6Aider polyglot, high reasoning, 225 testsObserved 2026-07-01—
87.0—Observed 2026-04-14—
76.7SWE-bench VerifiedObserved 2026-04-24—
78.9τ-benchObserved 2026-04-24—
87.5GPQA Diamond pass@1, base Grok 4Observed 2026-07-01—
91.7AIME 2025 no tools, pass@1, base Grok 4Observed 2026-07-01—
25.4Humanity's Last Exam no tools, pass@1, base Grok 4Observed 2026-07-01—
79.0LiveCodeBench Jan-May, pass@1, base Grok 4Observed 2026-07-01—
15.9ARC-AGI-2 / ARC-AGI V2, base Grok 4Observed 2026-07-01—
63.0v4Observed 2026-10-26
Configuration: Grok-4-0709 (Prompt)
Harness: BFCL V4 official evaluation (gorilla berkeley-function-call-leaderboard), Prompt mode
Evaluator: Gorilla LLM team (UC Berkeley)
Confidence: confirmed
Notes: BFCL V4 leaderboard (Last Updated 2026-04-12), entry 'Grok-4-0709 (Prompt)': rank 9, Overall Acc 62.97%; Multi Turn 47.00%, Web Search 74.00%, Memory 50.54%, Non-Live AST 82.75%, Live 72.54%, Irrelevance 84.30%. Retrieved 2026-10-26.
1184.0vision_style_control overall 2026-10-19 (style control, default view)Observed 2026-10-26
Configuration: Grok 4 (0709)
Harness: LMArena blind pairwise human votes, Bradley-Terry
Evaluator: LMArena
Confidence: confirmed
Notes: LMArena vision style control leaderboard, overall category, published 2026-10-19 (HF lmarena-ai/leaderboard-dataset @9761a3ce, latest split; live page https://lmarena.ai/leaderboard/vision showed the same 2026-10-19 snapshot). Board entry 'Grok 4 (0709)': rank 105, Arena Score 1184.2 (95% CI 1176.8-1191.6), 30173 votes. Versioned arena label mapped to catalog slug grok-4 (label date equals the model's release checkpoint). Retrieved 2026-10-26.
Source

Source: LMArena (lmarena.ai), CC BY 4.0

1397.0text creative_writing 2026-10-22Observed 2026-10-22
Configuration: Grok 4 (0709)
Harness: LMArena blind pairwise human votes, Bradley-Terry
Evaluator: LMArena
Confidence: confirmed
Notes: LMArena Text arena, Creative Writing category (no style control), board published 2026-10-22 (HF lmarena-ai/leaderboard-dataset @a467e6b9, text config, latest split). Board entry 'Grok 4 (0709)' (category creative_writing in text/latest-00000-of-00001.parquet): rank 106 of 416, rating 1396.6 (95% CI 1388.2-1405.0), 5346 votes. Source: LMArena (CC BY 4.0). Retrieved 2026-10-27.
Source

Source: LMArena (lmarena.ai), CC BY 4.0

Migration checks

No linked migration route is available for this model yet.

API versions

grok-4-0709grok-4

Compare Grok 4 with other models

Show all 68 popular comparisonssorted by 7-day search impressions
Grok 4 vs Gemini 2.5 Flash4KGrok 4 vs Grok 3 Mini3KGrok 4 vs DeepSeek V3.13KGrok 4 vs Kimi K2.62KGrok 4 vs Grok-32KGrok 4 vs Qwen3-Max2KGrok 4 vs DeepSeek V32KGrok 4 vs Claude Mythos Preview1KGrok 4 vs GPT-5.51KGrok 4 vs o3 Mini841Grok 4 vs DeepSeek V3.2777Grok 4 vs Composer 2.5712Grok 4 vs Gemini 3.5 Flash689Grok 4 vs Kimi K2 Thinking616Grok 4 vs Qwen3.6-27B499Grok 4 vs GPT-5.5 Pro488Grok 4 vs GPT-5.4469Grok 4 vs GLM-5.1433Grok 4 vs DeepSeek R1 0528275Grok 4 vs Kimi K2.5236Grok 4 vs Step 3.5 Flash233Grok 4 vs Claude 3.7 Sonnet219Grok 4 vs Llama 3.1 70B Instruct211Grok 4 vs Qwen3.6-35B-A3B205Grok 4 vs Mistral Large 2 (2407)202Grok 4 vs Claude Opus 4.5186Grok 4 vs GLM-5182Grok 4 vs Composer 2166Grok 4 vs Llama 2 13B Chat164Grok 4 vs Qwen2.5-72B159Grok 4 vs Claude Sonnet 4.5134Grok 4 vs Llama 3 70B Instruct126Grok 4 vs Trinity-Large-Thinking120Grok 4 vs Ling-2.6-1T119Grok 4 vs Hunyuan Hy3 Preview113Grok 4 vs Qwen3-235B-A22B105Grok 4 vs Together AI - Llama 3 8B Lite96Grok 4 vs MiMo-V2.5-TTS-Series93Grok 4 vs GLM-5V-Turbo92Grok 4 vs Nano Banana (Gemini 2.5 Flash Image)80Grok 4 vs Llama 3 8B Instruct74Grok 4 vs Qwen2.5-72B-Instruct69Grok 4 vs Qwen3.5-27B63Grok 4 vs DeepSeek R1 Distill Llama 70B60Grok 4 vs MiMo-V2.548Grok 4 vs Qwen3.5-35B-A3B48Grok 4 vs GLM-5 Turbo45Grok 4 vs Gemini 2.5 Pro Preview 06-0535Grok 4 vs Llama Guard 3 1B32Grok 4 vs Phi-3 Mini 4k30Grok 4 vs Qwen2.5-7B-Instruct28Grok 4 vs Llama 3.2 1B Instruct27Grok 4 vs Trinity-Large-Preview25Grok 4 vs Phi-4 Mini Flash Reasoning25Grok 4 vs Qwen3.5-397B-A17B24Grok 4 vs Gemma 7B Instruct23Grok 4 vs Kimi K2 Thinking Turbo23Grok 4 vs Qwen3.5-122B-A10B20Grok 4 vs Llama 4 Scout 17B-16E Instruct19Grok 4 vs Mistral Nemotron18Grok 4 vs Mixtral 8x7B12Grok 4 vs Code Cushman 00210Grok 4 vs ShieldGemma 9B10Grok 4 vs Code Davinci 0017Grok 4 vs Gemini 2.5 Pro Preview 05-066Grok 4 vs Mixtral 8x22B Instruct v0.35Grok 4 vs Qwen2-7B-Instruct3Grok 4 vs Qwen3.6 Max Preview3