Allocate costs with tags
PAI allocates costs by workspace, billing type, and custom tags. You can view cost details in the Expenses and Costs console.
Background
Cost allocation divides the cost of cloud resources among project teams or business departments. It helps enterprises understand their cost structure and manage cloud spending. Alibaba Cloud provides tag-based cost allocation. For more information, see Tag-based cost allocation.
System tag-based cost allocation
For some PAI resources, PAI automatically adds system tags so you can allocate costs by workspace or billing type.
System tags
PAI adds these tags to billable resources such as Deep Learning Containers (DLC) pay-as-you-go jobs and Data Science Workshop (DSW) pay-as-you-go instances.
A tag consists of a key and a value. PAI adds the following system tags:
Workspace cost allocation tag key:
acs:pai:aiworkspace:id, which lets you allocate costs by workspace. The tag value is the workspace ID. This tag is automatically added to the bills of the related jobs or instances.-
DLC billing type tag key:
acs:pai:dlc:payType, which distinguishes DLC spot jobs from DLC pay-as-you-go jobs.For DLC spot jobs, the tag value is
spot.For DLC pay-as-you-go jobs, the tag value is
postpaid.
-
DSW billing type tag key:
acs:pai:dsw:payType, which distinguishes DSW spot instances from DSW pay-as-you-go instances.For DSW spot instances, the tag value is
spot.For DSW pay-as-you-go instances, the tag value is
postpaid.
View split bills
Activate cost tags. In the Expenses and Costs console, go to the Cost Tags page and activate the following cost allocation tags:
acs:pai:aiworkspace:id,acs:pai:dlc:payType, andacs:pai:dsw:payType. For more information, see Activate cost allocation tags.View bills. Go to the Split Bill Details page and click the filter button in the Instance Tag column. For example, to view cost allocation by workspace ID, set the key to
acs:pai:aiworkspace:idand the value to the workspace ID.
Bill details are updated with a delay of up to one day (T+1).
If you access the Expenses and Costs console as a RAM user, the Alibaba Cloud account owner must grant you the AliyunBSSFullAccess permission. For more information about granting permissions, see Manage RAM user permissions.
Custom tag-based cost allocation
For AI computing resources and DSW instances, you can create and attach custom tags to allocate costs by your own business dimensions.
Plan tags
Before you use custom tags for cost allocation, plan your tag keys and values based on how your organization reports costs. For example, if an enterprise has a development (Dev) department and a business intelligence (BI) department, it can create a tag key department and use Dev and BI as tag values to separate costs by department.
Attach tags
Attach tags to AI computing resources (nodes)
You can add tags to AI computing resource orders to allocate costs by order.
Log in to the PAI console. In the left-side navigation pane, choose AI Computing Resources > Resource Pool, and then click the name of the target resource group to open its details page.
-
In the node list, click the edit icon in the Tags column to add, modify, or delete tags for the order.
NoteIf you cannot find the Tags column in the node list, click the
icon on the right side and select Tags. (Optional) Select multiple nodes and click Batch Manage Tags to manage their tags in bulk.
Attach tags to DSW instances
When you create a DSW instance, you can add tags on the instance creation page.
In the Basic Information section of the instance creation page, click the Tags field (which shows No tags bound by default) to attach tags.
View split bills
Activate custom cost tags. In the Expenses and Costs console, go to the Cost Tags page and activate the custom cost allocation tags. For more information, see Activate cost allocation tags. Note: Tags that you add in the cloud service console take up to one day (T+1) to appear in the cost tag list in the Expenses and Costs console.
View bills. Go to the Split Bill Details page, click the filter button in the Instance Tag column, and select your custom cost tags.
Bill details are updated with a delay of up to one day (T+1).
If you access the Expenses and Costs console as a RAM user, the Alibaba Cloud account owner must grant you the AliyunBSSFullAccess permission. For more information about granting permissions, see Manage RAM user permissions.