Resources

How Much Does It Cost to Add AI Features to Your App?

What it costs to add AI features to an app: build cost drivers, a worked token-cost example at December 2026 OpenAI and Anthropic prices, and ways to save.

Alex Dow

Article by

Alex Dow

Resources

•

10

mins to read

Adding AI features to an app has two costs: the one-time engineering work to build the feature well, and the ongoing API bill every time a user triggers it. For a mid-size app the API bill lands in the tens to hundreds of dollars a month, so the build work is where the real money goes. The numbers below use OpenAI and Anthropic list prices checked in December 2026.

Key takeaways

  • Build cost depends on the feature type, your data, how much the AI can touch, and how carefully you test its output. A summarize button and a support agent with account access are different projects.
  • Ongoing cost is tokens in plus tokens out, multiplied by usage. A chat feature with 20,000 requests a month costs about $200 at mid-tier model prices and about $10 on the smallest models.
  • Output tokens cost about five times more than input tokens on the models we priced, so long answers drive the bill.
  • Prompt caching, smaller models, batch processing and per-user rate limits can cut the bill dramatically.
  • Both OpenAI and Anthropic say they don't train on API data by default, but you still own what personal data you send and how long you keep it.

The types of AI features and what each involves

Chat and assistants

An in-app assistant that answers questions, helps users fill in forms or guides them through a workflow. The model is the easy part. The work is in the system prompt, the conversation history you send each turn, guardrails on what it will and won't do, and the UI for streaming answers. If the assistant can take actions (book, cancel, refund), add permissions, confirmations and logging, which is where most of the build effort goes.

Summarization and drafting

Summarize a long thread, draft a reply, turn meeting notes into action items, write a product description. These are the cheapest features to build because the input is already in your app and the output goes in front of a human who can edit it. Good first AI feature for almost any product.

Search and RAG (retrieval-augmented generation)

Let users ask questions in plain English over your own content: help docs, contracts, product catalogs, past tickets. You convert your content into embeddings (number vectors that capture meaning), store them in a vector database or Postgres with pgvector, find the most relevant chunks for each question and send those to the model with the question. The build cost lives in chunking the content well, keeping the index updated as content changes, and making sure users only retrieve documents they're allowed to see. That last part is non-negotiable in multi-tenant apps.

Image features

Image generation, photo analysis (read a receipt, check a damage photo, identify a plant), or image editing. Analysis uses the same multimodal models as text and is billed on tokens. Generation is billed differently, per image or per image token depending on the model, so check the pricing page for the exact model you'll use.

Voice

Speech to text, text to speech, or a real-time voice agent. Voice is the most expensive category to build well because latency matters so much: a two-second pause in a conversation feels broken. Audio is priced per minute or per audio token, separately from text, so model it on its own line.

What drives the build cost

Build cost is engineering time, and these are the factors that set it:

  • Feature type. A one-shot summarize button is a small piece of work. A RAG search over private data with per-user permissions is a project. An agent that takes actions on a user's behalf is a bigger one.
  • Data prep. Clean, structured data in a real database is cheap to feed a model. PDFs, scanned documents and data scattered across third-party tools need extraction and cleanup first. Our guide to API integration cost covers the integration side.
  • What the AI can touch. Read-only features are simpler. Anything that writes data, sends messages or moves money needs confirmation steps, audit logs and tight permissions.
  • Evaluation. You need a test set of real inputs and expected outputs, and you need to run it every time you change the prompt or model. Skipping this is how teams ship an assistant that confidently makes things up.
  • UX. Streaming responses, loading states, letting users edit or reject AI output, and showing sources for answers.
  • Compliance. Health, finance and children's data raise the bar on vendor agreements, logging and retention.

If you want a sense of how a specific AI feature fits into a build, our free scoping tool breaks a feature list down into pieces you can price.

How API pricing works

Text models are priced per million tokens, with separate rates for input (what you send) and output (what the model writes back). OpenAI's rule of thumb is that one token is about four characters, or three-quarters of a word in English. So 1,000 tokens is roughly 750 words.

Here are list prices for a mid-tier and a small model from each provider, per million tokens, checked in December 2026 on OpenAI's API pricing page and Anthropic's Claude pricing page:

