Free to read. Sign up to save your progress and take knowledge-check quizzes.

Sign up free
6 min read·Updated August 1, 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.5, the Terafab chip foundry joint venture, the SpaceX option to acquire 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

Audio & video lessons are paid features

Plus unlocks audio streaming. Pro adds downloadable audio, video, certificates, and more.

Plus adds:
  • Audio streaming
  • Downloadable PDFs
  • All AI Playbooks
  • Personalized content
Pro also adds:
  • Certificates of completion
  • Audio MP3 downloads
  • Video lessonssoon
  • & More…soon

Watch this lesson

AI Pro Playbook video — coming soon

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 Aurora — 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 is targeting an IPO in 2026.

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 Option to Acquire Cursor (April 2026)

On April 21, 2026, SpaceX extended its AI footprint further by announcing a deal with Cursor (the AI-native code editor made by Anysphere, $2 billion+ ARR, 360,000+ paying customers). SpaceX secured the option to acquire Cursor for $60 billion by year-end 2026, with a $10 billion fallback payment for joint development work if the full acquisition does not close. 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 — in this case 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 option.

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 $20-25 billion 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.

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 — the largest standard context window of any major released model
  • 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 (largest available); 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.5: The Current Flagship (July 2026)

Grok 4.5 shipped on July 8, 2026 and heads xAI's lineup today. It is 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 and is the default model in both Grok Build and Cursor.

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 holds the option to acquire

💡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.

Aurora and Grok Imagine: Image and Video Generation

Aurora is xAI's image generation system, integrated directly into the Grok app and X platform. Posts on X can include Aurora-generated images. The integration with the most active social media platform for AI discourse creates an unusual distribution channel for AI-generated visual content.

In March 2026, Grok Imagine received a major update: a new "Chibi" stylized template, "Extend from Frame" for chaining video clips (up to 15 seconds per clip), a Folders feature for organizing generated content, and a unified video + audio generation API.

Key Takeaways

  • SpaceX acquired xAI in February 2026, creating a $1.25 trillion combined entity — integrating AI with space infrastructure and targeting a SpaceX IPO in 2026
  • 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) — a $20-25 billion Tesla/SpaceX/xAI/Intel chip foundry joint venture 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 (largest available) 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.5 (July 8, 2026) is xAI's current flagship — built on the 1.5-trillion-parameter V9 foundation, trained alongside Cursor, and positioned by Musk as Opus-class; its clearest edge is token efficiency at $2 per million input tokens and $6 per million output tokens
  • 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 video generation and Aurora's integration with X create a unique distribution channel for AI-generated media

Save your progress & take the quiz

Sign up free to bookmark lessons, track which modules you've completed, and lock in what you learned with a quick knowledge-check quiz at the end of each lesson.

Tools Covered in This Lesson

🧭Recommended for you