Free to read. Sign up to save your progress and pick up where you left off.

Sign up free
6 min read·Updated September 17, 2026

xAI and Grok

xAI logoBy xAI

Explore xAI's approach to AI — now merged with SpaceX in a $1.25 trillion combined entity — the Colossus data center, real-time X/Twitter data, the Grok model family now led by Grok 4.6, the Terafab chip foundry joint venture, SpaceX's completed $60 billion acquisition of Cursor, and Grok Build, the terminal coding agent open-sourced under Apache 2.0 in July 2026.

Share

Listen to this lesson

Free preview · first 0:30
0:00 / 0:30

Unlock audio and more

Audio streaming, downloadable PDFs and certificates come with Plus and Pro.

Learning Objectives

  • Explain xAI's data advantage through X/Twitter integration and the significance of the SpaceX merger
  • Describe the Grok model family — Grok 4.1, Grok 4 Heavy, Grok 4.20, Grok 4.5, and Grok Imagine — and their distinct use cases
  • Assess when xAI's real-time data access is a genuine differentiator vs. other frontier models

xAI: From Startup to SpaceX Merger

xAI was founded in July 2023 by Elon Musk, approximately four months after his confrontational departure from OpenAI's board. The company differentiated through access to real-time information via X (formerly Twitter) and a brute-force scaling approach through the Colossus data center.

The SpaceX Acquisition (February 2026)

On February 2, 2026, SpaceX acquired xAI in a deal that created a $1.25 trillion combined entity — one of the most valuable technology organizations in history. The merger reflects Musk's vision of integrating AI capabilities with space infrastructure, with long-term plans for space-based AI data centers. SpaceX went public on June 12, 2026, listing on Nasdaq under the ticker SPCX, so the combined group's frontier lab now sits inside a publicly traded company.

The acquisition triggered significant organizational changes: approximately half of xAI's co-founders departed in the aftermath, and the company underwent restructuring as it integrated into SpaceX's operations.

Prior funding: In January 2026 (before the merger), xAI had closed a $20 billion Series E (exceeding its initial $15 billion target), with investors including NVIDIA, Cisco, Valor Equity, Fidelity, QIA, MGX, and Baron Capital.

SpaceX's Acquisition of Cursor (closed August 2026)

SpaceX now owns Cursor, the AI-native code editor built by Anysphere, with more than $2 billion in annual recurring revenue and 360,000 paying customers. The all-stock purchase, worth roughly $60 billion, closed on August 14, 2026 — the largest price ever paid for a startup. It took three steps: an option secured on April 21, 2026, a definitive agreement on June 16, and regulatory clearance in mid-August. The strategic rationale is the same as the xAI merger: pair a leading AI product with Colossus-scale training compute to build next-generation models — here, coding models competing directly with Anthropic's Claude Code and OpenAI's Codex. Microsoft reportedly explored acquiring Cursor earlier in 2026, before SpaceX secured the original option.

Cursor joins SpaceXAI, the same division that holds xAI. The pattern is worth naming: SpaceX has now absorbed both a frontier lab and the leading developer tool built on top of one, so a single company owns the model, the compute and the interface a large share of professional developers use every day.

Colossus: xAI built the Colossus data center in Memphis, Tennessee, scaling to 555,000 NVIDIA H100 and H200 GPUs as of January 2026 — with approximately $18 billion invested. A third building has been purchased, expanding total capacity to 2 GW, with a roadmap to 1 million GPUs by late 2026. This is the largest single GPU cluster in the world and reflects Musk's conviction that raw compute scale is a primary competitive differentiator.

Colossus 2, Terafab, and the Non-NVIDIA Long Game (2026)

Colossus 2 — the third Memphis facility — targets 1 million GPUs by late 2026 and has been called the first gigawatt datacenter in the world. For now, Colossus and Colossus 2 remain NVIDIA-based (H100, H200, GB200), but xAI is a founding partner in Terafab, the chip foundry joint venture announced March 21, 2026 with Tesla, SpaceX, and (as of April 7) Intel. Terafab is positioned as xAI's long-term non-NVIDIA training hardware supply. Its site was confirmed in August 2026 as Grimes County, Texas, with a $16.8 billion first phase.

Also part of the Musk-ecosystem silicon story: Dojo3, the restarted Tesla training supercomputer program that Musk repositioned in January 2026 toward space-based AI compute — a significant pivot from its original role as an FSD training cluster. The same Terafab production lines that serve xAI will also produce Dojo3 silicon and Tesla's AI5/AI6 chips.

Grok 4.1: The Long-Context Generation

Grok 4.1 was xAI's flagship model before Grok 4.20 and the current Grok 4.5, and it is the generation that established the family's long-context and real-time-data profile. It remains available through the Grok app, X Premium subscriptions, and the API.

