How much does an AI agent cost per task?
An agent that plans, calls tools across several turns, and completes a task end to end.
The short answer
On Claude Sonnet 5, at 30,000 input and 1,200 output tokens per call. Thirty thousand input tokens is the accumulated context by the middle of an agent run: the system prompt, the tool definitions, and every tool result so far. Treat one call here as one turn of the loop, not one task.
Your numbers
Now put your own in
The fields open with the profile above. Change them to match your feature and the read updates as you type.
Your numbers
Rough numbers are fine. You are checking whether you are near the line, not being exact.
The usual right answer for production features. Near-frontier quality at a fraction of the cost.
Everything you send it
What it sends back
How often one user uses it
What it costs you
What drives the cost
Accumulated context. An agent resends its entire history on every turn, so cost grows with the square of the run length rather than linearly. A ten-turn task costs far more than ten single calls, and this is the arithmetic that surprises people most.
Where the estimate goes wrong
Counting tasks instead of turns. Ask how many model calls one completed task actually takes, then multiply. A task that quietly takes fifteen turns rather than the five you assumed is three times the cost you budgeted, and nothing in the product surface tells you it happened.
What this does not price
Agent runs have a long tail: most finish quickly and some loop. Without a hard cap on turns, the tail sets your bill, not the median. Before building, decide what the agent does when it has not finished after N turns, and price the cap rather than the average.
Other features people cost
Customer support agent
A conversational agent answering customer questions against your help centre and ticket history.
Retrieval-augmented search
Semantic search over your own documents, with a generated answer and citations.
Document summarisation
Turning long uploaded documents into a short summary or structured extract.
Next step
If multi-step agent workflow is on your roadmap and the number here made you pause, that is exactly the conversation worth having before an engineer starts.