ModelInputCached inputOutput
OpenAI gpt-6.2-sol$2.00$0.10$10.00
OpenAI gpt-6-luna$0.10$0.01$0.50
Anthropic Claude Sonnet 5.5$2.00$0.10$10.00
Anthropic Claude Haiku 5.5 (prompts up to 100,000 tokens)$0.10$0.01$0.50

Both providers list bigger, pricier models above these (OpenAI's gpt-6.2-astra at $8 input and $40 output, Anthropic's Claude Opus 5.5 at $4 input and $20 output) and older models at different rates. Both also offer a batch API at roughly half price for work that doesn't need an instant answer.

One wrinkle when comparing: identical per-token prices don't mean identical bills. Anthropic's pricing page notes that Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text. Measure token counts on your own prompts before you pick a provider on price alone.

A worked example: a support chat feature

Say you add an in-app support assistant. You have 2,000 monthly active users, and each sends 10 messages a month. That's 20,000 requests.

Each request sends about 3,000 input tokens: a 1,500 token system prompt with instructions and product info, plus about 1,500 tokens of conversation history and retrieved help articles. Each answer is about 400 output tokens, around 300 words.

  • Input: 20,000 × 3,000 = 60 million tokens
  • Output: 20,000 × 400 = 8 million tokens

On a mid-tier model (gpt-6.2-sol or Claude Sonnet 5.5, both $2 input and $10 output):

  • Input: 60 × $2.00 = $120
  • Output: 8 × $10.00 = $80
  • Total: about $200 a month, or 10 cents per user

On a small model (gpt-6-luna or Claude Haiku 5.5, both $0.10 input and $0.50 output):

  • Input: 60 × $0.10 = $6
  • Output: 8 × $0.50 = $4
  • Total: about $10 a month

On a mid-tier model with prompt caching on the 1,500 token system prompt: 30 million tokens are billed at the cached rate of $0.10 ($3), the other 30 million at $2.00 ($60), and output stays at $80. That's about $143 a month, before the small premium both providers charge to write the cache in the first place.

Notice that output was 40% of the mid-tier bill even though it's only about 12% of the tokens. Telling the model to answer briefly is a real cost lever.

And the RAG piece is close to free. Embedding 10,000 help articles of 1,000 tokens each is 10 million tokens. At OpenAI's text-embedding-3-small price of $0.02 per million tokens (checked December 2026), that's 20 cents, one time.

Now scale the example to 50,000 active users at the same usage and the mid-tier bill is about $5,000 a month. That's when the cost controls below stop being optional.

How to keep AI costs under control

Cache the parts that repeat

System prompts, tool definitions and reference documents are the same on every request. Both Anthropic and OpenAI offer prompt caching, and cached input is billed at a twentieth of the normal input rate on the mid-tier models above. Put the stable content at the start of the prompt so it can be cached. Separately, cache whole answers in your own database for questions that repeat word for word.

Use the smallest model that passes your tests

The small models above cost a twentieth of the mid-tier ones. Classification, extraction, routing and short summaries run fine on them. Run your evaluation set against the small model first and only move up for the tasks that fail. A common pattern is to route each request: small model by default, bigger model only for hard cases.

Cap output length

Set a max output token limit on every call and tell the model to be concise. Output is the expensive half.

Trim what you send

Don't resend the entire chat history forever. Keep the last few turns and a running summary. For RAG, send the five most relevant chunks, not twenty.

Batch what isn't urgent

Nightly report summaries, bulk tagging and back-filling embeddings don't need an instant answer. Send them through the batch API at roughly half price.

Rate limit per user

Put a daily or monthly cap on AI requests per user or per plan, and alert when spend jumps. One script or one abusive account can run up a bill fast. Our guide to API rate limits covers the patterns. Also set a hard spend limit in each provider's dashboard as a backstop.

Price it into your plans

If AI usage scales with customers, make heavy usage a paid tier or a metered add-on. The 10 cents per user in the example above is easy to absorb. A power user sending 2,000 messages a month isn't.

Privacy and data considerations

