
How much does an AI agent cost to run? Numbers from 4 builds
An AI agent costs three things to run: the model calls, the systems it drives, and the guardrails that stop it failing quietly. The model you pick moves the token bill most: a thousand identical agent steps cost USD 0.4…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
An AI agent costs three things to run: the model calls, the systems it drives, and the guardrails that stop it failing quietly. The model you pick moves the token bill most: a thousand identical agent steps cost USD 0.46 on DeepSeek V4.1 Flash, USD 0.65 on Claude Haiku 5.5 and USD 26 on Claude Opus 5.5. In four systems I built this year, model calls were also the easiest part to cap: USD 0.05 for a background check, USD 2.10 at most for a full research run. Proxy traffic for one price benchmark run cost USD 3.08, and the costly surprises were failures nobody saw, like an outage that ran for 8 days before it was noticed.
I’m Denys, a full-stack and AI engineer. Most articles on this question quote wide ranges with no project behind them. Below are the meters from four things I built and run, with the source of every number: config files, commit messages and measured runs. Where a number is a ceiling I set rather than a bill I paid, I say so.
Three meters, and the model is only one of them.
The pattern held in all four: the cheapest token is one you never send, and the expensive hours go into the parts around the model.
The assistant is the only one of the four where the model bill is mine. It runs on Anthropic’s Claude Agent SDK, and every agent in it has a hard ceiling in code. The SDK stops a run when it reaches the turn limit or the dollar limit.
So the most a full research run can cost is USD 0.10 + 3 × 0.50 + 0.50 = USD 2.10. That is a ceiling, not an average; what a run really costs depends on the model, which the next section prices.
Two choices cut the bill more than any price change:
One honest gap: the SDK reports the cost of every call, and I never stored it. The monthly total lives in the Anthropic console, not in the app. If I built it again, I would log cost per call from day one, so you can see which job spends the money, not only how much.
More than anything else on the token side. Below, one agent step is priced on different models. The step is about 4,000 tokens in and 500 out, the per-call estimate written into the assistant’s own code for its background check. Prices are OpenRouter’s list on 15 October 2026. OpenRouter passes through each provider’s list price and takes its fee when you buy credits (5.5% on the standard plan), not per request.
The same work costs from USD 0.46 to USD 65 per thousand steps, a spread of about 140 times. Three things follow:
Your own estimate is one line: steps per task × tasks per month × the step price of your model.
Price per token is predictable. Context is not. The bugs that hurt this assistant were all about how much text went into each call:
Every one of these lowers cost and speeds up replies at the same time. Treat context as a budget, the same way you treat money.
In the travel price benchmark, the AI part is a separate agent. It starts benchmark runs through an MCP server I built, and its tokens are billed to whoever runs that agent. What the benchmark itself pays for is the scraping behind it: residential proxies and a server full of browsers.
If your agent drives browsers, proxies or paid APIs, those meters will likely outgrow the model bill. Measure them per task before you choose a model.
When the input never needs to leave the building and the model is small. The broadcast project checks live audio channels during sports broadcasts: silence, glitches, a commentator switching to the wrong language. Sending every second of audio to an API would cost money on every call and add delay.
Instead, two open models run on the venue’s own computer: one detects speech, the other names the language. Together they hold about 24 MB of weights, the speech detector adds about 7 MB of RAM, and there is no fee per call. In a 32-channel demo, analysing every channel in real time used about 0.9 of a 2-core cloud server.
The trade-off is accuracy you have to prove yourself. On a public set of clean read speech, 30 three-second clips per language, the language model was right 93.3% of the time for Portuguese and at least 96.7% for Spanish, English and French. That is a ceiling, not a forecast: crowd noise and music under a commentator were never measured, because no audio from a real broadcast circuit was available.
This is the cost most estimates skip, and it is where my hours went. Some real failures:
None of this shows up as a token price. It shows up as hours, and as trust lost when the agent says “done” and is wrong. Budget for it: a first test on real data, alerts on the things that can go silent, and checks that a “success” produced something.
At the edges. The property certificate service collects papers from property managers’ online accounts and builds the certificate a seller needs. A script handles the main known portal, where 95% of documents are completed. Vision AI reads only the portals the scripts do not know, and that path sits behind a switch that turns it off at once.
For the people who order them, a certificate now takes 2 to 3 minutes instead of 2 to 3 weeks, and costs EUR 99 instead of EUR 200 to 300. The AI is the smaller part of that pipeline on purpose: scripts are cheap and predictable where they work, and the model is used where only reading like a person will do.
Before you ask for a quote, write down five numbers:
Then add the cost nobody quotes: a test on real data in week one, alerts for silent failures, and someone to read them.
The ceilings above are limits I set, not what was spent, and the model table is list prices, not my invoices. Every project number comes from one system and one period. Model prices change often, so check the vendors’ current pricing pages before you plan. And none of this says how long the builds took or what they cost to build; that depends on the integrations far more than on the AI.
If you are planning an agent and want to compare notes on what it will cost to run, I am happy to look at your numbers. My AI agent development page shows how I work, and the property certificate case, broadcast audio case and travel price case show three of these builds in more detail. For a bot on WhatsApp, the channel fees often outweigh the model; I worked them out per country in what a WhatsApp AI chatbot costs.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。