AI Cost Lab
Simulators you can break and fix: cost per outcome, the token-efficiency levers, evals as the gate, agents going non-linear, and pricing what AI costs you. Three tracks, twenty steps, one fictive company (Northbeam) whose numbers add up. Built by Asbjørn Jørgensen; the seven levers it teaches are also the seven levels of Caveman.
Beginner: know what one request costs
- What does one request cost?
- Cost per outcome, not price per token
- Where do the tokens actually go?
- Tag it, or you can't fix it
- Catch the leak before the invoice does
- Your first lever: right-size the model
- You can now answer "what does one request cost?"
Advanced: cut tokens without cutting quality
- Cascading: cheap first, escalate on doubt
- Prompt caching: the cheapest tokens are the ones you don't resend
- Context trimming and output caps
- Prompt compression, and how it fights your cache
- Evals: the rule that makes every lever safe
- Agents: step limits, budgets and circuit breakers
- Batch and distillation: the deferred wins
- The efficiency stack, in effort order
Expert: agents, trajectories and pricing
- Trajectory cost is quadratic in steps
- Compaction that respects the cache
- Route per step, not per request
- Evaluate trajectories on outcome and cost
- Per-tenant budgets and fair use
- Price what AI costs you
- The credit cliff and the harness effect
- From reporting the news to making it
Also: the theory map and the glossary. The lab needs JavaScript to run the simulators.