Grok 4

xAI · Grok

Deprecated Grok 4 API route whose old slug now redirects to Grok 4.3 after the May 15, 2026 retirement.

Type
language
Context
256K tokens
Max Output
256K tokens
Status
deprecated
Input
$3/1M tok
Output
$15/1M tok
API Access
Yes
License
proprietary
reasoning tool-use agentic coding long-context real-time-data deprecated
Released July 2025 · Updated May 16, 2026

Overview

Freshness note: Model capabilities, limits, and pricing can change quickly. This profile is a point-in-time snapshot last verified on May 16, 2026.

Grok 4 is now an older Grok reasoning route, not the forward-looking default. xAI’s May 2026 model-retirement notice says older Grok 4 API variants, including grok-4-0709, retired on May 15, 2026 at 12:00 PM PT. Requests to the deprecated slug now redirect to Grok 4.3 with low reasoning effort and are billed at Grok 4.3 pricing.

This page is retained for teams auditing older integrations, pinned behavior, or historical comparisons. Do not route new Grok workloads here unless you are deliberately testing redirect behavior from an old slug.

Capabilities

Historically, Grok 4 was strongest on difficult reasoning, coding, tool-oriented assistants, and long-context analysis where teams wanted a Grok-native flagship. As of this refresh, those new-work cases should move to Grok 4.3, which xAI presents as faster, more intelligent, and better aligned with current agentic coding and tool-calling guidance.

Technical Details

xAI’s earlier docs listed Grok 4 with a 256K context window and positioned it as a reasoning model rather than a configurable non-reasoning chat tier. If you still have request bodies pinned to Grok 4, test the same prompts and tools against Grok 4.3 explicitly and remove assumptions tied to old unsupported parameters.

As with other xAI model pages in this repo, maxOutput is kept as a quick-reference upper bound rather than a newly reverified generation guarantee. Teams should still set explicit application-level output caps and timeout budgets.

Pricing & Access

Listed API pricing (per 1M tokens):

  • Input: $3.00
  • Output: $15.00

Access options:

  • xAI API platform
  • Grok product surfaces depending on plan/tier
  • partner and enterprise integrations where enabled

Because the deprecated slug redirects to Grok 4.3 pricing after May 15, Grok 4 should be treated as a migration concern rather than a production planning target.

Best Use Cases

Use this page for:

  • auditing older Grok 4 deployments
  • comparing migration outputs against Grok 4.3
  • documenting historical premium Grok behavior
  • cleaning up old model names after the May 15, 2026 redirect change

Avoid starting new Grok 4 integrations. If the workload is general reasoning, tool use, non-reasoning chat, or coding, xAI recommends Grok 4.3 as the replacement route.

Comparisons

  • Grok 4.3 (xAI): Recommended replacement for new API work and the target migration route for retired Grok 4 variants.
  • Grok 4.20 (xAI): 2M-context preview lane for teams explicitly testing xAI’s beta research direction.
  • Claude Opus 4.7 (Anthropic): Stronger governance and conservative deployment story, while Grok stays more experimental and xAI-native.