AI wrapper app (LLM API + usage billing)

Claude Code builds a Next.js app that calls a cheap Claude model through the API. Supabase stores users and usage counts, and Stripe charges for plans or credits. Your main variable cost is tokens, so pick the model carefully.

Who it's for: Builders turning a good prompt or workflow into a paid tool (an AI writer, analyzer, or chatbot for a niche) who can read a bit of code or are willing to learn.

Prices last verified

Disclosure: tools marked aff. program have affiliate programs. Affiliate links are labeled aff. link, and we may earn a commission at no extra cost to you. Picks are based on fit, not payout.

SPLIT 01

Day one 0–10 (you + testers)

$21.10/mo
CategoryToolPlan$/moWhy
coding agent Claude Pro
$20.00
Writes the app, API route, usage metering and Stripe webhook. Strong with Next.js + Supabase.
Cost note

$20/mo monthly or $17/mo billed annually. Claude Code is included in Pro. Heavy daily use may need Max (from $100/mo).

llm api Pay-as-you-go
$0.23
Cheapest current Claude model. Good enough for most wrapper features (rewrite, summarize, classify, chat).
Cost note

ASSUMPTION: ~5 active testers, each making 100 requests/mo of ~2,000 input + 500 output tokens. That's $0.10/MTok input + $0.50/MTok output (prompts ≤100K tokens) ≈ $0.045 per active user. Sonnet 5.5 ($2 in / $10 out per MTok) would be ~$0.90 per user, 20× more.

database auth Free
$0.00
Auth plus a usage table to meter requests per user, with row-level security so users only see their own data.
Cost note

500MB database, 50k monthly active users, 5GB egress, 1GB storage, 2 projects. Free projects pause after 1 week of inactivity.

hosting Hobby
$0.00
Zero-config Next.js deploys with preview URLs.
Cost note

Vercel's Terms of Service (section 4) limit Hobby to personal or non-commercial use, even though the pricing FAQ no longer spells it out. Move to Pro before you charge money or run ads.

code hosting Free
$0.00
Owns your code outside any AI builder. Needed for exporting, Cloudflare/Vercel deploys and Claude Code.
Cost note

Free plan: unlimited public/private repos, 2,000 Actions minutes/mo.

payments Pay-as-you-go
$0.00
Industry-standard checkout and subscriptions. Every AI builder and coding agent knows it well.
Cost note

No monthly fee. Takes 2.9% + 30¢ per domestic card charge, +1% for international cards, and $15 per dispute. Not included in the totals because it scales with revenue. You handle sales tax/VAT yourself (or use a merchant of record, see alternatives).

analytics Free tier (pay-as-you-go beyond)
$0.00
Free tier includes LLM analytics, useful for tracking cost per user and prompt quality.
Cost note

Free each month: 1M analytics events, 5K session recordings, 1M feature-flag requests, 100K exceptions. Assumes you stay under these (about 1,000 users × ≤500 events/mo).

domain .com at cost
$0.87
At-cost renewals, DNS and hosting in one dashboard.
Cost note

~$10.46/yr .com amortized monthly. Price seen on a third-party price tracker (domainoffer.net), not Cloudflare's page; Cloudflare doesn't publish a per-TLD list publicly. Check your renewal price in the Cloudflare dashboard.

Split total$21.10Excludes: Transaction fees (Stripe/MoR % of revenue), any one-time fees, and usage above stated assumptions.

Switch when…

  • You're ready to take payment. Vercel Hobby doesn't allow commercial use.
  • Testers say the cheap model's quality is wrong for the core task. Try Sonnet on that one route only.
SPLIT 02

First users ~100

$45.37/mo
CategoryToolPlan$/moWhy
coding agent Claude Pro
$20.00
Still your builder. Adds rate limiting and per-user usage caps.
Cost note

$20/mo monthly or $17/mo billed annually. Claude Code is included in Pro. Heavy daily use may need Max (from $100/mo).

llm api Pay-as-you-go
$4.50
Cheapest current Claude model. Good enough for most wrapper features (rewrite, summarize, classify, chat).
Cost note

ASSUMPTION: 100 active users, each making 100 requests/mo of ~2,000 input + 500 output tokens. That's $0.10/MTok input + $0.50/MTok output (prompts ≤100K tokens) ≈ $0.045 per active user. Sonnet 5.5 ($2 in / $10 out per MTok) would be ~$0.90 per user, 20× more.

database auth Free
$0.00
Still fits easily. With 100 active users, the 1-week inactivity pause won't trigger.
Cost note

500MB database, 50k monthly active users, 5GB egress, 1GB storage, 2 projects. Free projects pause after 1 week of inactivity.

hosting Pro (1 seat)
$20.00
Required once you're charging. Includes $20 usage credit for streaming API calls.
Cost note

