FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Guides

The biggest cost of an AI agent may not be on the model bill

A per-task cost sheet can show human reviewers costing more than tokens, and tells you which line to cut first.

ShareLinkedInFacebookX

In brief

  • Tools, runtime, storage, evals and labor are billed in different units, so counting tokens alone misses them.
  • The useful denominator is completed tasks; failed runs and retries still cost money.
  • Halve each parameter in turn and rank the savings before choosing what to optimize.
Horizontal bar chart of monthly costs for a hypothetical agent handling 20,000 tickets: reviewers USD 3,000, tokens 1,000, eval upkeep 960, web search 600, model swap fund 200, automated evals 86 and runtime USD 80.
In this hypothetical example, the reviewer line far exceeds token spending. It excludes document storage, people checking eval results, eval data retention and observability. Source: the article's hypothetical spreadsheet; web search and session-hour prices from Claude's price list, eval prices from AgentCore Evaluations.

In one enterprise audit shared with the Tokenomics Foundation, direct model spend made up only about a quarter of total AI spend. That is a single case rather than an industry benchmark, but it is reason enough for caution when a client asks: “What does this agent cost per month?”

An engineer’s reflex is to open the dashboard and multiply tokens by unit price. The resulting figure is correct, but it answers a narrower question. The finance team wants the total money and labor it takes to get a piece of work done.

Quoting only the token bill invites two problems: the budget overruns as soon as the agent goes live, and the technical team pours its effort into optimizing a small line item. To avoid both, build a per-task cost sheet before committing to any number.

Every cost runs on a different meter

Tokens still deserve careful counting. Anthropic’s data shows that agents typically use about 4 times as many tokens as chat, and multi-agent systems about 15 times as many. The cost of a chat demo is therefore no basis for estimating an agent.

Tools have their own meter. On the Claude API, web search costs $10 per 1,000 searches, before the tokens for the content it retrieves. Search results are also billed as input tokens in later conversation turns, so one search can leave a cost that lasts the whole session.

Runtime is measured in time and resources. Claude Managed Agents charges $0.08 per session-hour while a session is running, on top of tokens. Amazon Bedrock AgentCore Runtime does not charge for CPU if the agent uses none while waiting on I/O; memory is billed separately, on peak consumption.

Storage keeps running even when nobody asks the agent anything. OpenAI’s file search costs $0.10 per GB per day, with 1 GB free. For a document store like that, the question to ask the client is how many GB really need to be searchable.

Labor sits on the payroll, so it gets forgotten

J.R. Storment, executive director of the Tokenomics Foundation, writes that for agent workloads, repeated tool calls, retries, idle compute and human approval steps all contribute to the cost of completing a task. The last of these is the time of the client’s own staff, so do not expect to find it on the model bill.

Evals consume labor too. Hamel Husain and Shreya Shankar say that on the projects they have worked on, 60-80% of development time went to error analysis and evaluation; this is their experience, not a controlled study. LLM-as-Judge evaluators, they say, need more than 100 labeled examples and weekly maintenance.

Anthropic makes a similar point: an eval suite stays useful only with continuous care and a clear owner. The “eval upkeep” line on the cost sheet therefore needs both a number of hours and a person’s name.

Last comes the day the model retires. Anthropic gives at least 60 days’ notice for publicly released models and advises testing applications thoroughly on the replacement. You may not know the date yet, but you can budget the labor for it from the start.

A cost sheet for 20,000 tickets a month

Take a hypothetical agent that handles 20,000 support tickets a month. The web search and session-hour prices come from the Claude price list above. The eval price is borrowed from AgentCore Evaluations: $1.50 per 1,000 evaluations with a custom evaluator, model spend billed separately.

Every other number is an assumption for you to replace with your own measurements.

Item Calculation USD/month
Tokens 20,000 × 0.05 1,000
Web search 60,000 searches × 10/1,000 600
Runtime 3 minutes/ticket = 1,000 hours × 0.08 80
Automated evals 4,000 runs × (0.0015 + 0.02 model spend) 86
Human reviewers 5% of tickets × 6 minutes = 100 hours × 30 3,000
Eval upkeep 16 hours × 60 960
Model change reserve 40 hours/year × 60 ÷ 12 200
Total of the lines above 5,926

The eval line uses a formula from Arize, an eval tooling vendor: traffic × sampling rate × number of evaluation surfaces × evaluator cost, plus human review and data retention. Sampling 10% across two surfaces gives 4,000 runs.

The sheet deliberately leaves out four items: document storage, human review of eval results, eval data retention and observability. They depend on each client’s data volume and processes, so you need to add those lines in real use. That makes $5,926 the floor for this example.

With OpenAI’s file search, the storage line is (GB − 1) × 0.10 × number of days. Human review of evals is samples × minutes × hourly labor rate, kept separate from the ticket reviewer line. On AgentCore, spans, logs and metrics are billed at CloudWatch prices.

