> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cost allocation labels in Nebius AI Cloud

Add labels to resources to group your costs the way you need, and see how costs are allocated across the groups. You can group resources by label where each label represents, for example, a particular service, application or team. To see a breakdown of costs, filter your costs by label on the [Billing → Usage](https://console.nebius.com/billing/consumption) page, or [export usage data as CSV](/signup-billing/usage/export) and check the `Tags` column in the CSV file.

A *label* represents a key-value pair you set on a resource when you create or update it. Keys and values can be arbitrary — set the convenient ones for you. On the **Usage** page, you can filter resources by both keys and values. For example, to check costs by application and team, you can set such labels as `application = argo-cd` and `application = gatekeeper` or `team = engineering` and `team = support`.

<Note>
  Cost allocation labels are only available for [Compute billable resources](/compute/resources/pricing). Labels assigned to other resources are unavailable in the billing report.
</Note>

## How to set labels on resources

<Tabs group="interfaces">
  <Tab title="CLI">
    In the `create` or `update` command, add the `--labels` parameter. Example for a virtual machine:

    ```bash theme={null}
    nebius compute instance create --labels <key>=<value> ...
    ```

    To make sure that the label has been assigned to the resource successfully, check the resource configuration by using the `get` or `get-by-name` commands. For example:

    ```bash theme={null}
    nebius compute instance get <VM_ID>
    ```

    Output:

    ```text theme={null}
    metadata:
      id: computeinstance-***
      ...
      labels:
        <key>: <value>
    ```
  </Tab>

  <Tab title="Terraform">
    In the resource configuration, add the `labels` parameter. Example for a virtual machine:

    ```hcl theme={null}
    resource "nebius_compute_v1_instance" "my_vm" {
      labels = {
        <key> = "<value>"
      }
      # ...
    }
    ```
  </Tab>
</Tabs>

## How to view the cost allocation breakdown by labels

You can check the cost allocation breakdown in the web console directly, or you can export usage data:

<Tabs>
  <Tab title="Web console">
    1. In the [web console](https://console.nebius.com/), go to <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/billing.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=32dc60dbf43597f6132b7f4b303a6901" width="16" height="16" data-path="_assets/sidebar/billing.svg" /> **Billing** → **Usage**.

    2. If you select the <Icon icon="https://mintcdn.com/nebius-ai-cloud/ZUfgVTIKp6GshMB9/_assets/table.svg?fit=max&auto=format&n=ZUfgVTIKp6GshMB9&q=85&s=a5bb63018fd8b6399c95659fc869b529" width="16" height="16" data-path="_assets/table.svg" /> **Table** view:

       1. In the **Filter by** field, select `Label`.
       2. In the **Labels** field, select the keys and values of the needed labels.

          If you only select a key, all its values are automatically included.

    3. If you select the <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/chart-column.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=28d9b20de5d1cc470630b825b912ac6c" width="16" height="16" data-path="_assets/chart-column.svg" /> **Chart** view:

       1. In the **Group by** field, select `Label`.
       2. In the **Labels** field, select the keys of the needed labels. All the values of the selected keys are automatically included.

    As a result, the dashboard only shows the resources and costs that are relevant to the selected labels.
  </Tab>

  <Tab title="Export">
    1. [Export usage data as CSV](/signup-billing/usage/export#how-to-create-an-export).
    2. Open the CSV file.
    3. Filter data by the `Tags` column.

    As a result, the report only shows the resources and costs that are relevant to the selected labels.
  </Tab>
</Tabs>
