AI Wrapper & Agent Unit Economics at Scale

Model token costs, prompt-cache hit rates, and hybrid OpenRouter routing for AI SaaS apps from 100 to 100,000 prompts per day.

Stack Cost Summary: At 25,000+ daily AI prompts, output token prices and cache hit rates dominate your entire infrastructure bill—often dwarfing hosting, database, and auth combined.

Estimate my stack cost

Verified catalog rates as of 2026-12-01 00:01 UTC.

Verified catalog
Pro engineering assumptions
Monthly Bill$10,195/moExcludes 1 untracked layer
Viral Spike RiskUncapped10× month ≈ $40,656 · Supabase 250 GB uncached egress
Flat-Rate AlternativeSave $93,665/yrvs Flat-Rate Coolify + VPS · excludes untracked
Compare flat-rate hosting →
Monthly cost from 0 to 100k monthly active users: your stack vs flat-rate alternative $0$250.0k0 users50k100k

Purple line: your stack. Green line: flat-rate swap. Dashed line: your current users.

Billing cliff alerts

Amber cards show a price jump your current inputs have already crossed.

Watch · Vercel 1 TB transfer cliff

Your 100 GB fits the included 1 TB. Past it, each extra GB adds $0.15.

Watch · Supabase 250 GB uncached egress

30 GB uncached is under the included 250 GB. Past it, $0.09/GB applies.

Watch · Clerk 50,000 MRU threshold

5,000 users is inside 50,000 included. Above it, each user adds $0.02.

Watch · Viral egress on S3

At 1 TB+, S3 egress costs $90/mo; Cloudflare R2 charges $0 egress.

Builder credit burn: Not tracked yet

Vibe-builder credit pools are not in our verified catalog yet, so this layer is excluded from the total instead of guessed.

Your 6-layer stack

Change any layer to see the bill move. The flat-rate swap uses the same sliders and assumes one VPS; capacity limits and migration effort are not modelled.

Layer Your option Monthly Flat-rate swap
1 · BuildNot tracked yetOpen-source CLI$0/mo
2 · Compute$20/moFlat VPS + Coolify$4.59/mo
3 · Database$25/moPostgres on VPS$0/mo
4 · Auth$25/moBetter Auth (OSS)$0/mo
5 · Storage & CDN$0/moCloudflare R2$0/mo
6 · AI runtime$10,125/moOpenRouter hybrid$2,385/mo
Ops time (Pro)4 h/mo on self-hosted VPS$0/moSwap: $0/mo
Total (tracked)$10,195/moSwap: $2,390/mo

Cost at 0 / 1k / 10k / 50k / 100k users

Dollars per month. Traffic and AI usage scale in proportion to your current sliders. Small figure under the swap cost: how much more (+) or less (−) your stack costs.

Users Your stack Flat swap
0 users$70$4.59+$65.41
1,000$2,095$482+$1,613
10,000$20,329$4,775+$15,554
50,000$101,406$23,855+$77,550
100,000$203,923$47,706+$156,217

Why token routing and prompt caching decide AI SaaS margins

In a classic CRUD SaaS, hosting and database costs scale with users. In an AI wrapper or autonomous agent product, LLM inference tokens quickly account for 70%–90% of COGS. Sending every classification, summarization, and boilerplate chat turn to a frontier model with $15/1M output tokens destroys gross margin on a $19/mo subscription.

Two levers change the curve immediately: prompt caching and hybrid model routing. When your system prompt, tool schemas, or RAG context repeat across turns, a 50%–80% prompt-cache hit rate cuts input token spend dramatically. Simultaneously, routing 80% of routine requests to fast budget models (via OpenRouter or direct Flash/Mini endpoints) while reserving frontier models for complex reasoning reduces blended AI spend by 5×–10×.

Modelling levers in the simulator above