Skip to main content
TokenCost logoTokenCost

Grok 4

Last verified July 27, 2026 · xAI pricing

$3.00/1M input · $15.00/1M output · 256K context · xAI

Retired

Not generally available

xAI has shut Grok 4 down. You cannot buy it at the rate below. The price is kept so past spend and old estimates still reconcile, and it is excluded from the calculator’s default model list and from every ranking.

xAI’s own page ↗
mid-rangecurrent-eventssocial-mediaanalysis

When to use Grok 4

Retired. xAI shut the grok-4-0709 slug down on May 15, 2026 and now bills requests to it at grok-4.3 rates. Read this page for what it cost, then use grok-4.3 at low reasoning effort.

  • Retired May 15, 2026, replaced by Grok 4.3
  • Real-time web and X/Twitter data access
  • Strong on current events and trends
  • 256K context window

Count Tokens

Tokens
Input Cost
Output Cost

Estimate Monthly Cost

Monthly Cost Estimator

Quick:
<$0.0001/mo

Pick a preset above or enter custom usage

Alternatives to Grok 4

Pricing Details

xAIRetired. xAI shut down slug grok-4-0709 on May 15, 2026 at 12:00 PM PT; requests to it now redirect to grok-4.3 and bill at grok-4.3 rates ($1.25/$2.50), not the $3/$15 shown here. Replacement: grok-4.3 at low reasoning effort. Price kept for historical comparison. Estimated tokens (different tokenizer). Context corrected to 256K on 2026-08-08: xAI's model page for grok-4-0709 is gone, but the maxPromptLength in its management API reference (docs.x.ai/llms.txt) reads 256000, and the 2M figure this entry previously carried belongs to the grok-4-fast family, not to Grok 4. Above a 128K prompt it billed $6/$30 with cached input at $0.75. maxOutput is left as-is because xAI publishes no max-output figure for any Grok model; 16384 is a third-party number, not a provider one.
Input / 1M tokens
$3
Output / 1M tokens
$15
Context Window
256K
Max Output
16K

Price History

No price change recorded since 2026-07-27, when this site started tracking this model.

Frequently Asked Questions

Common questions about Grok 4 pricing and usage

Read More About Grok 4