Viewing and analyzing your AI spend
On the AI cost dashboard, you can choose a time period, choose a cost metric, and group your spend by dimension. The dashboard shows the last 7 days by default. You can view your AI costs by day, week, or month. To see hourly data, turn on hourly granularity in Cost Explorer. For more information, see Granular data.
Grouping your spend by dimension
To break down your spend, choose a value for Dimension. For the list of dimensions, see Dimensions. The IAM Identity Center dimensions are User (Identity Center) and Group (Identity Center). The user attribute dimensions are Department, Organization, Division, and Cost center.
When you choose a dimension, the charts show your top values and combine the rest into Other. The cost table, for example Cost by IAM principal, lists the total cost for every value. To see your total cost without a breakdown, choose None. The table then shows one row, All AI spend.
Dimensions
You can group your spend by the following dimensions. You can filter it by AI service, linked account, Region, model, provider, usage type, IAM principal, and the IAM Identity Center dimensions.
| Dimension | Amazon Bedrock | Kiro | AWS Quick |
|---|---|---|---|
| AI service | Yes | Yes | Yes |
| Linked account | Yes | Yes | Yes |
| Region | Yes | Yes | Yes |
| Usage type | Yes | Yes | Yes |
| Model | Yes | No | No |
| Provider | Yes | No | No |
| IAM principal | Yes | No | No |
| User (Identity Center) | Yes | Yes | Yes |
| Group (Identity Center) | Yes | Yes | Yes |
| Department | Yes | Yes | Yes |
| Organization | Yes | Yes | Yes |
| Division | Yes | Yes | Yes |
| Cost center | Yes | Yes | Yes |
IAM Identity Center users, groups, and user attributes
To group and filter your spend by person, finish the steps in Setting up AI tracking at the user level. Then, use User (Identity Center) and Group (Identity Center) to see the spend for each user or group. Use Department, Organization, Division, and Cost center to see the spend for each attribute value. You can also filter by these dimensions in Filters.
Spend counts toward a person when it is attributed to them with trusted identity propagation. Spend that goes through a shared application role doesn't count toward each person. Data for users, groups, and user attributes starts to populate when you turn on user-level attribution. AWS doesn't backfill this data.
For Amazon Bedrock, user-level tracking includes only token-priced model inference, and only when the requests are sent to the Amazon Bedrock Runtime endpoint. Requests sent to the Amazon Bedrock Mantle endpoint, batch inference, and bidirectional streaming aren't included.
InvokeModelBidiStreamInference usage is attributed to the account
only. It carries no IAM principal or IAM Identity Center identity, so it appears
under an unknown principal and doesn't count toward user or role budgets.
Getting AI spend data with the Cost Explorer API
You can get the same data that the dashboard shows through the Cost Explorer API,
using GetCostAndUsage and GetDimensionValues. Standard
Cost Explorer API pricing applies. To get AI cost data, do the following:
-
Set
MetricstoPublicOnDemandCostorEstimatedContractedCost. -
Filter the
USAGE_TYPE_GROUPdimension to one or more of the following values:Bedrock: Inference Model (Token),Kiro: Credit Pooling Consumption, orQuick: Agent Hour Consumption.
To get hourly data, turn on hourly granularity in Cost Explorer, and then set
Granularity to HOURLY. Hourly data is available for the last
14 days. For more information, see Granular data.
Setting a limit on your AI spend
To get alerts when your AI spend reaches a limit, and to block new Amazon Bedrock requests at the limit, create an AI cost budget. For more information, see Creating an AI cost budget. To get alerts when an individual user or group reaches a limit, create an AI cost budget for users or groups (preview). For more information, see Creating an AI cost budget for users, groups, or IAM principals.