AI Systems

The Token Tax: Why AI System Costs Explode Right When They Start Working

August 7, 20268 min read

The AI system that quietly bleeds you is never the one that failed. It's the one that worked. AI system costs behave backwards from every other line on your P&L — they stay invisible while the thing is a toy, and they arrive the month it becomes infrastructure.

Nobody budgets for that, because nobody prices the pilot. The pilot cost eleven dollars.

Then it started handling every ticket, every listing, every ad, every night.

Why AI System Costs Explode Right When You Start Winning

Because adoption is the multiplier, and adoption is the goal. You built the system to touch more of the business. It did. The bill is just that success, denominated in tokens.

Every founder I talk to made the same three assumptions during the demo, and all three were wrong at scale.

They assumed the happy path. In the demo the agent answers in one call. In production it retries, re-reads, re-summarizes, and calls itself twice more because the first answer didn't validate.

They assumed context stays small. It never does. You keep bolting on history and documents because it improves the output — and every one of those improvements is a recurring charge on every future run.

And they assumed cheaper models were the lever. So they spend a Saturday migrating to shave thirty percent off a bill that is about to grow four hundred percent.

You cannot save your way out of a cost that grows with your own success.

The Reframe: Run a Cost Ledger, Not a Subscription

Stop asking what your AI spend is per month. That number tells you nothing, because it has no denominator. Ask what one finished piece of work costs you, end to end.

Cost per resolved ticket. Cost per published listing. Cost per qualified lead. That is a unit economic, and unit economics are the only numbers that survive scale.

I run every system I own on the Cost Ledger — four moves, in this order: Meter, Tier, Cache, Cap. Do them in order, because each one makes the next one cheaper to get right.

  • Move 1 — Meter. Log tokens in, tokens out, model, retries, and the job type on every single call, into a table you own. Then divide by outcomes, not by runs — a job that took four attempts is one outcome that cost you four. Until you can name your cost per outcome to two decimals, every optimization you make is a guess wearing a lab coat.
  • Move 2 — Tier. Most of your workload is not hard. Classification, extraction, routing, tagging, first-pass drafts — a small fast model clears those at a fraction of the price. Default everything to the cheap tier and escalate to the expensive one only on a specific trigger: low confidence, high order value, a customer who has complained before. One model for everything is the most expensive architecture there is.
  • Move 3 — Cache. You are paying full price to re-derive the same thing thousands of times. Cache at three levels: the prompt prefix your provider will discount, the retrieved context that changes daily and not hourly, and the finished output itself, keyed on the input. Ninety percent of ecommerce support questions are forty questions in a trench coat. Answer them once.
  • Move 4 — Cap. Every job gets a hard ceiling: max retries, max context, max spend per run, max runs per hour. Not because you expect to hit it, but because a retry loop with no ceiling is a bug that bills you by the second. Alert at the ceiling, fail closed, log it. The cap is what turns a runaway night into a line in a dashboard.

Meter tells you the truth. Tier cuts the bulk. Cache kills the repetition. Cap keeps a bad night from becoming a bad quarter.

The Stack That Makes This Boring

The meter, in an afternoon

A single table in Supabase or Cloudflare D1: timestamp, job type, model, input tokens, output tokens, attempt number, outcome. Every model call writes one row before it returns. One SQL view gives you cost per outcome by job type — the only AI dashboard that has ever changed a decision of mine.

The router, in a hundred lines

A Cloudflare Worker in front of every call that picks the tier by job type and confidence, checks the cache, enforces the cap, and writes the log row. Because it sits in one place, changing your entire cost profile is a deploy — not a refactor across nine automations.

The cheapest optimization nobody runs

Force structured JSON output with a strict schema. Prose is billed by the word and then re-parsed by another call that is also billed by the word. Ask for six fields, get six fields, act on them directly. Half the retry loops I audit exist only because the first call was allowed to answer in paragraphs.

What This Looks Like Across My Ventures

At Bayani Brands, the systems that touch the most volume — support triage, listing generation, review parsing — run almost entirely on the cheap tier, and escalate on confidence. The expensive model is a specialist I call in, not the receptionist I keep on staff.

Marky AI lives or dies on this. When you sell output, inference is cost of goods sold, and every gross margin point comes from routing and caching rather than from charging more. That is not a finance detail bolted on later. It is the product architecture.

Across 200+ websites, the same discipline held before AI ever showed up: the builds that stayed profitable were the ones where I knew the cost of one unit of work. And the single most common thing I see inside AI Systems Club is a founder with a genuinely excellent system and no idea what one run of it costs — right up until the month it scales.

The Takeaway

Go look at your largest AI workflow today and answer one question: what does one completed outcome cost? If you have to guess, you are not running a system. You are running an experiment with a payment method attached.

Meter it this week. Tier it next week. The other two get easy once those exist.

Leverage is not the ability to do more work. It is the ability to do more work without the cost curve catching you.

We build these ledgers — the routers, the caches, the caps — with 500+ founders and operators inside AI Systems Club. Come build with us.

Want the full playbook? Join 500+ founders building real AI systems.

Join AI Systems Club