Cost to Build

Cost to Build an AI Chatbot App

Everyone quotes the app build and forgets the two costs that actually decide whether a chatbot app survives: inference and plumbing. Here is the honest 2026 breakdown — and the free-tier pattern that keeps your margin alive once real users start typing.

Last updated: 2026-06-08 7 min read By Ahmed Gagan, iOS Engineer
Quick Answer

The cost to build an AI chatbot app in 2026 splits into three buckets: the one-time build (DIY, freelancer, or agency), the per-message inference cost, and the server-side "plumbing" that proxies API keys and rate-limits users. Building from scratch runs an estimated $8,000–$60,000+ depending on who writes it, but the build is rarely what kills the app — uncontrolled inference and leaked API keys are. A SwiftUI boilerplate like The Swift Kit ($99 one-time) collapses the build cost to near-zero and ships the free-tier rate-limiting pattern that protects your margin from day one.

DIY (your time)
~80–160 hrs build + ongoing inference
Freelancer build
~$8,000–$25,000 (estimated)
Agency build
~$30,000–$60,000+ (estimated)
Inference (OpenAI/Claude)
~$0.001–$0.03 per message (varies by model)
On-device (Apple Foundation Models)
$0 inference (free)
Backend plumbing (Supabase)
$0 free tier → ~$25/mo Pro (as of 2026)
The Swift Kit
$99 one-time, build cost ≈ $0

What actually drives the cost of an AI chatbot app

Most cost calculators treat a chatbot like any other app — screens, auth, polish. That misses the part that makes a chatbot a chatbot: every message a user sends costs you money, and every API key you ship can be stolen. Those two facts dominate the real budget. The build cost (UI, auth, history, settings) is largely fixed and one-time. The variable cost is inference — the per-token charge from OpenAI, Anthropic, or whichever model you call. A chatty power user on an expensive model can cost more in a week than a casual user does in a year. That asymmetry is why a flat subscription with no usage ceiling quietly bankrupts naive chatbot apps. The third driver is plumbing: you cannot embed an OpenAI key in a shipped iOS binary (it will be extracted within days), so you need a server-side proxy plus per-user rate limiting. That backend work is invisible in most quotes but non-negotiable in production.

  • Inference is variable and unbounded unless you cap it — model choice swings cost 30x
  • API keys must live server-side; a leaked key is an open invoice
  • Per-user rate limiting is the single most important margin control
  • On-device models (Apple Foundation Models) cost $0 per message and run offline

The realistic 2026 cost breakdown

Here are honest ranges (estimates, not quotes). DIY: if you already know SwiftUI, expect roughly 80–160 hours to build a production chat UI, streaming, history, auth, a key-proxying backend, and rate limiting — call it weeks of evenings. Your cash cost is mostly inference and a backend tier. Freelancer: an experienced iOS contractor building a chatbot MVP with a secure backend is commonly an estimated $8,000–$25,000 depending on scope and region. Agency: full design-plus-engineering shops typically land an estimated $30,000–$60,000+ for a polished, store-ready chatbot app. None of those numbers include the recurring inference and infrastructure that start the day you launch — that is a separate, ongoing line that scales with usage, not a one-time fee.

  • DIY: ~80–160 hrs of your time + inference + backend tier
  • Freelancer MVP: ~$8,000–$25,000 (estimated, varies by scope/region)
  • Agency build: ~$30,000–$60,000+ (estimated)
  • All exclude ongoing inference — that scales with active users, not a fixed line

The shortcut: a $99 boilerplate that ships the margin pattern

The Swift Kit collapses the entire build column to a $99 one-time cost with unlimited commercial projects and lifetime updates. It ships streaming chat against OpenAI (ChatGPT) and Anthropic Claude, plus Apple Foundation Models for free, on-device inference — already wired. More importantly for a chatbot's economics, the keys are proxied server-side through Supabase Edge Functions, and those same Edge Functions implement the per-user rate limiting that caps how much any single user can cost you. That is the free-tier pattern: give every user a metered allowance of cloud messages (or route them to the free on-device model), then gate heavier usage behind a RevenueCat paywall. RevenueCat is included, so the moment a user hits their cap you can present an upgrade instead of eating an unbounded bill. You are not just saving the build cost — you are starting with the exact architecture that keeps inference from outrunning revenue. The trade-off is honest: a boilerplate is iOS/SwiftUI-only and you still pay for your own inference and any paid backend tier. It removes the build and the plumbing, not the running cost of the model itself.

  • Build cost drops from thousands to $99 one-time
  • Server-side key proxy + per-user rate limiting included via Supabase Edge Functions
  • Free on-device tier (Apple Foundation Models) absorbs casual usage at $0
  • RevenueCat paywall converts heavy users before they erode margin

