Menu

AI

How Much Does It Cost to Build an AI Agent?

What really drives the cost of a custom AI agent: scope, model usage, integrations, testing, and upkeep. Sourced prices only, with a way to estimate yours.

By: Irina ShvayaNovember 2, 2026

How Much Does It Cost to Build an AI Agent?

This article is part of our AI Agent Guides. See how models compare this week on the AI Agent Leaderboard, a ranking of rankings refreshed every week.

The cost of building an AI agent depends less on the AI than on the work around it. That means integrations, testing, failure handling, and upkeep. We do not quote a single price range, because we could not find a neutral source that supports one.

Treat any flat "an AI agent costs $X" figure with suspicion, including ones you find on agency sites. This guide gives you the published prices we could verify, the drivers that move the total, and a way to build your own estimate. An agent here means software that plans steps and uses tools to complete a job.

Disclosure: eSEOspace is a member of the Claude Partner Network.

Key cost facts we could verify

These are published figures, checked on 2 November 2026. They are inputs to your estimate, not a total.

Cost itemPublished figureSource
Developer pay (salary, before overhead)Median $135,980 a year, May 2025US Bureau of Labor Statistics
Claude Haiku 5.5 tokens$0.10 input, $0.50 output per million (prompts up to 100,000 tokens)Anthropic
Claude Sonnet 5.5 tokens$2 input, $10 output per millionAnthropic
Claude Opus 5.5 tokens$4 input, $20 output per millionAnthropic
Gemini 3.8 Flash tokens$0.75 input, $3.75 output per million, doubling on 1 January 2027Google
LangSmith observability$0 for 1 seat and 5,000 traces; $39 per seat with 10,000 tracesLangChain

The Bureau of Labor Statistics reports median pay for software developers at $135,980. Divided by twelve, that is about $11,300 a month in wages alone, before benefits, taxes, or a contractor's margin. It gives you a floor for thinking about staff time, not a quote.

Model prices are on Anthropic's pricing page and Google's pricing page. Tokens are the small chunks of text models read and write, and you pay separately for each direction. Google's page shows some prices rising on set dates, a reminder to check before you commit.

These prices tell you nothing about which model performs best at your job. For that, see the current AI agent leaderboard and how its methodology works.

What makes up the total

1. Scope and discovery

The cheapest project is the one that does not need an agent at all. Anthropic's own guidance says to find the simplest solution possible, and that this might mean not building an agent at all. It notes that agents often trade latency and cost for better performance.

Paying for careful scoping often saves more than anything else on this list. Write down the job, the inputs, the desired output, and what counts as failure. If you cannot explain the job to a new employee, it is not ready to automate.

2. Integrations

Each system an agent touches adds work: authentication, permissions, error handling, and rate limits. One modern app with a good API is simple. A legacy system with no API can dominate the budget.

MCP, an open standard for connecting AI to tools, may reduce this for systems with existing servers. Our MCP guide explains what is available, and custom development can cover systems without a server.

3. Model usage

This is the cost everyone asks about, and it is often smaller than the labor. It is also variable, so estimate it with arithmetic rather than guessing.

Here is a hypothetical example. Suppose one agent run uses 20,000 input tokens and 2,000 output tokens on a model priced at $2 and $10 per million. That costs $0.04 for input plus $0.02 for output, or $0.06 a run.

At 1,000 runs a month, that example costs $60 in model fees. If runs retry and read far more context, the figure can multiply quickly. Our cost per task guide explains why token price alone misleads.

4. Testing and evaluation

Agents fail in ways normal software does not, because the same input can produce different results. You need a set of test cases, a way to score results, and a routine for re-running them after any change.

This work is easy to skip and expensive to skip. A vendor quote that does not mention evaluation has left out a major part of the job. Write the test set before the build starts, so everyone agrees on what success means.

5. Security and permissions

An agent with tool access is a new way into your systems. OWASP's list of top risks for LLM applications includes prompt injection and excessive agency, meaning an agent has more power than it should. Budget for scoped credentials, logging, and a review of what the agent can touch.

Regulated data raises this cost. Health, legal, or financial workflows may need a vendor agreement, audit logs, and professional review. Ask your compliance lead to review these items before the build, when changes are cheap.

6. Human oversight

Someone will review the agent's work, at least at the start. That labor is a running cost that many budgets leave out. Decide up front which actions need review, because that choice changes the design.

Count this honestly in your business case. An agent that saves eight hours and needs five hours of checking saves three hours. That can still be worthwhile, but it is a different case than eight.

7. Monitoring and infrastructure

You need to see what the agent did and why. LangChain's LangSmith pricing is one published example of tracing tool costs, and deployment is charged separately by resources used. Add hosting, storage, and any vector database you need.

Observability is what lets you diagnose a bad output next month. Without logs, every complaint becomes a guess. Include this from day one, not as a later add-on.

8. Maintenance

Agents are never finished. Models change, vendors update prices, your tools change, and your policies change. Each of those can quietly alter behavior, so plan for re-testing.

