Building Stephenson's Primer with one treg pipeline: each AI-generated chapter costs about $3.10

tomosman · x · 2026-10-12

Developer tomosman shows how to recreate Neal Stephenson's adaptive "Young Lady's Illustrated Primer" from The Diamond Age by routing all AI services through treg.ai instead of juggling multiple API keys and subscriptions.

A build manifest in the attached image breaks down the per-chapter cost: Claude writes each night's chapter with story memory, exa.web.answer fact-checks ($0.02), gemini-3-pro-image illustrates 8 pages ($0.24), fishaudio TTS narrates ($0.09), Lyria-3-5 scores it ($0.08), and Seedance animates a scene ($2.67) — roughly $3.10 per chapter, with video generation dominating the bill.

Original post →

More from coding & agent

coding & agent channel →