Key characteristics:

  • LMArena Elo: 1,483 at launch — competitive with the top models
  • 2 million token context window — double the 1 million-token standard of the closed frontier flagships, though the open-weight Llama 4 Scout advertises 10 million
  • Real-time X/Twitter access: Native access to X's data feed, enabling responses grounded in current events, breaking news, and social media trends as they happen
  • Native tool use: web search, code execution, image generation via Aurora
  • Available as Grok app, X Premium feature, and enterprise API

The 2 million context window: Two million tokens is approximately 1.5 million words — enough to process multiple book-length documents, very large codebases, or extended conversation histories simultaneously. This is a genuine differentiator for use cases requiring extremely long context.

The X/Twitter data advantage: Grok has access to the full X firehose — real-time posts, trending topics, public accounts. For questions about current events, market sentiment, social media trends, and breaking news, this is a structural advantage over models that only have training cutoff data and web search.

Grok 4.1

xAI

Closed

Strengths

2 million token context (double the closed-flagship standard); real-time X/Twitter data; 1,483 LMArena Elo; native tool use

Context Window

2 million tokens

Pricing

Free tier in Grok app; X Premium+ $40/mo; API pricing available

Grok 4 Heavy: Massive Compute Reasoning

Grok 4 Heavy is xAI's multi-agent reasoning system — essentially multiple Grok instances collaborating on a problem. This architecture is designed for the most demanding reasoning tasks.

Notable benchmark: 50.7% on Humanity's Last Exam (HLE) — a benchmark developed specifically because standard benchmarks have become too easy for frontier models. HLE consists of questions from graduate-level academics across fields designed to be at the edge of human expert knowledge. 50% on HLE is exceptionally high.

When to use: Research problems requiring graduate-level reasoning, complex mathematics, demanding scientific questions, tasks where multiple perspective approaches add value.

Grok 4.20: Multi-Agent Intelligence (March 2026)

Grok 4.20 was released on February 17, 2026 (beta), with a Multi-Agent Beta update on March 12, 2026. It held the top spot in xAI's lineup until Grok 4.5 shipped in July 2026, and is estimated at 1.7 to 3 trillion mixture-of-experts (MoE) parameters.

Key capabilities:

  • Multi-agent architecture — multiple Grok instances coordinating on complex tasks
  • Intelligence index: 48.5 — xAI's internal benchmark for general capability
  • Agentic index: 68.7 — strong performance on autonomous task completion
  • Enhanced vision — multi-image processing and rendering
  • 2 million token context window — matching Grok 4.1

Available through the Grok app and the xAI Enterprise API. Grok 5 is confirmed to be actively training (estimated 6 trillion+ parameters), with Musk claiming a "10% probability" of reaching AGI-level capability. xAI is leveraging the expanded Colossus infrastructure for this training run.

Grok 4.6: The Current Flagship (August 2026)

Grok 4.6 shipped on August 12, 2026 and heads xAI's lineup today, aimed at long-running agents and more ambitious interactive work. It scores 61 on the Artificial Analysis Intelligence Index, level with OpenAI's GPT-5.6 Sol, and its clearest gains over Grok 4.5 are in agentic coding — 69.9% against 66.7% on CursorBench 3.2, and 65.9% against 54% on DeepSWE 1.1. It costs $2 per million input tokens and $6 per million output, and runs in Cursor, Grok Build, the xAI API, OpenRouter, Vercel and Cloudflare.

Grok 4.5: The Prior Flagship (July 2026)

Grok 4.5 shipped on July 8, 2026. It was the first flagship built on the V9 foundation (1.5 trillion parameters), and it was trained alongside Cursor rather than adapted to coding after the fact — the bet being that a model co-developed with a real coding environment handles multi-step software tasks more reliably. It runs at roughly 80 tokens per second.

Key characteristics:

  • Opus-class positioning — Musk places it in the same tier as Anthropic's Claude Opus 4.8, "but faster, more token-efficient and lower cost"
  • Token efficiency — on SWE-Bench Pro, xAI reports Grok 4.5 resolving tasks in about 15,954 output tokens versus roughly 67,020 for Claude Opus 4.8, close to a four-times reduction
  • Pricing built for agentic loops — $2 per million input tokens and $6 per million output tokens
  • Coding-first — trained with Cursor, the AI code editor SpaceX now owns outright

💡Key Concept

Opus-class is a tier, not a scoreboard win. On xAI's own launch benchmarks, Grok 4.5 beats Claude Opus 4.8 on DeepSWE 1.0 and Terminal-Bench 2.1 and trails it on DeepSWE 1.1 and SWE-Bench Pro task resolution. Read the claim as competitive at the top tier, not as an outright win — and remember the numbers are vendor-reported until third parties reproduce them.