Gartner predicted that over 40% of agentic AI projects will be canceled by the end of 2027. It cited escalating costs, unclear business value, and inadequate risk controls. Budgeting for only the initial build is one way to end up in that group.

How the options compare

We did not invent price ranges here, since quotes vary too much to generalize. This table shows how the cost shape differs by route.

RouteUpfront costRunning costMain risk
Off-the-shelf agentLowSubscription or per outcomeMay not fit your process
No-code builderLow to moderateCredits plus your timeHits limits as work gets complex
FreelancerModerateYour own upkeepSingle point of failure
Agency or consultancyHigherRetainer or support planScope growth, lock-in
In-house teamHighestSalariesHard to hire and keep busy

Before paying for custom work, check existing products for your job. Our small business list is one place to start, and our build vs buy guide walks through the decision.

Ways to lower the cost

Most savings come from design choices, not from negotiating a rate. These are the levers to raise with your developer.

  • Narrow the job. Fewer tools and fewer decisions mean less to build and test. Expand after the first version proves itself.
  • Use the right model for each step. Sorting a message rarely needs the same model as drafting a complex reply. Anthropic's price list shows a large gap between its smallest and largest models.
  • Cache repeated context. The same page lists cache reads at $0.20 per million tokens for Opus 5.5, against $4 for regular input. Long instructions that repeat on every run can benefit, though cache writes cost extra.
  • Reuse before you build. A maintained connector means fewer lines of your own code to look after.
  • Cap the run. Set limits on steps and spending per job, so a confused agent stops instead of looping.
  • Keep a person in the loop at first. Reviewing early runs is cheaper than fixing a mistake that reached a customer.

Costs people forget

Some items rarely appear in a first quote. Ask about each one so you can compare proposals fairly.

  • Staff time spent writing down the process and answering the developer's questions.
  • Cleaning the documents and data the agent depends on.
  • Training your team, and handling their doubts about the new tool.
  • Legal or compliance review of what the agent says and stores.
  • Re-testing when a model is retired or a vendor changes a price.

Do not assume any vendor is cheapest from a price table alone. Claude's larger models cost more per token than some alternatives listed above, and metered bills are hard to predict until you have real usage. Compare your own cost per finished job across vendors.

How to estimate your own cost

Use this checklist and write in your own numbers.

  • [ ] Define one job and the measure of success.
  • [ ] Count the systems involved and check whether each has an API or MCP server.
  • [ ] Estimate monthly runs and average tokens per run.
  • [ ] Multiply by a dated model price, then add a margin for retries.
  • [ ] Estimate build hours and multiply by a real hourly rate from your quotes.
  • [ ] Add hours for test cases and evaluation.
  • [ ] Add a security review, especially for regulated data.
  • [ ] Add monthly human review hours at your staff's loaded cost.
  • [ ] Add monitoring and hosting.
  • [ ] Add monthly maintenance hours.
  • [ ] Compare the total with what the job costs you today.

If the total does not beat today's cost within a period you are comfortable with, simplify the job. A narrow agent that works usually beats a broad one that doesn't.

Questions to ask for a quote

  • What is included: discovery, integrations, tests, security, documentation, and handover?
  • Which parts are fixed price, and which are hourly?
  • Who pays model and hosting bills, and is there any markup?
  • What happens to cost if we change models later?
  • How will you measure whether it works before final payment?
  • What does monthly support cost, and what does it cover?
  • Who owns the code, prompts, test cases, and logs?
  • Can another developer take this over?

Our guide to hiring an AI agent developer has more questions and red flags. When you are ready to talk about a specific job, contact our team.

Frequently asked questions

What is the cheapest way to get an AI agent?

Use an existing product before you build anything. Several vendors have free tiers or low-cost plans. Custom work makes sense when your process or data is genuinely unusual, or when per-seat or per-outcome prices become too expensive at scale.

Why won't you give a price range?

We could not find a neutral source with a defensible range. Published figures online tend to come from firms selling the service, with no clear method. Your own estimate from the checklist will be more useful than a borrowed range.

Are model costs the biggest expense?

Often not, at least at low volume. Labor for integrations, testing, and review can be larger. At high volume or with long contexts, model bills can become significant, so run the arithmetic with your own numbers.

Should I pick the cheapest model to save money?

Not automatically. A cheaper model that fails more often can cost more per completed task, because of retries and human fixes. Compare cost per finished job on your own tests.

You Might Also like to Read

Get a FREE Website Audit

Enter your website and get a 20–30 page SEO, GEO, AEO & CRO audit within 24 hours. Completely free.

Don't have a site yet? Get in touch →

Ready to speak with a marketing expert?
Give us a call! (916) 866-7893

Websites Launched
1407
Websites Launched
Marketing Experts
29
Marketing Experts
Hours of Dedicated Work
204533
Hours of Dedicated Work
Irina S.Benjamin G.Jeanette M.David G.