AI agent development cost: what it takes to build and run one

Quotes for “an AI agent” range from a few thousand dollars to six figures because they describe different things. Here’s what each common type takes to build, what it costs to run each month at your volume, and the token maths behind it.

Build effort, person-weeks (planning ranges)

Workflow with an AI step2–5
Knowledge assistant4–10
Tool-using agent8–20
Build effort by type of agent, in person-weeks for a small senior team: the planning assumptions used in this guide, not quotes.

Three things people call an AI agent

“AI agent” covers everything from one model call inside a workflow to software that plans, uses your systems and acts on its own. Quotes differ by an order of magnitude mostly because they describe different things. Before comparing numbers, decide which of these you mean:

Three common types of AI agent
TypeWhat it doesExample
Workflow with an AI stepA fixed sequence of steps where a model does one part: classify, extract, summarise or draftRead incoming invoices, extract the fields, post them to accounting, flag the uncertain ones
Knowledge assistantAnswers questions from your documents and data, citing its sources (retrieval-augmented generation, RAG)An assistant that answers staff questions from policies, contracts and past tickets
Tool-using agentDecides which steps to take, calls your systems through tools and loops until the task is done, with approvals where it mattersInvestigate a customer issue across CRM, billing and logs, then propose and, once approved, apply a fix

Anthropic’s guidance on building agents draws the same line: “Workflows are systems where LLMs and tools are orchestrated through predefined code paths,” while agents are systems where “LLMs dynamically direct their own processes and tool usage.” It also warns that “the autonomous nature of agents means higher costs, and the potential for compounding errors.” The further down the table, the more it costs to build, to run and to keep reliable.

What it takes to build each

Build effort depends less on the model than on everything around it: access to your systems, the evaluation set, guardrails, the review step for people and the interface. These planning ranges, in person-weeks for a small senior team, are assumptions for this guide rather than quotes:

Build effort by type, in person-weeks (planning assumptions)
TypePerson-weeksWhere the time goes
Workflow with an AI step2–5One or two integrations, prompt and output schema, an evaluation set, error handling and a review queue
Knowledge assistant4–10Ingesting and chunking documents, permissions, retrieval quality, citations, an evaluation set, a chat or search interface
Tool-using agent8–20Tool design for each system, permissions, step limits, approvals, tracing, evaluation of whole tasks, failure recovery

To turn person-weeks into money, multiply by your team’s weekly rate; our MVP cost guide explains how to calibrate one with public benchmarks. As a sense of scale, the same 6 person-weeks is very different money from a small team in a lower-cost region than from a large consultancy onshore.

In our AI agent and automation work we usually recommend starting with the first type, or with a knowledge assistant, and adding autonomy only once an evaluation set shows the simpler version works.

What it costs to run every month

A production agent has six running costs. Only the first is on the model provider’s price page:

  1. Model usage, charged per million tokens of input and output.
  2. Embeddings and search for knowledge assistants: turning documents into vectors and storing them.
  3. Hosting and orchestration: the service or workflow tool that runs the steps.
  4. Tracing and evaluation tooling to see what the agent did and score changes.
  5. Human review of the cases the agent hands over. This is a cost, and the reason the agent is safe.
  6. Upkeep: re-running evaluations when models change, updating prompts and tools when your systems do.

Model prices, as listed today

Model prices are per million tokens (a token is roughly three-quarters of an English word), with output priced higher than input. List prices on the providers’ own pages:

List prices per million tokens, standard API, checked 26 October 2026 (US dollars, excluding tax)
ModelProviderInputOutputPositioned for
GPT-6 AstraOpenAI$10.00$50.00Flagship: complex reasoning and coding
GPT-6.1 SolOpenAI$2.00$10.00Balancing intelligence and cost
GPT-6 LunaOpenAI$0.10$0.50Cost-sensitive, high-volume work
Claude Fable 5.1Anthropic$10.00$50.00Demanding reasoning and long-horizon agentic work
Claude Opus 5.5Anthropic$4.00$20.00Long-running agentic and knowledge work
Claude Sonnet 5.5Anthropic$2.00$10.00Speed and intelligence
Claude Haiku 5.5Anthropic$0.10$0.50Classification, extraction and routing (prompts up to 100,000 tokens)
Gemini 4 ArgonGoogle$2.00$10.00Flagship reasoning; doubles to $4 and $20 on 1 December 2026
Gemini 3.8 FlashGoogle$0.75$3.75The Flash tier; doubles on 1 January 2027

Three things change the effective price. Batch processing, for work that can wait (OpenAI says each batch completes within 24 hours), is 50% off at all three providers. Prompt caching cuts the price of input that repeats, such as long instructions sent with every request, by up to 90–95%, with a small premium to write the cache. And tokens are not the same unit everywhere: Anthropic notes that its newer models’ tokenizer “produces approximately 30% more tokens for the same text”, so compare models on your own prompts, not on the price list alone. Very long prompts can also cost more: OpenAI’s prices rise above 272,000 input tokens, and Claude Haiku 5.5’s above 100,000.

Worked example: the monthly model bill

The agent (hypothetical): a support triage workflow that reads each incoming ticket, retrieves similar past tickets and help-centre articles, then classifies, routes and drafts a first reply for a person to approve.

