๐Ÿ”๏ธ Karpathy's Pelican Experiment: Rendering LOTR into 3D with a $10 Token Budget

๐Ÿ“… August 4, 2026 ยท AI Experiment ยท Estimated read: 9 min

1. TL;DR โ€” What Happened

Andrej Karpathy โ€” ex-Tesla AI director, founder of Eureka Labs โ€” posted an experiment that took over Hacker News this week (414 points). Using Opus 5 with a 1M-token budget (roughly $10), he asked the model to procedurally render the opening passage of The Lord of the Rings into a 3D scene. The model generated 5,500 lines of code that ran for 2 hours to produce an explorable, programmatically-rendered world.

Why it matters: Not because a book passage became 3D โ€” but because of the economics. "Nobody would ever do this" content โ€” bespoke, one-off, deeply customized โ€” just became ~free to attempt. That's a category change, not an incremental improvement.

2. The Experiment: 1M Tokens, 5,500 Lines, 2 Hours

ParameterValue
ModelOpus 5 (frontier reasoning model)
Context budget1M tokens
Token cost~$10
InputOpening passage of The Lord of the Rings
OutputProcedural 3D scene generator
Code generated~5,500 lines
Runtime~2 hours to render

The method is the interesting part: instead of asking for a video or a pre-baked animation, Karpathy had the model write a procedural rendering program โ€” code that builds the world (terrain, trees, paths, atmosphere) algorithmically from the text's descriptions. The 1M-token context lets the model hold the entire book excerpt, the scene graph, and the rendering code in view at once, iterating coherently rather than generating disjointed clips.

This is the pattern that matters: long context โ†’ generate an engine, not an artifact. A video is a fixed artifact; a program is a generative system you can re-run, tweak, and extend.

3. Why "Pelican"? The Nobody-Would-Ever-Do-This Principle

The name comes from the classic LLM demo of asking for "a pelican" โ€” a trivial, silly request that showcases capability without pretense. Pelican extends that spirit to a grander scale: asking a model to do something so bespoke and so uncommercial that no human would ever have paid to build it.

Karpathy's framing: there is a vast territory of "nobody would ever do this" content โ€” a 3D rendering of one specific book paragraph, a custom tool for one person's workflow, a game about your own neighborhood. Before LLMs, all of it was economically dead on arrival. The fixed cost of bespoke creation was too high, and there was no market to amortize it.

The shift: when marginal cost of bespoke generation approaches zero, the "would anyone ever pay for this?" filter stops being the gatekeeper of what gets made. The filter becomes "would anyone ever enjoy this?" โ€” which is a vastly larger space.

4. What Karpathy Says LLMs Still Can't Do

The experiment is valuable partly because Karpathy was explicit about the boundaries he hit. Two limitations stood out:

Takeaway: the ceiling right now isn't generation โ€” it's perception and verification. Generation is cheap and getting cheaper; the human-in-the-loop for quality control is still the bottleneck. Expect this gap to narrow as multimodal models get better at watching their own outputs.

5. What This Means for AI App Developers

For anyone building on top of LLMs, the Pelican experiment is a useful calibration of where long-context capability actually is in mid-2026:

Bottom line for builders: the expensive part of bespoke software used to be the first copy. Now the first copy is ~free, and the expensive part is knowing what to make. That inverts the classic indie-hacker calculus โ€” distribution and taste beat implementation.

6. FAQ

Q: Is the rendered scene actually good?

By game-studio standards, no โ€” it's a procedural approximation of a book passage, with the rough edges you'd expect from 5,500 lines of model-generated renderer code. But that's precisely the point: it doesn't need to be polished to be valuable, because the cost of attempting it was ~$10.

Q: What exactly is "procedural rendering"?

Instead of modeling every object by hand, you write code that generates the scene from rules and parameters โ€” terrain from noise functions, trees from growth algorithms, lighting from a sun position. The model wrote this code from the book's textual descriptions of the Shire.

Q: Could this scale to a full book or a playable game?

Incrementally, yes โ€” that's the direction. The 1M-token budget already covers a substantial excerpt; multi-pass workflows (scene by scene, then assembled) could extend it further. The constraint isn't context size anymore, it's the perception/verification gap Karpathy flagged.

Q: How does this relate to AI video generation?

They're complementary. Video models generate the artifact (the clip); the Pelican approach generates the engine that produces the artifact. For interactive or explorable content โ€” where a fixed video isn't enough โ€” the program-generation route is currently the stronger play. See our AI Video Generation 2026 comparison for where the artifact side stands.

Q: Where can I follow the discussion?