Grok 4
Grok 4 is a legacy integration reference; evaluate Grok 4.7 before starting new work.
- 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
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.
| Provider | Input / 1M | Output / 1M | Route |
|---|---|---|---|
| Microsoft Foundry | $3.00 | $15.00 | ServerlessProvisioned |
Deprecated provider routes(3)
| Provider | Status | Catalog ID |
|---|---|---|
| OpenRouter | Deprecated | x-ai/grok-4 |
| Replicate API | Deprecated | — |
| xAI Console | DeprecatedRetired May 15, 2026 | grok-4-0709 |
Available via routers & gateways(6)
LiteLLM
GatewayOpen-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.
OpenRouter
HybridUnified hybrid gateway to 500+ models from 80+ providers via a single OpenAI-compatible API, with an optional Auto Router that selects a model per prompt from market spend data.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, caching, and guardrails; MIT-licensed open-source core is self-hostable. Now part of Palo Alto Networks as Prisma AIRS AI Gateway.
Azure AI Foundry Model Router
RouterMicrosoft Azure AI Foundry's native model router that uses a trained ML model to route each prompt in real time to the optimal Azure-hosted model, with Balanced/Cost/Quality mode selection and automatic failover.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache-2.0 open-source platform with a managed hosted tier for logging and analytics.
Kong AI Gateway
GatewayMulti-LLM AI gateway built on Kong Gateway 3.x, adding semantic routing, load balancing, guardrails, and MCP traffic analytics as plugins over Kong's existing API management platform.
Capabilities
Benchmark peer barsfor Coding
Benchmark scores(12)
| Benchmark | Score | Version | Evaluation | Source |
|---|---|---|---|---|
| 79.6 | Aider polyglot, high reasoning, 225 testsObserved 2026-07-01 | — | ||
| 87.0 | —Observed 2026-04-14 | — | ||
| 76.7 | SWE-bench VerifiedObserved 2026-04-24 | — | ||
| 78.9 | τ-benchObserved 2026-04-24 | — | ||
| 87.5 | GPQA Diamond pass@1, base Grok 4Observed 2026-07-01 | — | ||
| 91.7 | AIME 2025 no tools, pass@1, base Grok 4Observed 2026-07-01 | — | ||
| 25.4 | Humanity's Last Exam no tools, pass@1, base Grok 4Observed 2026-07-01 | — | ||
| 79.0 | LiveCodeBench Jan-May, pass@1, base Grok 4Observed 2026-07-01 | — | ||
| 15.9 | ARC-AGI-2 / ARC-AGI V2, base Grok 4Observed 2026-07-01 | — | ||
| 63.0 | v4Observed 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.0 | vision_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.0 | text 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-4Compare Grok 4 with other models
Comparison and alternatives
Browse all comparisons →Show all 68 popular comparisonssorted by 7-day search impressions
Cheapest of 1 route · Microsoft Foundry