How much does it cost to build a custom AI agent?
A custom AI agent has two budgets: the one-time cost to build it and the monthly cost to run it. Building is mostly engineering time. In our hypothetical scenarios below, using published Vietnam rates, a proof of concept comes to roughly US$12,000, a production MVP connected to one business system about US$39,000, and an agent integrated with several enterprise systems about US$93,000. Running costs depend on usage: language model fees for a moderate-volume agent can range from a few hundred to a few thousand dollars a month, plus hosting, monitoring and maintenance.
Key takeaways: Budget separately for building and running the agent. In our hypothetical Vietnam-rate scenarios, a proof of concept is about US$12,000, a production MVP about US$39,000 and a multi-system agent about US$93,000. Model fees for 20,000 tasks a month range from roughly US$290 to US$780 depending on model routing.
The biggest cost driver is rarely the model. It is the work around it: connecting the agent to your data and systems, controlling what it is allowed to do, and testing that it behaves correctly.
This guide breaks down both budgets, shows how to estimate token costs, and lists the costs teams most often forget.

What is an AI agent, and why does that affect cost?
An AI agent is software that uses a large language model (LLM) to decide which steps to take toward a goal, and then calls tools such as APIs, databases or business systems to carry out those steps. A chatbot that answers questions from a document set is simpler. An agent that reads a request, checks inventory in your ERP, drafts a purchase order and asks a manager for approval is more complex, because every tool call needs integration, permissions and testing.
Cost grows with four things:
- The number of tools and systems the agent can use.
- The level of autonomy: suggesting an action costs less to build safely than executing it.
- The data it needs: retrieval-augmented generation (RAG) over your documents adds ingestion, indexing and evaluation work.
- The consequences of a mistake: agents that touch money, customer data or production systems need stronger controls and more testing.
What goes into the build cost?
The table lists the main work packages. Not every project needs all of them.
| Work package | What it covers | Effort driver |
|---|---|---|
| Discovery and design | Use case, success metrics, risks, architecture | Clarity of the process being automated |
| LLM integration and orchestration | Prompts, tool definitions, model routing, error handling | Number of steps and tools |
| Retrieval (RAG) | Document ingestion, chunking, embeddings, vector search | Volume, formats and quality of source documents |
| System integrations | APIs to ERP, CRM, ticketing, email or databases | Number of systems; quality of their APIs |
| Permissions and approvals | Identity, role-based access, human-in-the-loop steps | How much the agent may do on its own |
| Evaluation and testing | Test sets, accuracy checks, red-teaming, regression tests | Risk level and number of tasks |
| User interface | Chat, sidebar, email or embedded workflow | Number of channels |
| Deployment and observability | Hosting, logging, tracing, cost monitoring, alerts | Compliance and uptime needs |
Evaluation deserves more budget than teams expect. You need a set of real example tasks with known correct outcomes, and you need to rerun it whenever prompts, models or data change. The OWASP Top 10 for LLM Applications lists risks such as prompt injection, excessive agency and sensitive information disclosure that your tests should cover (OWASP).
Three build scenarios
The scenarios below are hypothetical. They use the published Vietnam averages per person-month (about US$2,505 for a developer, US$3,125 for a senior engineer and US$4,465 for a project manager) explained in our guide to what software development costs in Vietnam. QA is priced at the developer rate.
| Scenario | Scope | Team | Duration | Build cost |
|---|---|---|---|---|
| Proof of concept | One use case, read-only data, internal users, no integrations beyond a document set | 1 senior, 1 developer, 0.5 PM | 1.5 months | ≈ US$11,800 |
| Production MVP | One workflow, RAG plus one system integration, approval step, basic monitoring | 1 senior, 2 developers, 1 QA, 0.5 PM | 3 months | ≈ US$38,600 |
| Enterprise integration | Several workflows, 3+ systems, role-based permissions, audit logging, full evaluation suite | 2 seniors, 3 developers, 1 QA, 0.5 PM | 5 months | ≈ US$92,500 |
Add a contingency of 10% to 20% for unknowns, and remember your own team's time for requirements, testing and approvals. Teams in the US or Western Europe will cost more per month for the same plan.
Choosing the right first stage matters as much as the rate. Our guide to PoC vs MVP for AI products explains when to stop at a proof of concept and when to build for production.
How much does it cost to run an AI agent?
Running costs have four parts:
- Model usage. LLM providers charge per token for input and output.
- Infrastructure. Hosting for the application, the vector database and background jobs.
- Observability. Logging, tracing and evaluation tools.
- Maintenance. Updating prompts, re-indexing documents, handling model version changes and fixing issues.
Estimating model costs
Token prices vary by model and change often, so check the provider's price list when you estimate. As an example, Anthropic's published API prices on November 28, 2026 were US$2 per million input tokens and US$10 per million output tokens for Claude Sonnet 5.5, and US$0.10 and US$0.50 for Claude Haiku 5.5 (Anthropic pricing).
Here is a hypothetical estimate for an agent that handles 20,000 tasks a month. Each task makes three model calls, and each call uses about 4,000 input tokens (instructions, retrieved context and conversation) and 500 output tokens.
| Setup | Cost per task | Monthly cost (20,000 tasks) |
|---|---|---|
| All three calls on Claude Sonnet 5.5 | ≈ US$0.039 | ≈ US$780 |
| One call on Sonnet, two simpler calls routed to Haiku | ≈ US$0.014 | ≈ US$286 |
The arithmetic for the first row: 12,000 input tokens × US$2 per million plus 1,500 output tokens × US$10 per million gives about US$0.039 per task.
Three techniques usually reduce model costs:
- Model routing: use smaller models for classification, extraction and routing, and larger models only where reasoning matters.
- Prompt caching: providers discount repeated input such as long system instructions.
- Less context: retrieve fewer, more relevant passages instead of sending whole documents.
Infrastructure and maintenance
Infrastructure for a moderate-volume agent is often modest compared with engineering time. An open-source vector extension such as pgvector lets you store embeddings in an existing PostgreSQL database instead of adding a separate service (pgvector).
Maintenance is the cost most often left out. Budget engineering time every month for prompt and evaluation updates, document re-indexing, dependency updates and reviewing logs for failures. A common planning assumption is a small part-time allocation for a single agent, growing with the number of workflows.
Which costs are usually missed?
- Data preparation. Cleaning, de-duplicating and structuring source documents often takes longer than building the retrieval pipeline.
- Access and security reviews. Your security team will need to approve how the agent authenticates and what it can reach.
- Human review time. If the agent proposes actions for approval, someone on your side spends time approving them. Count that time in the business case.
- Model changes. Providers retire and replace models. Each change needs your evaluation suite rerun and sometimes prompt changes.
- Governance. In the EU, the AI Act places obligations on certain AI systems; in the US, the NIST AI Risk Management Framework is a common reference for managing AI risk (NIST AI RMF). Our EU AI Act governance checklist covers the data side.
How to keep the budget under control
- Start with one workflow that has a clear owner and a measurable outcome.
- Limit autonomy at first. Let the agent draft and recommend; add automatic execution only after the evaluation results justify it.
- Build the evaluation set early, before most of the engineering work, so you can measure progress.
- Track cost per task from day one, alongside accuracy and time saved.
- Plan the next stage only after the first one proves value.
When is a custom agent not worth it?
A custom agent may not be the right choice if an off-the-shelf tool already covers the workflow, if the process is rare or changes every few weeks, or if the data the agent needs is unavailable or unreliable. In those cases, improving the process or the data first usually delivers more value per dollar.
How FIX Solutions approaches AI agent projects
FIX Solutions builds AI solutions through its technology brand, FIX Partner, and its AI brand, FIX Intelligence. We typically start with a short discovery of 1 to 2 weeks to define the workflow, the data, the risks and the success measures, then move to a proof of concept or an MVP. Our stack includes OpenAI, Gemini and Claude models, LangChain and LlamaIndex, and pgvector, and we choose models per task to balance quality and running cost. Our article on AI agents in ERP shows how we think about permissions and approval boundaries.
Frequently asked questions
Is it cheaper to use a no-code agent platform?
It can be for simple, internal use cases. Costs rise when you need custom integrations, strict permissions or data that must stay in your environment.
Should we fine-tune a model for our agent?
Most business agents do not need fine-tuning. Retrieval over your own documents and good prompts usually come first; fine-tuning makes sense for specific style or format needs at high volume.
How long does it take to build a production agent?
In our scenarios, a production MVP takes about three months. FIX Partner's indicative range for an MVP is 4 to 12 weeks, depending on scope.
Estimate your agent
Book a free 30-minute consultation to review your use case, data and integrations. If you share a requirements document, FIX Solutions prepares a quotation at no charge. Learn more about our AI development services.
Sources and further reading
- Anthropic: Claude API pricing, accessed November 28, 2026.
- OWASP Top 10 for LLM Applications, accessed November 28, 2026.
- NIST AI Risk Management Framework, accessed November 28, 2026.
- pgvector: open-source vector similarity search for PostgreSQL, accessed November 28, 2026.
- Offshore-Kaihatsu.com: Offshore Development White Paper 2025 rates by country (Japanese), accessed November 27, 2026.
Technical contact: Chung, CTO.



