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.
More from coding & agent
- Claude Code Pushes Urgent Security Update Across All Installations — umeshonai · 2026-10-23
- Claude cut a 2.6-hour video export to 20 minutes — but only after being told to rebuild the server — byhewar · 2026-10-23
- 3 flight-booking rules my AI agent checks that I'd never do by hand — Efistoffeles · 2026-10-23
- OpenJet claims Qwen3.8-27B coding runs 1.9x faster than llama.cpp on one RTX 3090 — JeremyCMorgan · 2026-10-23
- Building an autonomous SEO agent in Hermes with three skills: programmatic pages, Keywords Everywhere, DataForSEO — EXM7777 · 2026-10-23
- Building a sports betting AI agent with onchain execution and human approval by default: architecture and lessons — Dry-Comfortable-2678 · 2026-10-23