$20/mo platform fee includes 1 deploying seat and $20 of monthly usage credit (vercel.com/docs/plans/pro-plan). Pro also includes the lowest Flat Rate CDN tier (1M CDN requests + 1TB data transfer/mo) at no extra cost. Assumes 1 seat and usage within the credit/CDN tier. Heads-up: Vercel is moving Data Cache (Next.js fetch cache / unstable_cache) to Runtime Cache, whose reads and writes draw from the same $20 credit once your team migrates (vercel.com/changelog, Oct 30, 2026). Build minutes draw from the same credit: new Pro teams default to Elastic build machines ($0.0035 per CPU minute), and since Nov 25, 2026 no Pro team, new or existing, gets a free Standard build slot (Standard is $0.014 per build minute) (vercel.com/pricing, vercel.com/changelog). The pull-request-only preview preset keeps build usage small. Seats: with Auto Approval on, anyone who pushes to a connected private repo is added as a $20/mo Developer seat without confirmation; turn off "Automatically add private repository committers as Developers" in Settings > Members if you don't want that (vercel.com/docs/plans/pro-plan).

code hosting Free
$0.00
Owns your code outside any AI builder. Needed for exporting, Cloudflare/Vercel deploys and Claude Code.
Cost note

Free plan: unlimited public/private repos, 2,000 Actions minutes/mo.

payments Pay-as-you-go
$0.00
Industry-standard checkout and subscriptions. Every AI builder and coding agent knows it well.
Cost note

No monthly fee. Takes 2.9% + 30¢ per domestic card charge, +1% for international cards, and $15 per dispute. Not included in the totals because it scales with revenue. You handle sales tax/VAT yourself (or use a merchant of record, see alternatives).

email Free
$0.00
Simple API for transactional email (sign-up, password reset, receipts). Good docs that AI agents get right.
Cost note

3,000 emails/mo, capped at 100/day.

analytics Free tier (pay-as-you-go beyond)
$0.00
LLM analytics + product analytics within free limits.
Cost note

Free each month: 1M analytics events, 5K session recordings, 1M feature-flag requests, 100K exceptions. Assumes you stay under these (about 1,000 users × ≤500 events/mo).

domain .com at cost
$0.87
At-cost renewals, DNS and hosting in one dashboard.
Cost note

~$10.46/yr .com amortized monthly. Price seen on a third-party price tracker (domainoffer.net), not Cloudflare's page; Cloudflare doesn't publish a per-TLD list publicly. Check your renewal price in the Cloudflare dashboard.

Split total$45.37Excludes: Transaction fees (Stripe/MoR % of revenue), any one-time fees, and usage above stated assumptions.

Switch when…

  • LLM requests run for many seconds or in long batches. Start them with Vercel Workflows on the Pro plan already in this stack (use Vercel Schedules for cron).
  • Token spend passes ~30% of revenue. Add caching or per-plan caps, or move power users to metered billing.
  • You can't risk the database pausing or need backups. Move to Supabase Pro.
SPLIT 03

Scale ~1,000

$130.87/mo
CategoryToolPlan$/moWhy
coding agent Claude Pro
$20.00
Ongoing development.
Cost note

$20/mo monthly or $17/mo billed annually. Claude Code is included in Pro. Heavy daily use may need Max (from $100/mo).

llm api Pay-as-you-go
$45.00
Cheapest current Claude model. Good enough for most wrapper features (rewrite, summarize, classify, chat).
Cost note

ASSUMPTION: 1,000 active users, each making 100 requests/mo of ~2,000 input + 500 output tokens. That's $0.10/MTok input + $0.50/MTok output (prompts ≤100K tokens) ≈ $0.045 per active user. Sonnet 5.5 ($2 in / $10 out per MTok) would be ~$0.90 per user, 20× more.

database auth Pro
$25.00
Daily backups and no pausing. Plenty of headroom for usage logs.
Cost note

$25/mo includes a $10 compute credit that covers the Micro instance, 100k MAU, 8GB disk, 250GB egress and 100GB storage. A bigger instance adds cost (Small +$15/mo, Medium +$60/mo).

hosting Pro (1 seat)
$20.00
Assumes function usage stays within the included $20 credit. Long LLM calls use function time, so watch it.
Cost note

