Last verified
FRONTIER LABFOUNDED 2023SPACEX SUBSIDIARYMEMPHIS COLOSSUSX / GROK NATIVE

Grok API Pricing

Elon Musk's AI lab, founded March 2023 as X.AI Corp. Ships the Grok family — frontier reasoning and coding models trained on the Memphis Colossus supercluster — 200,000 H100s in one interconnected cluster, 150 MW at peak, with a stated roadmap to 1M GPUs. Acquired by SpaceX on Feb 2, 2026 at a $250B valuation ($1.25T combined entity). Renamed from xAI to SpaceXAI in July 2026, when the lab folded fully into SpaceX. The Grok brand is unchanged, the API still lives at docs.x.ai, and Grok stays integrated natively into X (Twitter).

Production models
8
8 GA
Founded
2023
Mar 9 · 3 years
Newest launch
SEP 21
Grok 4.7 launch
Cheapest input
$1/M
Grok Build 0.1 input
Max context
1M
Grok 4.3
Cheapest cache
$0.20/M
Grok 4.3 / Build / 4.20
§ 01 / LINEUP

The full roster.

Side-by-side →
FRONTIER · REASONING

Grok 4.7 LAUNCHED SEP 2026

SpaceXAI's newest frontier model for coding, agentic tasks and knowledge work: a new, larger base model than Grok 4.6, sold on the same rate card.

Input
$2.00/M
Output
$6.00/M
500K ctx · vision →
FRONTIER · REASONING

Grok 4.6 LAUNCHED AUG 2026

SpaceXAI's previous frontier model for coding, agentic tasks and knowledge work, succeeded on the same rate card by Grok 4.7 on 2026-09-21.

Input
$2.00/M
Output
$6.00/M
500K ctx · vision →
FRONTIER · REASONING

Grok 4.5 LAUNCHED JUL 2026

xAI pricing docs list grok-4.5 at $2.00/M input, $0.30/M cached input, and $6.00/M output below 200K prompt tokens.

Input
$2.00/M
Output
$6.00/M
500K ctx · vision →
FRONTIER · REASONING

Grok 4.3 LAUNCHED MAY 2026

The cheaper 1M-context Grok, still listed alongside the 500K-context line that starts at Grok 4.5.

Input
$1.25/M
Output
$2.50/M
1M ctx · vision →
FRONTIER · REASONING

Grok 4.20 (0309) Reasoning

Dated 03-09 snapshot of Grok 4.20 in reasoning mode.

Input
$1.25/M
Output
$2.50/M
1M ctx · vision →
FRONTIER · REASONING

Grok 4.20 (0309) Non-Reasoning

Dated 03-09 snapshot of Grok 4.20 in non-reasoning (latency-optimised) mode.

Input
$1.25/M
Output
$2.50/M
1M ctx · vision →
FRONTIER · REASONING

Grok 4.20 Multi-Agent (0309)