Ongoing costs — the part that never stops

The build is once; inference and infrastructure are forever. Budget these as a running line, not a launch expense. Inference: roughly $0.001–$0.03 per message depending on model and length (estimate, varies widely). Cheap models and short prompts keep this near the floor; frontier models and long context push it up fast. Route casual chat to Apple Foundation Models ($0) and reserve paid cloud calls for users who upgrade. Backend: Supabase runs a free tier that covers early users, stepping up to roughly $25/mo for Pro as you grow (as of 2026). Analytics via TelemetryDeck and other tooling are typically modest at indie scale. The single biggest lever on your monthly bill is not the vendor you pick — it is whether you enforce a per-user cap. Without it, a handful of heavy users define your costs. With the free-tier-plus-paywall pattern, your inference spend tracks your paying users, which is exactly where you want it.

  • Inference: ~$0.001–$0.03 per message (estimate; depends on model + length)
  • Supabase: $0 free tier → ~$25/mo Pro as you scale (as of 2026)
  • On-device fallback keeps free users at $0 inference
  • Margin lives or dies on the per-user rate cap, not the vendor choice

Build from scratch vs The Swift Kit

The Swift Kit ($99) vs Build from scratch comparison
FeatureThe Swift Kit ($99)Build from scratch
Upfront build cost$99 one-time$8,000–$60,000+ (estimated)
Streaming chat UI (OpenAI/Claude)IncludedBuild + debug yourself
API keys hidden server-sideSupabase Edge FunctionsDIY proxy or keys leak
Per-user rate limitingBuilt-in Edge Function patternDesign + build from zero
Free on-device model fallbackApple Foundation Models wiredManual integration
Paywall to charge for usageRevenueCat includedSeparate integration
Time to first working chatHoursWeeks
Lifetime updatesYesYou maintain it

Frequently Asked Questions

How much does it cost to build an AI chatbot app in 2026?
The build itself is an estimated $8,000–$25,000 with a freelancer or $30,000–$60,000+ with an agency, while DIY costs ~80–160 hours of your time. But the build is only one bucket — you also pay ongoing inference (~$0.001–$0.03 per message, estimated) and backend costs that scale with usage. A $99 boilerplate like The Swift Kit removes the build cost almost entirely.
Why is inference cost the dangerous part of a chatbot app?
Because it is variable and unbounded. Every message a user sends calls a paid model, and a single power user on an expensive model can cost more than dozens of casual users combined. If you sell a flat subscription with no usage cap, heavy users can cost more than they pay. Per-user rate limiting and a free on-device tier are how you keep inference tracking revenue instead of outrunning it.
Can I just put my OpenAI key in the app to save backend cost?
No. Keys embedded in a shipped iOS binary get extracted quickly, and a leaked key is an open invoice anyone can run up against your account. You need a server-side proxy. The Swift Kit handles this through Supabase Edge Functions, which hide the key and enforce per-user rate limits in the same place — the plumbing most cost estimates leave out.
What is the 'free-tier pattern' for protecting margin?
Give every user a metered allowance of cloud messages — or route them to Apple Foundation Models, which run free and on-device — then gate heavier usage behind a RevenueCat paywall. Casual users cost you nothing, and the users who actually drive inference cost are the ones paying you. The Swift Kit ships this architecture out of the box.
How does a $99 boilerplate compare to building from scratch for a chatbot?
It collapses the build column from thousands of dollars (or weeks of your time) to a $99 one-time cost, and it ships the chatbot-specific plumbing — server-side key proxy, per-user rate limiting, on-device fallback, and a paywall — already wired. You still pay your own inference and any paid backend tier, but the architecture that protects your margin is there on day one instead of something you design under pressure after launch.

Keep exploring

Skip the build, keep the margin

The Swift Kit ships streaming OpenAI and Claude chat, free on-device Apple Foundation Models, server-side key proxying, and per-user rate limiting — for $99 one-time. Start with the architecture that protects your margin instead of building it after your first surprise bill.

Get The Swift Kit — $99

One-time purchase · Lifetime updates · 14-day refund