$20/mo platform fee includes 1 deploying seat and $20 of monthly usage credit (vercel.com/docs/plans/pro-plan). Pro also includes the lowest Flat Rate CDN tier (1M CDN requests + 1TB data transfer/mo) at no extra cost. Assumes 1 seat and usage within the credit/CDN tier. Heads-up: Vercel is moving Data Cache (Next.js fetch cache / unstable_cache) to Runtime Cache, whose reads and writes draw from the same $20 credit once your team migrates (vercel.com/changelog, Oct 30, 2026). Build minutes draw from the same credit: new Pro teams default to Elastic build machines ($0.0035 per CPU minute), and since Nov 25, 2026 no Pro team, new or existing, gets a free Standard build slot (Standard is $0.014 per build minute) (vercel.com/pricing, vercel.com/changelog). The pull-request-only preview preset keeps build usage small. Seats: with Auto Approval on, anyone who pushes to a connected private repo is added as a $20/mo Developer seat without confirmation; turn off "Automatically add private repository committers as Developers" in Settings > Members if you don't want that (vercel.com/docs/plans/pro-plan).

background jobs Pro usage (Workflows + Schedules)
$0.00
Main pick for long-running or queued LLM jobs. Durable workflows pause and resume without holding a request open; Vercel Schedules (successor to Cron Jobs) covers timed jobs. Same Pro project already in this stack, so one less vendor holds your secrets.
Cost note

Verified Nov 30, 2026 from vercel.com/docs/workflows/pricing and vercel.com/pricing. Pro bills Workflow Events at $0.02 per 1K ($20 per 1M), Workflow Data Written at $0.50/GB, and Workflow Data Retained at $0.50/GB-month; all draw from Pro's $20 monthly usage credit first. Functions that run steps and Vercel Queues (orchestration) bill at standard Function/Queues rates. Vercel Schedules (public beta; vercel.com/changelog/vercel-schedules-is-now-in-public-beta, Nov 5, 2026) bills from $5 per 1M runs and $10 per 1M creations on Pro; legacy Cron Jobs stay included. ASSUMPTION at ~1,000 users: even if every request in this recipe's 100 req/user/mo starts a 1-step workflow (~6 events ≈ 600K events/mo ≈ $12) plus a few daily Schedules, usage stays inside the $20 Pro credit already counted on the Vercel line. Overage beyond that credit is excluded from the totals.

code hosting Free
$0.00
Owns your code outside any AI builder. Needed for exporting, Cloudflare/Vercel deploys and Claude Code.
Cost note

Free plan: unlimited public/private repos, 2,000 Actions minutes/mo.

payments Pay-as-you-go
$0.00
Industry-standard checkout and subscriptions. Every AI builder and coding agent knows it well.
Cost note

No monthly fee. Takes 2.9% + 30¢ per domestic card charge, +1% for international cards, and $15 per dispute. Not included in the totals because it scales with revenue. You handle sales tax/VAT yourself (or use a merchant of record, see alternatives).

email Pro (50k emails)
$20.00
The 100/day cap on Free becomes a real limit once you have hundreds of active users.
Cost note

Assumes ~1,000 users × ~10 transactional emails/mo ≈ 10k emails. That's over Free's 3,000/mo and 100/day, and well inside Pro's 50k.

analytics Free tier (pay-as-you-go beyond)
$0.00
Product analytics, session replay and feature flags in one tool, with a generous free tier.
Cost note

Free each month: 1M analytics events, 5K session recordings, 1M feature-flag requests, 100K exceptions. Assumes you stay under these (about 1,000 users × ≤500 events/mo).

errors Developer (free)
$0.00
Get alerted to crashes before users email you.
Cost note

Free Developer plan: 1 user and 5k errors/mo (sentry.io/pricing). Team is $26/mo billed annually with default prepaid data and includes 50k errors; a second person needs Team.

domain .com at cost
$0.87
At-cost renewals, DNS and hosting in one dashboard.
Cost note

~$10.46/yr .com amortized monthly. Price seen on a third-party price tracker (domainoffer.net), not Cloudflare's page; Cloudflare doesn't publish a per-TLD list publicly. Check your renewal price in the Cloudflare dashboard.

Split total$130.87Excludes: Transaction fees (Stripe/MoR % of revenue), any one-time fees, and usage above stated assumptions.

Switch when…

  • Workflows, Queues or Function usage burns through the $20 Pro credit every month. Tighten steps, add caching, or compare Cloudflare Queues / Workers Paid ($5 + $0.30/M requests).
  • You need an always-on container or a long process that doesn't fit step-based workflows. Railway Hobby ($5/mo including $5 usage) is the listed alternative — read the Oct 2026 security note first.
  • Selling globally and VAT becomes a headache. Switch billing to a merchant of record (Polar or Lemon Squeezy).

Alternatives

Lovable Pro aff. program

$25.00/mo · pricing source ↗

Beginner-friendly. Lovable Cloud includes an AI connection billed through credits, so you skip API keys at first. Watch credit burn as usage grows.

Railway Hobby (background worker)aff. link aff. program

$5.00/mo · pricing source ↗

