Grok 4 API Pricing
Grok 4 is now an archive row: historical pricing was $3/M input, $0.75/M cached input, and $15/M output. SpaceXAI's May 15 retirement guide says retired slugs redirect to Grok 4.3 and are billed at current Grok 4.3 prices.
Run the numbers.
Calculator pre-loaded with Grok 4's archive rates. For live traffic after May 15, 2026, SpaceXAI (formerly xAI) says the retired slug redirects to Grok 4.3 and bills at Grok 4.3 pricing.
Real-world presets.
Tool-calling agent
Research pack synthesis
Power-user chat
Knowledge base RAG
Paste text. See tokens. See cost.
This is a chars-per-token approximation, not a real tokenizer. Actual tokens vary by language, code density, and tool-call overhead — counts are typically ±10–20% off for English prose, more for code or non-Latin scripts. For exact billing, use the vendor's official tokenizer.
| Model | Input /M | Output /M | Effective blended | Context | Best for |
|---|---|---|---|---|---|
| Grok 4 Current | $3.00 cache $0.75 | $15.00 | $2.26 archive 92/8 | 256K | Archive Grok 4 invoices |
| Grok 4.3 | $1.25 cache $0.20 | $2.50 | $0.558 current replacement | 1M | Current Grok default |
| Gemini 2.5 Pro | $1.25 cache $0.125 | $10.00 | $1.10 Gemini Pro | 2M | Stable Google frontier |
| GPT-5.4 | $2.50 cache $0.25 | $15.00 | $1.80 OpenAI frontier | 1.05M | Affordable OpenAI frontier |
| Claude Sonnet 4.6 | $3.00 cache $0.30 | $15.00 | $2.05 Anthropic agent | 1M | Daily-driver Claude agents |
| DeepSeek V4 Pro | $1.32 cache $0.044 | $3.96 | $0.569 budget reasoning | 1M | Low-cost reasoning alternative |
Frequently asked.
Grok 4 pricing questions, with SpaceXAI token rates separated from workload assumptions.
Q · 01 What was Grok 4's API price? +
$3/M input, $0.75/M cached input, and $15/M output. Use these numbers for historical billing analysis, not new routing decisions.Q · 02 Is Grok 4 still available? +
grok-4-0709 and related retired slugs redirect to grok-4.3. After the redirect, requests are billed at Grok 4.3's $1.25/M input and $2.50/M output pricing.Q · 03 Does prompt caching apply? +
$0.75/M. The effective blend assumes 82% of input tokens hit cache; turn cache off in the calculator for fresh-input workloads.Q · 04 Why keep an archive page? +
Q · 05 What should replace Grok 4? +
grok-4.3. SpaceXAI states retired text slugs redirect to Grok 4.3, and the live pricing page lists Grok 4.3 at $1.25/M input, $0.20/M cached input, and $2.50/M output.Q · 06 How accurate is the tokenizer estimate? +
4.875 characters per token as a planning estimate. Exact billing can vary with language, reasoning effort, cached prompts, and tool calls.