Multi-agent orchestration variant of Grok 4.20; xAI describes it as "Multiple agents collaborate in parallel to perform deep research tasks." Same per-token price as grok-4.3 ($1.25/M input, $2.50/…

Input
$1.25/M
Output
$2.50/M
1M ctx · vision →
CODING

Grok Build 0.1 LAUNCHED MAY 2026

xAI's fast agentic-coding model, now listed on the standard Code API pricing table at $1/M input and $2/M output (256K context).

Input
$1.00/M
Output
$2.00/M
256K ctx · vision →
RETIRED · MAY 2026

Grok 4.1 Fast LAUNCHED NOV 2025

Archive price retained from the verified snapshot: $0.20/M input, $0.05/M cached input, $0.50/M output.

Input
$0.20/M
Output
$0.50/M
256K ctx · text-only →
RETIRED · MAY 2026

Grok 4 Fast LAUNCHED SEP 2025

Archive price retained from the verified snapshot: $0.20/M input, $0.05/M cached input, $0.50/M output.

Input
$0.20/M
Output
$0.50/M
2M ctx · text-only →
RETIRED · MAY 2026

Grok 4 LAUNCHED JUL 2025

Archive price retained from the verified snapshot: $3/M input, $0.75/M cached input, $15/M output.

Input
$3.00/M
Output
$15.00/M
256K ctx · text-only →
RETIRED · MAY 2026

Grok 3 LAUNCHED FEB 2025

Archive price retained from the verified snapshot: $3/M input, $0.75/M cached input, $15/M output.

Input
$3.00/M
Output
$15.00/M
131K ctx · text-only →
RETIRED · SEP 2025

Grok 3 Mini LAUNCHED FEB 2025

Archive price retained from the verified snapshot: $0.30/M input and $0.50/M output.

Input
$0.30/M
Output
$0.50/M
131K ctx · text-only →
RETIRED · AUG 2025

Grok 2 (1212) LAUNCHED DEC 2024

Official xAI 1212 launch post announced grok-2-1212 and grok-2-vision-1212 at $2/M input and $10/M output after efficiency improvements.

Input
$2.00/M
Output
$10.00/M
131K ctx · text-only →
RETIRED · AUG 2025

Grok 2 Vision (1212) LAUNCHED DEC 2024

API ID grok-2-vision-1212.

Input
$2.00/M
Output
$10.00/M
32K ctx · vision →
RETIRED · MAY 2026

Grok Code Fast 1 LAUNCHED AUG 2025

Archive price retained from the verified snapshot: $0.20/M input, $0.02/M cached input, $1.50/M output.

Input
$0.20/M
Output
$1.50/M
256K ctx · text-only →
RETIRED · FEB 2025

Grok Beta LAUNCHED NOV 2024

API ID grok-beta.

Input
$5.00/M
Output
$15.00/M
131K ctx · text-only →
RETIRED · FEB 2025

Grok Vision Beta LAUNCHED NOV 2024

API ID grok-vision-beta.

Input
$5.00/M
Output
$15.00/M
32K ctx · vision →
§ 02 / SHELF

All side-by-side.

Methodology →
Model Input /M Output /M Cached Context Max output Vision Tools Tier
Grok 4.7 FLAGSHIP $2.00 $6.00 $0.50−75% 500K — ✓ ✓ Frontier
Grok 4.6 $2.00 $6.00 $0.50−75% 500K — ✓ ✓ Frontier
Grok 4.5 $2.00 $6.00 $0.30−85% 500K — ✓ ✓ Frontier
Grok 4.3 $1.25 $2.50 $0.20−84% 1M — ✓ ✓ Frontier
Grok 4.20 (0309) Reasoning $1.25 $2.50 $0.20−84% 1M — ✓ ✓ Frontier
Grok 4.20 (0309) Non-Reasoning $1.25 $2.50 $0.20−84% 1M — ✓ ✓ Frontier
Grok 4.20 Multi-Agent (0309) $1.25 $2.50 $0.20−84% 1M — ✓ ✓ Frontier
Grok Build 0.1 $1.00 $2.00 $0.20−80% 256K — ✓ ✓ Active
Grok 4.1 Fast RETIRED — — — Retired May 15, 2026 → Grok 4.3 ✗ ✗ Retired
Grok 4 Fast RETIRED — — — Retired May 15, 2026 → Grok 4.3 ✗ ✗ Retired
Grok 4 RETIRED — — — Retired May 15, 2026 → Grok 4.3 ✗ ✗ Retired
Grok 3 RETIRED — — — Retired May 15, 2026 → Grok 4.3 ✗ ✗ Retired
Grok 3 Mini RETIRED — — — Retired Sep 30, 2025 → Grok 4.3 ✗ ✗ Retired
Grok 2 (1212) RETIRED — — — Retired Aug 14, 2025 → Grok 4.3 ✗ ✗ Retired
Grok 2 Vision (1212) RETIRED — — — Retired Aug 14, 2025 → Grok 4.3 ✓ ✗ Retired
Grok Code Fast 1 RETIRED — — — Retired May 15, 2026 → Grok 4.3 ✗ ✗ Retired
Grok Beta RETIRED — — — Retired Feb 28, 2025 → Grok 4.3 ✗ ✗ Retired
Grok Vision Beta RETIRED — — — Retired Feb 28, 2025 → Grok 4.3 ✓ ✗ Retired
§ 03 / PRICE CURVE

Pricing across the lineup.

How SpaceXAI priced 15 models · NOV 24 → SEP 26.

oldest → newest →
$20$15$10$5 Grok Beta NOV 24 Grok 2 (1212) DEC 24 Grok 3 Mini FEB 25 Grok 4 JUL 25 Grok 4 Fast SEP 25 Grok 4.3 MAY 26 Grok 4.5 JUL 26 Grok 4.7 SEP 26
Input · newest $2/M
Output · newest $6/M
Each point is a model at its listed $/M price.

The last 12 months at SpaceXAI.

Major releases, retirements, and corporate moves. Sourced from SpaceXAI press releases, docs.x.ai migration guides, and recent merger filings.

SEP 21 · 2026
Grok 4.7 released on the SpaceXAI API on a new, larger base model, at Grok 4.6's $2/$6 card; it becomes Grok Build's default model, and a Fast variant at twice the rates is sold only in Cursor and Grok Build
RELEASE
AUG 12 · 2026
Grok 4.6 released at $2/$6 with a $0.50 cache read and reasoning effort up to xhigh; the next day Grok 4.5's cached input was cut to $0.30
RELEASE
AUG 2026
Grok on other people's clouds — SpaceXAI announces Grok 4.6 in GitHub Copilot (Aug 14), on Amazon Bedrock (Aug 19), the Gemini Enterprise Agent Platform (Aug 21) and Microsoft Foundry (Aug 26)
CORPORATE
JUL 08 · 2026
Grok 4.5 released on the SpaceXAI API — latest coding, agentic, and knowledge-work model at $2/$6, 500K context, configurable reasoning
RELEASE
MAY 19 · 2026
Grok Build 0.1 released — early-access fast coding model for agentic coding at $1/$2
RELEASE
MAY 15 · 2026
Retirement wave — Grok 4, Grok 4 Fast, Grok 4.1 Fast, Grok Code Fast 1, Grok 3 all retired; traffic redirects to grok-4.3
PRICING
MAY 12 · 2026
Grok 4.3 shipped to API — 40% price cut vs Grok 4 ($1.25/$2.50 input/output), 1M context, agentic tool-calling focus
RELEASE
APR · 2026
Michael Nicolls joins as President of SpaceXAI
CORPORATE
FEB 02 · 2026
SpaceX acquires SpaceXAI at $250B SpaceXAI valuation ($1.25T combined entity) — funds orbital data centre build-out
CORPORATE
OCT · 2025
Grokipedia launched — AI-generated Wikipedia alternative
RELEASE
SEP · 2025
500 data annotators laid off; SpaceXAI shifts to model-led RLHF instead of manual labelling
CORPORATE
AUG 14 · 2025
Grok 2 family retired — grok-2-1212 + grok-2-vision-1212 shut down, redirect to Grok 3 then Grok 4
PRICING
JUL 09 · 2025
Grok 4 released — first frontier-tier model at $3/$15 per M; Grok Heavy consumer subscription launched at $300/mo
RELEASE
MAR · 2025
Valuation hits $80B after X Corp acquisition; X / Twitter folded into SpaceXAI's stack
CORPORATE
FEB 17 · 2025
Grok 3 released — adds reflection / reasoning mode; Grok 3 Mini at $0.30/$0.50
RELEASE
DEC · 2024
Memphis Colossus operational — 122-day build, 150 MW peak draw, plans for 1M+ GPUs
CORPORATE
§ 04 / ACCESS

Where to get it.

Methodology →
PRIMARY · DIRECT
SpaceXAI API

console.x.ai + docs.x.ai — the direct API, OpenAI-compatible Chat Completions plus a Responses API. A US regional endpoint, us.api.x.ai, keeps inference in the United States at 1.1x the rates for Grok 4.7 and 4.6. SpaceXAI's docs also list OpenRouter, Vercel and Cloudflare as gateways serving Grok 4.7.

OpenAI-compatible API →
CONSUMER · WEB + X
Grok on X / grok.com

grok.com for standalone chat, X (Twitter) for in-feed integration. SuperGrok at $30/mo, SuperGrok Heavy at $300/mo (priority access to the largest variant).

SuperGrok from $30/mo →
AGENT · HOSTED
Grok Bot

SpaceXAI's work agent — persistent bots on a hosted cloud computer, not a coding tool. Sold with no price of its own: bundled into SuperGrok and above, and into every paid Cursor plan, where the account and the meter actually live.

9 ways in, none standalone →
AGENT · TERMINAL
Grok Build

SpaceXAI's coding agent — the one the name Grok Bot is mistaken for. Runs locally in a project directory, harness and TUI open source under Apache-2.0, and included on every Grok plan including the free one. Its allowance is not its own: one weekly pool covers Chat, Imagine, Voice, the API and Build together.

On all 7 tiers, incl. Free →
CLOUD · RESELLERS
Grok on cloud platforms

SpaceXAI announced Grok 4.6 on Amazon Bedrock (Aug 19, 2026), Gemini Enterprise Agent Platform (Aug 21), Microsoft Foundry (Aug 26) and GitHub Copilot (Aug 14); the docs add OpenRouter, Vercel and Cloudflare as gateways for Grok 4.7. Each platform bills at its own rates, which are not the vendor rates on this page.

Grok 4.6 on 3 major clouds →
INFRA · COMPUTE
Memphis Colossus

SpaceXAI's own supercluster in Memphis, TN. Built in 122 days, then doubled in 92 more to 200,000 H100s in a single interconnected cluster, drawing 150 MW at peak, with a stated roadmap to 1M GPUs. Training and inference capacity, not a customer-facing endpoint.

Memphis, TN →
§ 04 / BEST FOR

Which SpaceXAI for what.

More scenarios →
If you need the latest Grok for coding, agents, and knowledge work…
Grok 4.7
Profile →
If you need a fast coding-specialist model…
Grok Build 0.1
Profile →
If you need cheaper Grok with 1M context…
Grok 4.3
Profile →
If you need parallel agents on one research task…
Grok 4.20 Multi-Agent (1M)
Profile →
If you need a pinned weights snapshot for reproducibility…
Grok 4.20 (0309)
Profile →
If you want low-latency Grok without chain-of-thought…
Grok 4.20 (0309) Non-Reasoning
Profile →
If your stack lives on X / Twitter and you want native AI…
Grok via X integration
Open X →
If you need image generation or audio on a frontier model…
Use Gemini or GPT instead
Compare →
§ 06 / BACKGROUND

The company behind it.

x.ai →

SpaceXAI was founded by Elon Musk on March 9, 2023 as X.AI Corp, with 11 founding researchers (including ex-DeepMind's Igor Babuschkin). The pitch: build a maximally truth-seeking AI inside Musk's ecosystem — X (Twitter) for data and distribution, Tesla / SpaceX for compute and capital. CEO: Elon Musk.

The lab moved fast. Grok 1 shipped November 2023 (weights later open-sourced). Grok 2 in August 2024 added image generation. Grok 3 in February 2025 introduced the reflection / reasoning mode that anchors the current line. Grok 4 in July 2025 was the first frontier-tier Grok ($3/$15) and shipped alongside SuperGrok Heavy, a $300/mo consumer tier that exposed early access to the largest variants. Grok 4.3 on May 12, 2026 cut input prices ~40% to $1.25/$2.50 and the next-generation Grok 4.20 family arrived in 03-09 snapshot form.

The defining infrastructure asset is the Memphis Colossus supercluster, brought online in December 2024 after a remarkable 122-day build. Peak draw 150 MW; expansion plans target 1M+ GPUs.

The corporate structure changed dramatically in 2026. On Feb 2, 2026, SpaceX acquired SpaceXAI at a $250B SpaceXAI valuation and $1.25T combined-entity valuation — the largest tech merger by valuation on record. Stated rationale: orbital data centres + more capital runway for AI buildout against OpenAI and Anthropic. SpaceXAI continues to operate under its own brand and API surface; only the parent changed.

Compared to Anthropic and OpenAI: cheaper per token at the frontier (Grok 4.7 at $2.00/$6.00 per 1M against Claude Opus 5 at $5.00/$25.00), a narrower surface (the Grok text models take text and image input and return text, while image generation, video and voice live in the separate Imagine and Voice APIs), and tied to the X / Twitter brand for better and worse.

§ 07 / COMPETITORS

Other frontier labs.

All providers →
PRIMARY RIVAL

OpenAI

Bigger surface area (image / audio / video / embeddings under one roof), bigger consumer brand. GPT-6 Astra, OpenAI's top model, lists at $10.00 input per 1M against Grok 4.7's $2.00. SpaceXAI wins on per-token cost; OpenAI wins on multimodality and ecosystem.

GPT family →
CODING LEADER

Anthropic

The coding-agent incumbent. Claude Opus 5 lists at $5.00 input and $25.00 output per 1M against Grok 4.7's $2.00 and $6.00, and Anthropic publishes a Responsible Scaling Policy. On per-token price alone, Grok is the cheaper bet.

Claude family →
CLOUD GIANT

Google

Audio and video in, which Grok has nowhere. Gemini 3.8 Flash takes text, images, audio and video, keeps a 1M window, and at $0.75/$3.75 per 1M it undercuts Grok 4.7 — price is not SpaceXAI's edge at this tier. Distribution through Workspace and Vertex is the other gap.

Gemini family →
OPEN-WEIGHT GIANT

Alibaba (Qwen)

The Qwen (Tongyi Qianwen) model family from Alibaba Cloud's Tongyi Lab. First released in 2023, Qwen is the most-downloaded open-weight model family in the world — most tiers ship under Apache 2.0 on Hugging Face and ModelScope, while the proprietary Max tier is served through Alibaba Cloud's Model Studio.

18 models · from $0.03/M →
GLM ARCHITECT

Zhipu (Z.ai / GLM)

The Beijing lab behind the GLM models, also operating internationally as Z.ai. Spun out of Tsinghua University in 2019, Zhipu ships strong coding/agentic models, multiple free tiers, and open weights — and was the first of China's "Six Tigers" to pursue an IPO. It also sits on the US Entity List.

16 models · from $0.07/M →

Frequently asked.

Practical questions about SpaceXAI, the Grok lineup, the SpaceX merger, and how text-only frontier pricing actually shakes out.

Q · 01 Which Grok model should I start with? +
Grok 4.7 for the newest frontier model: coding, agentic tasks, knowledge work, reasoning effort up to xhigh, text + image input and a 500K window at $2.00/$6.00. Grok 4.6 sits on the same card on the previous base model, and Grok 4.5 has a cheaper $0.30 cache read, so it still wins on cache-heavy loops. Pick Grok 4.3 when you want a cheaper 1M-context Grok at $1.25/$2.50 with a 20% batch discount, and Grok 4.20 Multi-Agent when you want several agents working one research task in parallel.
Q · 02 Does Grok support vision, audio, or image generation? +
Vision in, text out. Every current Grok text model — Grok 4.7, 4.6, 4.5, 4.3, the Grok 4.20 snapshots and Grok Build 0.1 — accepts text and image input and returns text only. Image and video generation are handled by the separate Imagine API, and voice by the Voice API. For a single frontier model that also takes audio or video, compare Gemini, GPT, or Claude.
Q · 03 Did SpaceX really acquire SpaceXAI? +
Yes — closed Feb 2, 2026 at a $250B SpaceXAI valuation ($1.25T combined entity). The deal was framed as funding for orbital data centres and giving SpaceXAI more capital runway against OpenAI / Anthropic infrastructure spend. The SpaceXAI brand, console at console.x.ai, and Grok product line all continue to operate as before; only the parent ownership changed.
Q · 04 Does SpaceXAI offer EU data residency? +
No — SpaceXAI does not publish EU regions or an EU data-residency commitment. The Grok 4.7 model page lists US regions only (us-east-1, us-west-2, us-central-1), and the one regional option on the pricing page is a US endpoint. Grok 4.5 did become available in the API console for EU users in July 2026, but that is availability, not EU processing. Since August 2026 Grok 4.6 is also sold through Amazon Bedrock, Microsoft Foundry and the Gemini Enterprise Agent Platform; whether any of them offers Grok in an EU region is that platform's answer to give, and we have not verified it. If EU data residency is a hard requirement, pick Claude on Bedrock EU, Gemini on Vertex EU, or Mistral.
Q · 05 What happened in the May 15, 2026 retirement wave? +
SpaceXAI retired five models on the same day: Grok 4, Grok 4 Fast, Grok 4.1 Fast, Grok Code Fast 1, and Grok 3. All requests to those slugs now redirect to grok-4.3 and bill at Grok 4.3 pricing ($1.25/$2.50). That left four active text models at the time; Grok Build 0.1, Grok 4.5, Grok 4.6 and Grok 4.7 have been added since. Migration guide: docs.x.ai/developers/migration/may-15-retirement.
Q · 06 Can I get a discount? +
Two published discounts, and neither covers every model. The cache read is the bigger one: on Grok 4.7 cached input costs $0.50 per 1M against $2.00 fresh, and SpaceXAI recommends setting a prompt cache key so hits are reliable. The Batch API takes 20% off every token type, but only on Grok 4.3 and the three Grok 4.20 snapshots — the pricing page states that models not listed get no batch discount, which includes Grok 4.5, 4.6 and 4.7. Two options cost more instead: priority processing bills 2x, and the US regional endpoint 1.1x.
Q · 07 How does Grok compare to Claude and GPT? +
Cheaper per token: Grok 4.7 lists at $2.00 input and $6.00 output per 1M, against $5.00/$25.00 for Claude Opus 5 and $10.00/$50.00 for GPT-6 Astra. The surface is narrower: Grok's text models take text and image input and return text, with images, video and voice in separate APIs. On coding, SpaceXAI's own launch table puts Grok 4.7 behind Claude Fable 5.1 on CursorBench 4.0 (46.3% against 51.8%) — a vendor-run comparison, not an independent one. See side-by-side comparisons.