Alternative when you want an always-on worker or a process that doesn't fit step-based workflows. Hobby is $5 minimum usage including $5 credits (railway.com/pricing). After credits: memory ≈$10/GB-mo and CPU ≈$20/vCPU-mo from the published per-second rates ($0.00000386/GB-sec, $0.00000772/vCPU-sec). Security note: on Oct 21, 2026 Railway disclosed an incident in which an attacker obtained decrypted environment variables for up to 1.85% of workspaces (~100,000); new builds and deploys were paused until Oct 22 while running services stayed up. Railway recommends rotating any secrets stored there before Oct 21. Since Oct 30, 2026 Railway auto-patches images with known CVEs and redeploys services after you regenerate database or bucket credentials (Railway changelog). Since Nov 5, 2026 workspace admins can review and revoke every workspace token, and HA database clusters support password rotation (Railway changelog). Railway published its final incident report on Nov 10, 2026: the attacker got in through a partial isolation escape in Railway's shared build infrastructure; each build now runs in its own ephemeral VM with a narrowly scoped credential, and all secret decryption is centrally audit-logged. On Nov 12 Railway said it will cover unauthorized AI-provider token spend on keys exposed in the incident when the provider won't refund it (claims requested by Nov 18, 2026). Our main pick for background jobs is now Vercel Workflows + Schedules (fit-first; payout played no role). Official incident report ↗

Polar (merchant of record)

$0.00/mo · pricing source ↗

Built for selling digital products and usage-based plans worldwide. 5% + 50¢ on Starter.

Recent changes that affect this recipe

All releases →

FAQ

How much does the AI wrapper app (LLM API + usage billing) stack cost per month?

Day one (0–10 (you + testers)): $21.10/month; First users (~100): $45.37/month; Scale (~1,000): $130.87/month. Totals exclude transaction fees and one-time fees. Prices verified 2026-11-30 from official pricing pages.

When should I move past the day one stack?

You're ready to take payment. Vercel Hobby doesn't allow commercial use. Testers say the cheap model's quality is wrong for the core task. Try Sonnet on that one route only.

Which tools are in the ~1,000 users stack?

Claude Code (Claude Pro), Claude API — Haiku 5.5 (Pay-as-you-go), Supabase (Pro), Vercel (Pro (1 seat)), Vercel Workflows (Pro usage (Workflows + Schedules)), GitHub (Free), Stripe (Pay-as-you-go), Resend (Pro (50k emails)), PostHog (Free tier (pay-as-you-go beyond)), Sentry (Developer (free)), Cloudflare Registrar (.com at cost).

Which AI coding tool does this recipe use?

Claude Code through a Claude Pro plan ($20/month). Codex (ChatGPT Plus), Devin Desktop Pro and Google AI Pro cost about the same; see our AI coding tool picker at stackspeedrun.com/ai-coding-tools/ for the full comparison.

How should I run long LLM jobs in the background?

Vercel Workflows (Pro usage (Workflows + Schedules)) is the main pick: Main pick for long-running or queued LLM jobs. Durable workflows pause and resume without holding a request open; Vercel Schedules (successor to Cron Jobs) covers timed jobs. Same Pro project already in this stack, so one less vendor holds your secrets. Cost note: Verified Nov 30, 2026 from vercel.com/docs/workflows/pricing and vercel.com/pricing. Pro bills Workflow Events at $0.02 per 1K ($20 per 1M), Workflow Data Written at $0.50/GB, and Workflow Data Retained at $0.50/GB-month; all draw from Pro's $20 monthly usage credit first. Functions that run steps and Vercel Queues (orchestration) bill at standard Function/Queues rates. Vercel Schedules (public beta; vercel.com/changelog/vercel-schedules-is-now-in-public-beta, Nov 5, 2026) bills from $5 per 1M runs and $10 per 1M creations on Pro; legacy Cron Jobs stay included. ASSUMPTION at ~1,000 users: even if every request in this recipe's 100 req/user/mo starts a 1-step workflow (~6 events ≈ 600K events/mo ≈ $12) plus a few daily Schedules, usage stays inside the $20 Pro credit already counted on the Vercel line. Overage beyond that credit is excluded from the totals.

Comparing coding agents? See the AI coding tool picker. Launching to real users? Run the security checklist first.

All prices are in USD, billed monthly unless noted, and come from each tool's official pricing page as of November 30, 2026. Usage-based costs use the assumptions in each cost note. Tools marked "aff. program" have affiliate or referral programs. Unless a link is labeled "aff. link", it goes to the plain official site and earns us nothing. If we use an affiliate link, we may earn a commission at no extra cost to you. Picks are based on fit, not payout.

Patch notes for your stack

Get price changes and new releases weekly

One short email whenever a tool in a recipe changes its price, limits or free tier.

We only store your email (with our email provider, Resend) to send the newsletter. No sharing, no tracking pixels. Unsubscribe anytime. Privacy