Caylent

Caylent Awarded Five 2026 AWS Partner of the Year Awards

Artificial Intelligence | News & Announcements

Understanding the Costs of AI Agents with AgentCore Observability cost visibility

Explore the newly launched Amazon Bedrock AgentCore Observability cost visibility where you can see the estimated cost of every run across model inference, Runtime, Memory, Gateway, Code Interpreter, and Browser, and trace expensive sessions back to the exact call that drove them.

6 min read
On this page

Do you know how much your agent costs per execution? Most teams building AI agents only look at the monthly cost and never dive into the unit economics of their AI agents. A monthly perspective is useful for cost controls, but it hides the differences across executions. This makes it difficult to tie the cost of an AI agent to the value of the task it solves.

With the newly launched AgentCore Observability cost visibility, you can follow the cost of an agent's execution in Amazon Bedrock AgentCore Observability. Beyond model costs, you can now see the cost of other AgentCore resources alongside Bedrock inference, detailed per execution. If a session costs several times the average, you can open its traces and see which calls contributed most to the total, and what happened.

How AgentCore Observability cost visibility Estimates the Cost of a Run

An OpenTelemetry span records an operation such as a model call or a request through AgentCore Gateway. The spans for one request form a trace, and several traces can belong to one session, which you can see in AgentCore Observability. AgentCore Observability cost visibility adds a cost estimate to the OpenTelemetry span for each supported operation, enabling you to see the total cost for a session and for each span, in your preferred observability tool.

At launch, the estimates cover Bedrock model inference plus AgentCore Runtime, Memory, Gateway, Code Interpreter, and Browser. For a model call, you can see how input, output, and prompt caching contributed to the estimate. AgentCore Observability cost visibility automatically applies the model’s public rates to the recorded usage, making it easier to compare two models on the same request. Even if one uses fewer tokens overall, it can cost more if a larger share of those tokens is billed at a higher output rate. If you have private pricing, the resulting estimate can differ from what you pay. You can check actual spend against the Amazon Bedrock line items in your AWS Cost and Usage Report.

With AgentCore harness, cost enrichment works out of the box. If you run your own harness on AgentCore Runtime, you’ll need to instrument it with the AWS Distro for OpenTelemetry. Agents hosted elsewhere, including on Amazon EKS or AWS Fargate, can also send their telemetry through Amazon CloudWatch for enrichment. Sending traces from an agent on AWS Fargate, for example, lets you analyze its Amazon Bedrock calls even though the AWS Fargate compute charge is outside the Amazon Bedrock estimate.

Finding the Call that Made a Session Expensive

To find the call that made a session expensive, start at the Cost tab in AgentCore Observability. Pick an agent and a time range, and you see total cost, session count, and average cost per session side by side. You can also view the session scatter plot to easily identify outliers and the change in costs for each session.

Each point represents a session. Select one to see how much of its estimated cost came from inference, memory, and other supported resources. If you use evaluations, the breakdown shows separate estimates for running the agent and evaluating it. Opening the session’s list of traces allows you to go a level deeper. A session with several requests can have one trace that accounts for most of the spend, or it can be spread more or less evenly. Within a trace, you can inspect the sequence of operations and open a model-call span to see its token usage and estimated cost.

Suppose a document-processing agent has an expensive session. If most of the cost came from one model call with a large input, you might want to check the length of the document, since processing a long contract is expected to cost more. If the trace instead shows the agent sending that same contract to the model three times, that's probably not a justified expense. Did it need three passes, or did a failed tool call send it through the same work again? If the retry followed a tool failure, fixing the tool could eliminate a model call and reduce your costs, without changing the prompt or switching models.

You can also investigate from the resource side. If the spend on AgentCore Gateway spikes, you can select that point in the resource trend to see the sessions responsible for the spike. You can filter by session, date, and user ID. If your harness also passes a tenant identifier with each invocation, you can see which sessions belong to a particular tenant. For ongoing monitoring, you can set a CloudWatch alarm on an agent-level cost metric and open the traces when spending crosses a threshold you care about.

What the Cost per Session Covers

If your agent calls an AWS Lambda function through AgentCore Gateway, AgentCore Observability cost visibility can show the Gateway cost attributable to that call. Running the function incurs a separate AWS Lambda charge, which at launch is not supported as part of AgentCore Observability cost visibility, but should still be considered. Likewise, if Textract extracted the text before your agent received the document, extraction belongs in the workflow’s cost even though it falls outside the session estimate. Support for these ancillary costs is expected to come in future releases.

If you want to know what it costs to deliver one accepted document, start with the covered execution costs from AgentCore Observability cost visibility across all attempts, including failures. Add the costs outside that estimate, such as extraction, Lambda execution, and human review or rework, then divide by the number of documents accepted. We call that measure cost per verified outcome, and it’s the basis of Caylent’s approach to Taskonomics.

Conclusion

AgentCore Observability cost visibility offers much-needed visibility into the unit economics of AI agents, which is a factor that makes or breaks successful agents more often than the technical implementation. You can use it to investigate expensive sessions in production, track the difference between the average session and outliers, and identify where to start optimizing. It’s also valuable earlier in the development lifecycle, when two versions of an agent produce equally good results on the same set of requests. If one has a lower estimated session cost, compare the traces to see whether it avoided a model call, sent less context, or used a different tool. That gives you a concrete reason to choose a version, and a specific behavior to watch as usage grows.

How Caylent Can Help

As AI agents move into production, understanding what they cost and what value they deliver becomes essential. Caylent helps teams design, build, and optimize AI agents on AWS, with cost visibility built in from the start. Whether you're launching your first agent or scaling an existing fleet, our experts can help you get the most from your investment. Contact us today to get started.

Share

Let's Evolve Together

Discover how we can make a positive impact on your organization.

By submitting, you agree Caylent may contact you about our products and services. Unsubscribe anytime. See our Privacy Policy.