Of the costs counted here, tokens account for about 17%. If 90% of tickets are resolved, or 18,000, each completed ticket costs about $0.33. Quoting the client $0.05 would understate the cost by a factor of more than six.

Which cost should you cut first?

The total does not tell you what to do. Halve each parameter while holding the others constant, then rank the savings. The number of tickets stays out of the loop because it is the volume of work the client needs done.

BASE = dict(tasks=20_000, token=0.05, searches=3, run_min=3,
            sample=0.10, surfaces=2, judge=0.02,
            approve=0.05, approve_min=6, ops_rate=30,
            eval_hours=16, eng_rate=60, migrate_hours=40)

def monthly_cost(tasks, token, searches, run_min, sample, surfaces,
                 judge, approve, approve_min, ops_rate,
                 eval_hours, eng_rate, migrate_hours):
    model = tasks * token
    tools = tasks * searches * 10 / 1000
    runtime = tasks * run_min / 60 * 0.08
    evals = tasks * sample * surfaces * (1.5 / 1000 + judge)
    review = tasks * approve * approve_min / 60 * ops_rate
    upkeep = eval_hours * eng_rate
    migration = migrate_hours * eng_rate / 12
    return model + tools + runtime + evals + review + upkeep + migration

base = monthly_cost(**BASE)
saved = {k: round(base - monthly_cost(**{**BASE, k: v / 2}))
         for k, v in BASE.items() if k != "tasks"}

print(round(base))  # 5926
for k, v in sorted(saved.items(), key=lambda kv: -kv[1]):
    print(k, v, f"{v / base:.0%}")
# approve 1500 25%
# approve_min 1500 25%
# ops_rate 1500 25%
# eng_rate 580 10%
# token 500 8%
# eval_hours 480 8%
# searches 300 5%
# migrate_hours 100 2%
# sample 43 1%
# surfaces 43 1%
# run_min 40 1%
# judge 40 1%

The top three parameters all belong to the human reviewer line, and each saves $1,500. The hourly rate is outside your control, but the share of cases needing review and the minutes per case can both be improved. Halving the token bill saves only $500.

This ranking has two limits. It understates searches: the $300 is only the per-search fee, while fewer searches also mean fewer input tokens, which the code holds constant. And the top of the table rests on three assumptions of 5%, 6 minutes and $30; measure them before you trust the order.

The two parameters you can improve call for different work. To lower the review rate, find out why the agent hands cases to people. To cut the minutes, see what reviewers have to look up, then put that information directly on the review screen; this removes no control step.

Under the assumptions here, both are worth doing before switching to a cheaper model. Even so, do not drop the review step just to make the sheet look better. Separate cases reviewed because of real risk from those reviewed because data is missing, fix the second group, and lower the review rate only when eval scores do not fall.

Where to get real numbers with the client

Start by agreeing on what “completed” means. Does a ticket that is closed and then reopened the next day count? Settle this in writing, because it determines the denominator.

Next, attach the same task ID to model calls, tool calls, retries and approval steps. Average token use must cover every run, including failed ones; then divide total cost by the number of completed tasks. Retries then show up in the cost instead of vanishing into a flattering average.

For labor, ask the people doing the work before you ask their manager. Three questions are usually enough: “How many cases do you open a day?”, “How many minutes does a case take, including looking things up in other systems?” and “Which cases do you almost always approve?” The last one often points straight to what can be improved.

When you present, give low, base and high columns for the uncertain parameters. In the example above, a 10% review rate pushes the total to $8,926. One line you can use with a client: “This figure assumes a 5% review rate; after a two-week pilot, we will replace it with measured data.”

Where cost sheets go wrong

The first mistake is double counting. If the tokens measured from logs already include search results, do not add those tokens again; the web search line should carry only the per-search fee. Likewise, time a session spends waiting for a reviewer belongs on the runtime line only if the platform really bills for it.

Another mistake is mixing initial build costs with monthly costs. Labeling 100 examples is upfront work, while weekly maintenance recurs; keep them in two separate tables. And include a column comparing the current way of working, because whether $0.33 is expensive depends on what the client pays per ticket today.

How to put this skill on your resume

When an FDE job post mentions “ROI” or “production ownership”, prepare a cost story with a clear denominator. On a resume, “reduced cost per completed task with no drop in eval scores” says more than “optimized prompts”, provided you have the measurements to back it up.

Exercise: one page for one agent

Pick an agent you are running, or a personal project, and fill in the table above using 50 real runs, adding the four missing lines where they apply.

Mark each cell “measured”, “list price” or “assumption”, then run the Python code to rank the parameters. Under the table, write a single sentence: which cost you will tackle first, and what else you need to measure to be sure.

The next time a client asks what the agent costs, you will have an answer their finance team can check line by line. The line they question longest may well be one that never appeared on your dashboard.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
9 sources
Read next on the roadmap · Stage 6: MeasurementA 52/48 split can sink your A/B test before anyone winsThe same imbalance can be harmless or enough to throw out the whole experiment, and a few lines of code tell you which case you are in.