All Products
Search
Document Center

Platform For AI:Allocate costs with tags

Last Updated:Aug 10, 2026

PAI supports fine-grained cost allocation through tags. You can view billing details in the Alibaba Cloud Expenses and Costs console. This topic describes how to use tags for cost allocation in PAI.

Background

Cost allocation assigns cloud resource costs to project teams or business departments, helping enterprises understand cost structures and manage cloud spending. Alibaba Cloud provides tag-based cost allocation to support enterprise cost management. For more information, see Tag-based cost allocation.

System tag-based cost allocation

For certain PAI resources, the system automatically applies preset tags, enabling cost allocation by workspace or billing type.

System tags

PAI automatically applies system 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. These tags allow you to view cost allocation by workspace or billing type.

A tag consists of a key-value pair. The main system tags are:

  • Workspace cost allocation tag key: acs:pai:aiworkspace:id. The tag value is the workspace ID. This tag is automatically applied to job and instance bills, so you can track costs by workspace.

  • DLC billing type tag key: acs:pai:dlc:payType. This tag 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. This tag 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

  1. Activate cost allocation tags. On the Cost Tags page of the Expenses and Costs console, activate the cost allocation tags: acs:pai:aiworkspace:id, acs:pai:dlc:payType, and acs:pai:dsw:payType. For more information, see Activate cost allocation tags.

  2. View bills. Go to the Split Bills page, and click the filter button in the Instance Tag column. To view cost allocation by workspace ID, set key to acs:pai:aiworkspace:id and value to the workspace ID.

Note
  • Bill details are available after a one-day delay.

  • 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 authorization, see Manage RAM user permissions.

Custom tag-based cost allocation

For AI computing resources and DSW instances, PAI allows you to create and attach custom tags for more flexible cost allocation.

Plan tags

Before using custom tags for cost allocation, plan your tags based on business and management requirements. For example, an enterprise with a development (Dev) department and a business intelligence (BI) department can create a tag key department and use Dev and BI as tag values to differentiate costs between departments.

Attach tags

Attach tags to AI computing resources (nodes)

You can add tags to AI computing resource orders to allocate costs at the order level.

  1. Log on to the PAI console. In the left-side navigation pane, choose AI Computing Resources > Resource Pool.

  2. Click the resource group name to go to the details page. Click the edit icon under the Tags column to add, modify, or delete tags for the order.

  3. (Optional) Manage tags in bulk. Select multiple nodes and click Batch Manage Tags to manage tags in bulk.

Attach tags to DSW instances

You can add tags when creating a DSW instance.

On the instance creation page, locate the Tags field in the Basic Information section (which shows No tags bound by default), and click the field to attach tags.

View split bills

  1. Activate custom cost allocation tags. On the Cost Tags page of the Expenses and Costs console, activate the custom cost allocation tags. For more information, see Activate cost allocation tags. Note: Tags created in the cloud service console take up to 24 hours to appear in the cost allocation tag list in the Expenses and Costs console.

  2. View bills. Go to the Split Bills page, click the filter button in the Instance Tag column, and select your custom cost tags.

Note
  • Bill details are available after a one-day delay.

  • 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 authorization, see Manage RAM user permissions.