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)
On this page
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:
| Type | What it does | Example |
|---|---|---|
| Workflow with an AI step | A fixed sequence of steps where a model does one part: classify, extract, summarise or draft | Read incoming invoices, extract the fields, post them to accounting, flag the uncertain ones |
| Knowledge assistant | Answers 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 agent | Decides which steps to take, calls your systems through tools and loops until the task is done, with approvals where it matters | Investigate 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:
| Type | Person-weeks | Where the time goes |
|---|---|---|
| Workflow with an AI step | 2–5 | One or two integrations, prompt and output schema, an evaluation set, error handling and a review queue |
| Knowledge assistant | 4–10 | Ingesting and chunking documents, permissions, retrieval quality, citations, an evaluation set, a chat or search interface |
| Tool-using agent | 8–20 | Tool 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:
- Model usage, charged per million tokens of input and output.
- Embeddings and search for knowledge assistants: turning documents into vectors and storing them.
- Hosting and orchestration: the service or workflow tool that runs the steps.
- Tracing and evaluation tooling to see what the agent did and score changes.
- Human review of the cases the agent hands over. This is a cost, and the reason the agent is safe.
- 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:
| Model | Provider | Input | Output | Positioned for |
|---|---|---|---|---|
| GPT-6 Astra | OpenAI | $10.00 | $50.00 | Flagship: complex reasoning and coding |
| GPT-6.1 Sol | OpenAI | $2.00 | $10.00 | Balancing intelligence and cost |
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | Cost-sensitive, high-volume work |
| Claude Fable 5.1 | Anthropic | $10.00 | $50.00 | Demanding reasoning and long-horizon agentic work |
| Claude Opus 5.5 | Anthropic | $4.00 | $20.00 | Long-running agentic and knowledge work |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $10.00 | Speed and intelligence |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | Classification, extraction and routing (prompts up to 100,000 tokens) |
| Gemini 4 Argon | $2.00 | $10.00 | Flagship reasoning; doubles to $4 and $20 on 1 December 2026 | |
| Gemini 3.8 Flash | $0.75 | $3.75 | The 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
| Cost | Example options | What it costs |
|---|---|---|
| Embeddings | OpenAI text-embedding-3-small | $0.02 per million tokens embedded: indexing a large help centre usually costs cents |
| Vector search | pgvector in your existing Postgres, or Pinecone | pgvector 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 evaluation | Langfuse or LangSmith | Langfuse: free to self-host (MIT licence), cloud from $29 a month; LangSmith: a free developer seat, Plus $39 per seat a month |
| Orchestration | A workflow tool or a small service | For example n8n Cloud Pro from €50 a month billed annually (see n8n vs Zapier), or hosting for a small service |
| Human review | Your team | If 15% of tickets need review at 2 minutes each: 1,500 × 2 minutes = 50 hours a month |
| Upkeep | Engineering time | Re-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.
- Anthropic: Building effective agents
- OpenAI: A practical guide to building agents
- OpenAI: API pricing
- OpenAI: Batch API
- OpenAI: Prompt caching
- Anthropic: Pricing (Claude Platform)
- Google: Gemini Developer API pricing
- pgvector: pgvector: open-source vector similarity search for Postgres
- Pinecone: Pricing
- Langfuse: Pricing
- Langfuse: Self-host pricing
- LangChain: LangSmith pricing