Assumptions, per ticket:

  • Instructions, the ticket and retrieved context: about 4,000 input tokens.
  • Classification, routing and a draft reply: about 600 output tokens.
  • One model call per ticket, and 10,000 tickets a month.
Input tokens a month
10,000 × 4,000 = 40 million
Output tokens a month
10,000 × 600 = 6 million
Small model (Claude Haiku 5.5 or GPT-6 Luna)
40 × $0.10 + 6 × $0.50 = $7
Mid-tier model (Claude Sonnet 5.5, GPT-6.1 Sol or Gemini 4 Argon)
40 × $2 + 6 × $10 = $140
Flagship model (GPT-6 Astra)
40 × $10 + 6 × $50 = $700
Model bill a month
$7 to $700, depending on the model

Caching narrows it further. If 2,500 of the 4,000 input tokens are the same instructions and examples on every call, reading them from Claude Sonnet 5.5’s cache costs $0.10 per million instead of $2, which brings the mid-tier bill from $140 to roughly $100 a month once cache writes are included.

Two lessons follow. First, model usage for a workflow like this is often modest next to the people and engineering around it. Second, the choice of model moves it by an order of magnitude, which is why the evaluation set matters: it tells you whether the cheaper model is good enough, instead of guessing.

The rest of the monthly bill

Other running costs for the example agent (list prices checked 26 October 2026; review time is an assumption)
CostExample optionsWhat it costs
EmbeddingsOpenAI text-embedding-3-small$0.02 per million tokens embedded: indexing a large help centre usually costs cents
Vector searchpgvector in your existing Postgres, or Pineconepgvector is free open-source software (you pay for the database); Pinecone: free Starter, Builder $20 a month, Standard from a $50 monthly minimum
Tracing and evaluationLangfuse or LangSmithLangfuse: free to self-host (MIT licence), cloud from $29 a month; LangSmith: a free developer seat, Plus $39 per seat a month
OrchestrationA workflow tool or a small serviceFor example n8n Cloud Pro from €50 a month billed annually (see n8n vs Zapier), or hosting for a small service
Human reviewYour teamIf 15% of tickets need review at 2 minutes each: 1,500 × 2 minutes = 50 hours a month
UpkeepEngineering timeRe-running evaluations and updating prompts and integrations as models and your systems change

The largest line is usually human review, and it is set by your confidence threshold: the more cases the agent hands to a person, the safer and the more expensive it is. Tuning that threshold against the evaluation set is one of the most valuable things you can do after launch.

The costs quotes leave out

  • Building the evaluation set. Collecting and labelling real examples takes time from the people who know the process.
  • Access and permissions. Connecting to systems safely, with the agent seeing only what the user may see, is often the slowest part.
  • Data preparation. Documents in scanned PDFs, duplicates and outdated versions make retrieval worse until cleaned up.
  • Model changes. Providers retire and replace models; each change needs a re-run of the evaluation set and sometimes prompt changes.
  • Security and legal review of what data goes to which provider, under which terms.
  • Change management. Teams need to know when to trust the agent, how to correct it and who owns it.

How to keep the cost predictable

  • Start with a workflow. Use a fixed sequence with one model step before an open-ended agent; add autonomy only where evaluation shows it pays.
  • Route by difficulty. Send simple cases to a small, cheap model and only hard ones to a large model.
  • Cache and batch. Reuse the fixed part of prompts, and run work that can wait through batch processing at a discount.
  • Cap every run. Limit steps, tool calls and tokens per task, so a confused agent stops instead of looping.
  • Change models on evidence. Adopt a new model when it scores better on your evaluation set at an acceptable cost, not because it is new.

If you are at the point of choosing a first use case, our guide to running an AI proof of concept that reaches production covers the four weeks before any of these costs become real. For workflows built in automation tools, see n8n vs Zapier.

Sources

Every source below was read on 26 October 2026. Prices and product details change; check the current page before relying on a figure.

  1. Anthropic: Building effective agents
  2. OpenAI: A practical guide to building agents
  3. OpenAI: API pricing
  4. OpenAI: Batch API
  5. OpenAI: Prompt caching
  6. Anthropic: Pricing (Claude Platform)
  7. Google: Gemini Developer API pricing
  8. pgvector: pgvector: open-source vector similarity search for Postgres
  9. Pinecone: Pricing
  10. Langfuse: Pricing
  11. Langfuse: Self-host pricing
  12. LangChain: LangSmith pricing

Keep reading

8 min read

Most AI proofs of concept prove that a demo works. A useful one proves the feature will work on your data, at your volume and at a cost you can carry. Here’s how to scope, run and judge one in a few weeks.

8 min read

Zapier is the quickest way to connect thousands of apps; n8n gives you code, self-hosting and pricing that doesn’t grow with every step. Here’s how they compare at real volumes, and when a workflow should be code instead.

7 min read

Buy software for work every company does the same way; build for the work that makes yours different. Here’s a framework for telling them apart, a five-year cost comparison you can rerun with your own numbers, and the option in between.

Start a project

Have a process worth automating?

Tell us what you’re building and where you’re stuck. A senior engineer will reply within one business day with honest questions and a suggested first step.

What happens next

  1. 01We review your briefAn engineer reads every message and replies within one business day.
  2. 02Discovery callAbout 30–45 minutes on your goals, constraints and what a good outcome looks like.
  3. 03Written proposalScope, approach, team, timeline and an estimate. No charge and no obligation.