Verb
Back to blog
Building3 min read

What an in-app AI agent really costs

The model bill, the engineering that follows the first demo, and the list to price before deciding to build or buy.

Quick answer

An in-app AI agent has two costs. The model bill is usually small: a fraction of a cent to a few cents per request, depending on the model and how many calls each request makes. The large cost is engineering after the first demo: identity, confirmations, honest error handling, abuse protection, an audit trail, testing and an off switch. Building means paying for all of that up front and maintaining it; buying means paying per use or per month and getting it on day one.

A bias to declare: I sell an in-app agent, so I benefit if you buy. The build list below is everything I had to build for Verb, which is why I can write it down; price it yourself and decide.

Cost one: the model, which is the small part

Every request your users make becomes one or more model calls. The bill is input tokens times the input price plus output tokens times the output price, per call, times calls per request, times requests a month. An agent that uses tools usually makes several calls per request, because it reads the request, calls a tool, reads the result and sometimes calls another.

On current prices that lands at a fraction of a cent per request on a small model and a few cents on a large one. The LLM API cost calculator works it out for Claude, GPT and Gemini side by side from your own numbers. For most products it is the smaller line on the bill.

Cost two: everything after the first demo

The demo takes days: a model, a prompt and a tool that calls your API. What takes months is making it safe to put in front of every user. This is the list, each item something Verb needed before it could ship:

  • Identity. Knowing who is asking from a token your server signs, never from the browser's word, and forgetting them when they sign out.
  • Acting as the user. Calling your API with the signed-in person's own access instead of a master key, so the agent cannot exceed them.
  • Confirmations. Showing the real values before any change and waiting for a yes.
  • Honest results. Never reporting an action as done when it failed or the result is unknown.
  • Abuse protection. Limits for visitors who are not signed in, a bot check, daily caps, defence against prompt injection.
  • An audit trail. Who asked, what ran, with what, and what came back.
  • A test environment that runs real actions against development data, never production.
  • An off switch that takes it off every open page at once.
  • The widget itself, working inside other people's CSS and Content Security Policies, on phones, without breaking their page.
  • Keeping it working as your product, your API and the models change.

Build or buy

Build when the agent is your product: it is what you sell, it is your differentiator, and you want to own every line. The build list is then the work, not overhead. The CopilotKit alternatives post compares the toolkits for that path.

Buy when the agent is a feature that helps users get their work done in a product that is about something else. You get the list on day one and pay per use or per month. Why most in-app AI agents never ship is the longer argument.

The verdict

The model is cheap and getting cheaper; the engineering around it is what you are really pricing. With Verb there is no build bill: it starts with a free 30-day pilot, and the price after it is agreed from what the agent measurably does for your users. How to measure an AI agent pilot covers those numbers.

Frequently asked questions

How much does the AI model cost per user?

Work it out per request: input and output tokens times the price per million, times the model calls each request makes. On current prices that is usually well under a cent on a small model and a few cents on a large one. The LLM API cost calculator on this site does the arithmetic.

How long does it take to build an in-app AI agent?

A first demo that answers and calls a tool takes days. Something safe to put in front of every user takes months, because of what comes after: identity, confirmations, failure handling, abuse limits, logging and testing.

Is it cheaper to build or buy an AI agent for my product?

Buy when the agent is a feature that helps users get work done; build when the agent itself is your product and you want to own every part. Price the build list in this post in engineer-months before deciding.

Vishnu

Vishnu, founder of AskVerb @itsvishnups

Building the AI agent that lives inside a SaaS product and does the work its users ask for. Writing down what I learn along the way, including the parts I got wrong first.

More articles

Give your SaaS its own AI agent

It calls your own API as the signed-in user, confirms before it changes anything, and logs every action. Start with a free 30-day pilot, then we price it on what it actually does for your users.