Cost estimate coverage and limits
When you plan what you can measure, you want the supported and unsupported cost dimensions for each primitive, so you know the gaps before you rely on a total. Each measured field also has a paired .type field that names the price-list entry it is billed under; the leading code in a .type value is the Region (for example USW2 is us-west-2 and USE1 is us-east-1).
Model inference
| Dimension | Covered |
|---|---|
|
Input tokens |
Yes |
|
Output tokens |
Yes |
|
Cache read tokens |
Yes, when present |
|
Cache write tokens |
Yes, when present (estimated; see note) |
Model cost is recorded on the model-call span. Input-token and output-token costs are itemized; the span total also includes cache tokens when present. For example values of the model-call cost attributes (aws.cost.inference.token.input / .output, aws.cost.total, aws.cost.currency), see Required attributes and headers. Some models are not priced, some token dimensions are estimated, and cache tokens need a recent ADOT; see Model pricing caveats.
Runtime (compute)
| Dimension | Covered | Measured as | Example |
|---|---|---|---|
|
CPU time |
Yes |
|
|
|
Memory time |
Yes |
|
|
|
Instance management fee |
No |
— |
— |
|
Data transfer |
No |
— |
— |
Runtime compute is measured for the session as a whole, written after the agent’s machine stops, so it arrives about 15 to 35 minutes after the session ends. It is not covered for a self-hosted agent, because Runtime is not in the path.
Memory
| Dimension | Covered | Measured as | Example |
|---|---|---|---|
|
Data written (short-term) |
Yes |
|
|
|
Data read back (short-term) |
Yes |
|
|
|
Long-term retrieval |
Yes (counted per lookup, even if nothing is found) |
|
|
|
Short-term and long-term storage |
No |
— |
— |
Memory is measured by bytes written and read, plus the number of long-term retrievals.
Gateway
| Dimension | Covered | Measured as | Example |
|---|---|---|---|
|
API invocations (list tools, search tools, invoke tool) |
Yes |
|
|
|
Tool search |
Yes |
|
|
|
Web Search tool |
Yes |
|
The field is defined but has not been seen on a real span, so no example value is available. |
|
Data processed to a VPC target |
Yes |
|
The field is defined but has not been seen on a real span, so no example value is available. |
|
Tool indexing |
No |
— |
— |
Browser and Code Interpreter
| Dimension | Covered | Measured as | Example (Code Interpreter / Browser) |
|---|---|---|---|
|
CPU time |
Yes |
|
|
|
Memory time |
Yes |
|
|
Evaluations
Only online evaluations count toward agent cost. Batch and on-demand evaluations are not included.
| Dimension | Covered |
|---|---|
|
Online evaluations |
Yes |
|
Batch evaluations |
No |
|
On-demand evaluations |
No |
Breakdowns available
Cost can be broken down by agent, session, and tenant across primitives. The Tag filter groups cost by the tags on the agent’s AgentCore Runtime resource; it is not available for agents hosted outside AgentCore Runtime. See Scope and filter by tag or tenant.
Supported dimensions and limits
This section covers AgentCore Observability.
In scope
-
A near-real-time estimated cost for every span, trace, session, and agent.
-
A breakdown by component (model inference, Runtime compute, Gateway, Memory, Browser, Code Interpreter, and online evaluations when in the path).
-
Drill-down from fleet to agent to session to trace to span.
-
Roll-up by resource across the fleet.
-
Filters by resource tag and a customer-defined tenant, applied across all Observability views.
-
Optional cost metrics in CloudWatch, for alarms and anomaly detection.
-
Cost for self-hosted agents that send signed telemetry to AWS X-Ray (model cost and the AgentCore tools they call).
Not covered
-
Invoice reconciliation. The estimate is not reconciled to the AWS invoice.
-
Discounted rates. The estimate uses public rates only, with no private pricing, savings plans, or credits.
-
Per-user cost views.
-
Splitting Runtime compute below the session. Compute is measured for the session as a whole and stays warm between turns.
-
Spend caps and budget limits. This feature shows and alarms on cost; it does not cap or block spend.
-
Runtime compute for self-hosted agents (Runtime is not in the path), and, for self-hosted agents, the Tag filter and the Spans/Traces/latency/error views beyond model-call spans.
-
Batch and on-demand evaluations. Only online evaluations count toward agent cost.
Supported telemetry
Cost attribution is supported when ADOT produces the agent’s telemetry. See Choose your setup path for the supported frameworks and the instrumentation that is and is not supported.