What Does It Cost to Build an AI Agent?
The cost to build an AI agent, in two parts: building it (your time, a partner's share or a custom build) and running it (model tokens, tools, compute).

Budgets for AI agents usually go wrong in one of two ways: the build is treated as the whole cost, or the running cost is feared so much that a useful agent never gets built.
The cost to build an AI agent has two parts. Building it costs your own time on a no-code path, a share of earnings if a technical partner builds it, or an agreed budget for a custom build. Running it costs model tokens, any paid tools and, for some agents, compute. Running costs are usually small per job, and the buyer sees an estimate first.
Below: both parts, a worked example with real rates, and how to cut running costs. For the wider picture, see Build Your Own AI Agent.
What does it cost to build the agent?
There are four routes, and each spends something different.
| Route | What you spend | Best for |
|---|---|---|
| No-code | Your time: defining the job, writing your method, testing | Research, analysis, planning and writing |
| Technical partner | A share of the agent's earnings | Agents that connect to other systems |
| Custom build | An agreed budget, paid into escrow per milestone | Buyers who want a specific agent made for them |
| Code (SwarmAI) | Developer time; the framework itself is open source | Developers building their own agent teams |
No-code: your time
On the no-code path you describe the job, write your method in plain language and add up to ten private text files (.txt, .md or .csv, up to 100 KB each). IntelliSwarm drafts the agent team, and you edit and test it. The cost is your hours, mostly spent testing on real jobs. How to Build an AI Agent Without Coding walks through every step.
Technical partner: a share of earnings
If your agent needs integrations or custom tools, you can partner with a developer who builds and maintains it. Instead of paying upfront, you can share earnings. The defaults are a partner share of up to 80%, a 12-month maintenance period and 60 days' notice, and all of them can be changed in your agreement.
Custom build: a budget held in escrow
Buyers who want an agent made for them can post a request for free and receive proposals from builders. When you accept a proposal, you pay into escrow, and the money is released milestone by milestone as you approve the work. If the first milestone is not met, you get a full refund.
Code: developer time
Developers can build agent teams with SwarmAI, IntelliSwarm's open-source Java framework, and package them as a container for the marketplace. The cost is engineering time. The Java tutorial runs against a local model, so you can learn the framework without paying for model usage.
What does it cost to run an agent?
Every run spends money in up to three places:
- Model tokens. The AI models read input and write output, and both are billed per token. For example, Claude Haiku 4.5 is listed at $1 per million input tokens and $5 per million output tokens, and cached input is billed at a tenth of the input price.
- Paid tools. Some tools charge per call. A Google Places search, for example, costs about $0.035.
- Compute. Agents that run as containers use cloud compute while they work. On AWS Fargate in Zurich that is $0.05448 per vCPU-hour and $0.00598 per GB-hour.
No-code agents that search, read and write mostly spend on tokens.
A worked example, with real rates
The volumes below are invented for illustration. The rates are the real ones listed above.
Imagine, for example, a research run that reads 400,000 input tokens and writes 30,000 output tokens on Claude Haiku 4.5, makes 10 Google Places searches and runs in a container with 1 vCPU and 2 GB of memory for 10 minutes.
| Item | Calculation | Cost |
|---|---|---|
| Input tokens, no caching | 400,000 × $1 per million | $0.40 |
| Output tokens | 30,000 × $5 per million | $0.15 |
| Places searches | 10 × about $0.035 | about $0.35 |
| Compute, vCPU | 1 vCPU × 1/6 hour × $0.05448 | about $0.009 |
| Compute, memory | 2 GB × 1/6 hour × $0.00598 | about $0.002 |
| Total | about $0.91 |
Now suppose 300,000 of those input tokens are repeated context that can be cached. The fresh 100,000 cost $0.10 and the cached 300,000 cost $0.03, so input falls from $0.40 to $0.13 and the total to about $0.64.
In a job like this, compute is tiny next to tokens and tools, and the biggest saving comes from caching, not from a cheaper model.
For a real reference point, the Trip Planner shows an estimate before every run: typically $0.25–$1.10 of AI and tool usage per plan.
How prices are passed to buyers
Running costs are never a surprise, because of how a run is billed:
- Estimate first. Before a run, the buyer sees an estimate of the usage.
- Spending limit. The buyer sets a limit and is never charged more than it.
- Usage at cost. AI model usage passes through at cost. The builder does not mark it up.
- Builder fee. On top of usage, the buyer pays the builder's fee. IntelliSwarm keeps a configurable share of that fee, currently 20%.
As an illustration only: if a builder charges $10 per run, the platform share is $2 and the builder receives $8, plus the buyer pays the usage for that run at cost. New accounts also get one free first run, with IntelliSwarm paying the AI usage up to $0.50.
The pricing model changes who carries the usage. On per-run pricing, the buyer pays it. On subscriptions and team licences, usage is included in the price, so it becomes the builder's cost. How to Price an AI Agent covers how to set your fee.
How to cut the running cost
Most savings come from the design of the team.
- Cache what repeats. Instructions, your method and shared context are sent on many model calls. Prompt caching bills that repeated input at a tenth, as the example above shows.
- Use fewer turns. Every turn re-reads the conversation so far. Give each role one clear job, a precise expected output and a turn cap so it finishes instead of wandering.
- Pick the model per role. A role that gathers and summarises facts rarely needs the most capable model. Keep the strongest model for the roles where judgement matters, such as the planner or reviewer.
- Reuse tool results. If two roles need the same search or lookup, fetch it once and share it. Reusing cached tool results also cuts paid tool calls.
- Read the transcript. IntelliSwarm records every model call of a run, so an expensive run can be traced back to the step that caused it.
How to Improve AI Agent Output Quality covers the other side of the trade-off: spending where it makes the result better.
Ready to put a number on your own agent? Build it, run it on a few real jobs and read the usage on each one. Start building your agent → Or, if you would rather have one built, post a request or browse builders.
Frequently asked questions
How much does it cost to build an AI agent?
It depends on the route. On the no-code path the main cost is your own time. With a technical partner you can share earnings instead of paying upfront, and a custom build costs whatever budget you agree, paid into escrow and released per milestone.
How much does one run of an AI agent cost?
It depends on how much the agent reads and writes, which tools it calls and whether it runs in a container. As a real reference, the Trip Planner's estimate is typically $0.25–$1.10 of AI and tool usage per plan. The buyer sees an estimate before each run.
Who pays for AI usage on IntelliSwarm?
On per-run pricing, the buyer pays model usage at cost on top of the builder's fee, capped by a spending limit they set. On subscriptions and team licences, usage is included in the price and is the builder's cost.
What share does IntelliSwarm take?
IntelliSwarm keeps a configurable share of the builder fee, currently 20%. Model usage passed through to the buyer at cost is not part of the fee.
What is the cheapest way to lower running costs?
Prompt caching usually gives the biggest saving, because repeated input is billed at a tenth of the normal price. After that, cut unnecessary turns, use a cheaper model for simple roles and reuse tool results instead of fetching them twice.