Grok Build: The Coding Agent Goes Open Source (July 2026)

Grok Build is the company's terminal coding agent — a full-screen interface that reads a codebase, edits files, runs shell commands, and manages long-running tasks, with Grok 4.5 as its default model. On July 15, 2026, the company published its complete Rust source on GitHub under an Apache 2.0 license: roughly 844,000 lines covering the agent runtime, the interface, the tool layer, and sandboxing.

The context matters as much as the license. Days earlier, security researchers reported that Grok Build had been uploading developers' entire Git repositories — including commit histories, which routinely carry credentials such as API keys and cloud tokens. Publishing the source lets developers audit exactly what the agent transmits, but the transparency followed the finding rather than preceding it.

💡Key Concept

Source transparency is not community open source. Apache 2.0 gives you the legal right to read, fork, and modify the code — real freedoms. But xAI refuses external contributions and has disabled GitHub issues, syncing the repository periodically from an internal monorepo. You get auditability and the right to fork; you do not get a say in direction. Compare Gemini CLI, which is also Apache 2.0 but accepts community contributions.

Grok Imagine: Image and Video Generation

Grok Imagine is xAI's image generation and editing surface, built into the Grok app and the X platform. Posts on X can include images generated inside Grok, and the integration with the most active social media platform for AI discourse creates an unusual distribution channel for AI-generated visual content. Aurora was the original model name and now refers to an earlier generation.

The current model, Image 2.0, shipped on August 8, 2026 and moved xAI into genuine contention: it ranks second on both the Arena text-to-image and image-editing leaderboards, behind only OpenAI's GPT-Image-2. The jump came from editing rather than raw generation — selective-area changes, background removal, generation from up to five reference images, and aspect-ratio conversion that regenerates edges instead of cropping. An earlier March 2026 update had added stylized templates, frame-chaining for short video clips, and folders for organizing output.

⚠️Warning

No public API yet. Image 2.0 is reachable only through the Grok apps and website — xAI says API access is coming, but until it lands, a second-ranked image model cannot be used in an automated or product-embedded workflow. This is the practical gap between xAI and OpenAI in this category, and it matters more than the Elo difference.

Key Takeaways

  • SpaceX acquired xAI in February 2026, creating a $1.25 trillion combined entity — integrating AI with space infrastructure. SpaceX then listed on Nasdaq under the ticker SPCX in June 2026, so xAI is now owned by a public company
  • Colossus remains the world's largest GPU cluster (555,000 NVIDIA GPUs), with Colossus 2 targeting 1 million GPUs by late 2026 — the first gigawatt datacenter in the world
  • xAI is a founding partner in Terafab (March 2026) — the Tesla/SpaceX/xAI/Intel chip foundry joint venture, sited in Grimes County, Texas with a $16.8 billion first phase, positioned as xAI's long-term non-NVIDIA training hardware supply
  • Dojo3 was restarted in January 2026 and repositioned for space-based AI compute — another Terafab product line
  • Grok 4.1, the generation before Grok 4.20, differentiates through its 2 million token context window — double the closed-flagship standard — and real-time X/Twitter data access, ideal for current events and social media analysis
  • Grok 4.20 (March 2026) introduced the multi-agent architecture — agentic index 68.7, estimated 1.7 to 3 trillion mixture-of-experts parameters — and led the lineup until Grok 4.5 shipped in July 2026
  • Grok 4.6 (August 12, 2026) is xAI's current flagship, scoring 61 on the Artificial Analysis Intelligence Index — level with GPT-5.6 Sol — at $2 per million input tokens and $6 per million output; the preceding Grok 4.5 introduced the 1.5-trillion-parameter V9 foundation and was trained alongside Cursor
  • Grok Build, the company's terminal coding agent, went open source under Apache 2.0 in July 2026 — roughly 844,000 lines of Rust — after security researchers found it uploading developers' entire Git repositories; contributions are refused, so it is source transparency rather than community open source
  • Grok 4 Heavy achieves 50.7% on Humanity's Last Exam; Grok 5 is confirmed in training at 6 trillion+ parameters
  • Grok Imagine's Image 2.0 model, released August 8, 2026, ranks second on both Arena image boards behind OpenAI's GPT-Image-2 — but has no public API, so it cannot yet be used programmatically

Save your progress & keep learning

Sign up free to bookmark lessons, track which modules you've completed, and get an alert whenever a lesson you saved gets a major update.

Tools Covered in This Lesson

Key Terms in This Lesson

🧭Recommended for you

Optional detours — these connect to what you just read, and your next lesson will be waiting.