# "Inside xAI: Building Grok Imagine in 3 Months, Videogen vs World Models, and Video Agents"
<!--
ref: @content/youtube/latent-space/inside-xai-building-grok-imagine-in-3-months-videogen-vs-world-models-and-video-agents
tags: [video generation, diffusion transformers, world models, generative UI, step distillation, audio-video models, video agents, context management]
version: 2
updated_at: 2026-11-22T08:54:00.514Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=jPtQlILfkhA)**

# Inside xAI: Building Grok Imagine in 3 Months, Videogen vs World Models, and Video Agents

*Synthesized from Ethan He in conversation with Sean and Vibhu on Latent Space, 2026-06-01.*

Ethan He, a researcher who worked on the Cosmos world model at Nvidia and then on Grok Imagine's video models at xAI, explains how video models are built and where he thinks they are heading.

## Core Thesis
Ethan argues that most of the progress in visual generation now comes from language models rather than from the diffusion models themselves, so the next phase is video agents: language models that call generators and ordinary editing tools as part of a long workflow. He also lays out why he sees real-time, interactive, long-horizon video as the definition of a world model, and says that is why he is shifting his own focus toward language models.

## Key Insights
- **Zero to a model in three months.** He joined xAI in May 2025 when there was no infrastructure, data or model and only a few engineers, and the team released Grok Imagine 0.9 about three months later. He credits strong talent, little meeting overhead (about one sync a day), existing data and model infrastructure, and the number of iterations per day, which gives a buffer to find bugs. Many gains came from small bugs in the data and training pipelines, not new algorithms.
- **Compute as bottleneck.** As coding models improve and ideas can be built in hours instead of weeks, compute may again limit how fast teams can iterate.
- **Building a video model.** First build an image model. Training data is synthetic pairs of text and visuals, because internet titles and descriptions rarely describe the video. In Cosmos, human labelers were told to describe a video in enough detail that a blind person could reconstruct it; a captioning model takes over once bootstrapped. Then train a tokenizer or VAE (a 1,000 by 1,000 image is about 1 million pixels, too many tokens for a transformer), then a diffusion transformer that learns to remove noise from visual tokens. Image models come first because they are cheaper and give denser language-to-visual mapping.
- **Compression trade-off.** Raw MP4 compression produces a latent space models struggle to learn from. A VAE with temporal compression (he cites an 8 by 8 by 4 rate in one open model) saves context length but adds lag, whereas frame-by-frame compression suits real-time use at roughly four times the sequence length.
- **Cost.** Storing a billion videos at about 5 MB each is roughly 5 PB, plus a similar volume of VAE features, so tens of petabytes; data movement can cost more than storage. Open video models run around 19B parameters dense, or something like 20B active in 100B total for mixture of experts, trained on tens of trillions of visual tokens, so training cost is comparable to language models.
- **Faster inference.** Step distillation teaches a model to generate in few steps (for example 4 to 10 instead of 100), using consistency models, distribution matching and GAN-style losses; the student only has to learn the simpler teacher distribution.
- **Audio and video together.** Grok Imagine 0.9 was an early large-scale joint audio-video model. The difficulty is aligning text, video and audio in time, captioning music in detail, and the fact that speech is mostly discrete while music is continuous.
- **World model definition.** Real-time (sub-200 ms for a digital human, far less for fast games), interactive (keyboard, mouse, voice) and long horizon (minutes or hours rather than seconds). Video extension was the first step, since reusing only the last frame degrades quality and loses voices and objects; Grok Imagine's extension keeps history. Reference-to-video accepts up to seven images as conditions. Context for long video is a research frontier, with heuristics like compressing older history.
- **Generative UI.** Demos such as a generated browser and a neural operating system hint at a front end where a diffusion model renders pixels directly from user intent, with coding models behind it. He estimates the cost today is far too high but expects it to fall within a few years.
- **Language drives visual quality.** Cosmos paired a 7B video model with a larger language model as a prompt rewriter, because video models take instructions literally. Rewriters have grown into thinking or agentic steps that fetch information first. In his view, the leading image tools are doing the same.
- **Video agents.** Language models will call generators plus tools like FFmpeg and editors, similar to the move from tab completion to Codex and Claude Code. Grok Imagine Agent Beta was a first attempt. He predicts production-grade, ad-ready agent video by the end of the year, with enterprises willing to spend more on it.
- **Safety and detection.** Grok Imagine added watermarks in countries that require them and handled takedowns quickly; SynthID-style marks can be reverse-engineered and detection by eye is getting harder.
- **Why he left.** He wanted to do research on language models that a company's priorities did not allow; he expects models to become aware of and manage their own context, including time awareness and self-modifying harnesses. He also notes switching between vision and language within ML is easier than people think.

## Actionable Takeaways
1. When starting a model team, put the effort into talent, low communication overhead and fast iteration cycles from data to eval.
2. Look first for bugs in the data and training pipelines before assuming you need a new algorithm.
3. Train an image model before a video model, and plan storage and data-movement costs for video.
4. Use a language model as a prompt rewriter in front of a diffusion model, because the generator reads prompts literally.
5. Use step distillation to cut inference steps for production serving.
6. Test reference-to-video and video extension for longer, consistent outputs.
7. Treat generators as tools inside an agent loop, alongside deterministic editors, for production-quality video.

## Notable Quotes
> "a lot of the improvements does not come from new algorithms. It comes from finding small bugs here and there in the data pipeline" — Ethan He

> "compute might be the bottleneck of iterating speed again." — Ethan He

> "It takes the instruction quite literally" — Ethan He

> "visual intelligence are actually mostly coming from language." — Ethan He

---

*Related: `@content/youtube/yifan-bth/how-to-prompt-cursor-windsurf-copilot-to-get-reliable-output` · `@content/youtube/yifan-bth/windsurf-vs-cursor-in-depth-ai-code-editor-comparison` · `@content/youtube/yifan-bth/the-complete-claude-code-workflow-90-skip-this` · `@content/youtube/steph-france/i-build-ai-agents-for-4-businesses-none-of-them-use-teams` · `@content/youtube/cole-medin/11-more-tiny-coding-agent-fixes-with-a-stupid-amount-of-payoff-learn-these-now`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*