Every AI request sends user data to a third party. Treat it like any other data processor.

  • Training. OpenAI's data controls guide says data sent to its API isn't used to train its models unless you opt in. Anthropic's privacy center says it won't use inputs or outputs from its commercial products for training by default. Check that your account settings match, and update your privacy policy to name the providers.
  • Retention. Training isn't the same as retention. OpenAI's guide says abuse monitoring logs are kept for up to 30 days by default, and zero data retention is only available to eligible customers with approval. Know what each provider keeps and for how long.
  • Minimize. Strip names, emails, phone numbers and account numbers from prompts when the task doesn't need them. Our PII data handling guide covers the basics.
  • Permissions. In RAG and agent features, enforce the user's access rights before content reaches the model. A model can't leak a document it was never given.
  • Regulated data. If HIPAA applies to you, get a business associate agreement with the AI provider before any patient information goes in. See our post on HIPAA compliance for apps.
  • Your own logs. Logging prompts and responses helps you debug, but it's also a new copy of sensitive data. Set a retention period and stick to it.

Budgeting the whole thing

Put three lines in your budget: the build, the monthly API spend at expected usage, and the monthly API spend at five times expected usage so a good month doesn't scare you. Then add the ongoing work: prompts and models change, providers retire old models, and your evaluation set needs to grow as users find new edge cases. Our post on app maintenance cost covers the rest of that ongoing line.

Let’s Build My App builds AI features into custom apps on flat monthly plans starting at $3,000 a month (see pricing), and Alex reviews every change before it ships, prompts included. That makes the build side a known number, so the only variable left is usage.

Frequently asked questions

How much does it cost per month to run an AI chatbot in an app?

For 20,000 messages a month with about 3,000 input and 400 output tokens each, expect about $200 a month on a mid-tier model like gpt-6.2-sol or Claude Sonnet 5.5, or about $10 on a small model like gpt-6-luna or Claude Haiku 5.5, at list prices checked in December 2026.

Is OpenAI or Anthropic cheaper for app features?

At December 2026 list prices their comparable tiers cost the same per token. Real costs differ because the providers count tokens differently, so test your actual prompts on both and compare the bill, not the price sheet.

Will OpenAI or Anthropic train on my users' data?

Both say API and commercial data isn't used for training by default. They may still retain data for a period, for example for abuse monitoring, so check each provider's data controls and keep personal data out of prompts when the task doesn't need it.

What's the cheapest AI feature to add first?

Summarization or drafting over data already in your app. The input is clean, the output is reviewed by a person before it's used, and small models handle it well, so both the build and the API bill stay low.

Does adding AI make my app more expensive to maintain?

Yes, somewhat. Providers retire models, prompts need retesting when you switch, and you need to watch spend and output quality. Budget for ongoing evaluation and model updates alongside your regular maintenance.

About Let’s Build My App

Let’s Build My App is a US-based AI development agency. We design, build, and launch production-grade custom software using AI coding tools including Claude Code and OpenAI Codex, and we migrate legacy Bubble apps onto AI-coded stacks such as React, Supabase, and Firebase. Founded and run by Alex Dow. Book a free strategy call to scope your project.

You liked this article ? Share it!

Ready to turn
your idea into reality?

LetsBuildMyApp Team is ready to take on your challenge. Contact us for a free quote today!

Alex Dow, founder of Let's Build My App

Got a question?

We have an answer for you! 

How can I get a quote?

Jump on a free strategy call with our founder, Alex. You can schedule here or reach out to us directly.

How long will it take to complete my project?

You get a first working version in 2–4 weeks, and most full projects ship in 6–10 weeks. Timeline depends on feature complexity. Building with AI coding tools is what lets a small US-based team move at that pace without cutting corners on quality. Schedule a call for an exact estimate based on your scope.

What is AI-powered app development?

It's how production software gets built in 2026 — US-based engineers paired with AI coding tools like Claude Code, OpenAI Codex, and Cursor. You get real production code (React, Next.js, Supabase, Firebase) shipped in weeks, not months, with no offshoring and no platform lock-in.

Can AI-coded apps handle complex production workloads?

Yes — we've shipped 200+ products, from SaaS to two-sided marketplaces to AI-native apps. Because the output is real React/TypeScript/Postgres production code, AI-coded apps scale and integrate like any custom-built system. No platform ceiling, no vendor lock-in.

What happens after the application is deployed?

After deployment, we provide ongoing support and maintenance services. This includes regular updates, bug fixes, and addressing any changes. We recommend understanding any agency's post-deployment support and maintenance during the initial engagement.