Plan and manage costs for Azure AI Studio

Note

Azure AI Studio is currently in public preview. This preview is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

This article describes how you plan for and manage costs for Azure AI Studio. First, you use the Azure pricing calculator to help plan for Azure AI Studio costs before you add any resources for the service to estimate costs. Next, as you add Azure resources, review the estimated costs.

You use Azure AI services in Azure AI Studio. Costs for Azure AI services are only a portion of the monthly costs in your Azure bill. You're billed for all Azure services and resources used in your Azure subscription, including the third-party services.

Prerequisites

Cost analysis in Microsoft Cost Management supports most Azure account types, but not all of them. To view the full list of supported account types, see Understand Cost Management data. To view cost data, you need at least read access for an Azure account. For information about assigning access to Azure Cost Management data, see Assign access to data.

Estimate costs before using Azure AI services

Use the Azure pricing calculator to estimate costs before you add Azure AI services.

  1. Select a product such as Azure OpenAI in the Azure pricing calculator.

    Screenshot of selecting Azure OpenAI in the Azure pricing calculator.

  2. Enter the number of units you plan to use. For example, enter the number of tokens for prompts and completions.

    Screenshot of Azure OpenAI cost estimate in the Azure pricing calculator.

  3. You can select more than one product to estimate costs for multiple products. For example, select Virtual Machines to add potential costs for compute resources.

    Screenshot of total estimate in the Azure pricing calculator.

As you add new resources to your project, return to this calculator and add the same resource here to update your cost estimates.

Costs that typically accrue with Azure AI and Azure AI Studio

When you create resources for an Azure AI hub resource, resources for other Azure services are also created. They are:

Service pricing page Description with example use cases
Azure AI services You pay to use services such as Azure OpenAI, Speech, Content Safety, Vision, Document Intelligence, and Language. Costs vary for each service and for some features within each service. For more information about provisioning of Azure AI services, see Azure AI hub resources.
Azure AI Search An example use case is to store data in a vector search index.
Azure Machine Learning Compute instances are needed to run Visual Studio Code (Web or Desktop) and prompt flow via Azure AI Studio.

When you create a compute instance, the virtual machine (VM) stays on so it's available for your work.

Enable idle shutdown to save on cost when the VM is idle for a specified time period.

Or set up a schedule to automatically start and stop the compute instance to save cost when you aren't planning to use it.
Azure Virtual Machine Azure Virtual Machines gives you the flexibility of virtualization for a wide range of computing solutions with support for Linux, Windows Server, SQL Server, Oracle, IBM, SAP, and more.
Azure Container Registry Basic account Provides storage of private Docker container images, enabling fast, scalable retrieval, and network-close deployment of container workloads on Azure.
Azure Blob Storage Can be used to store Azure AI project files.
Key Vault A key vault for storing secrets.
Azure Private Link Azure Private Link enables you to access Azure PaaS Services (for example, Azure Storage and SQL Database) over a private endpoint in your virtual network.

Costs might accrue before resource deletion

Before you delete an Azure AI hub resource in the Azure portal or with Azure CLI, the following sub resources are common costs that accumulate even when you aren't actively working in the workspace. If you're planning on returning to your Azure AI hub resource at a later time, these resources might continue to accrue costs:

  • Azure AI Search (for the data)
  • Virtual machines
  • Load Balancer
  • Azure Virtual Network
  • Bandwidth

Each VM is billed per hour it's running. Cost depends on VM specifications. VMs that are running but not actively working on a dataset will still be charged via the load balancer. For each compute instance, one load balancer is billed per day. Every 50 nodes of a compute cluster have one standard load balancer billed. Each load balancer is billed around $0.33/day. To avoid load balancer costs on stopped compute instances and compute clusters, delete the compute resource.

Compute instances also incur P10 disk costs even in stopped state. This is because any user content saved there's persisted across the stopped state similar to Azure VMs. We're working on making the OS disk size/ type configurable to better control costs. For Azure Virtual Networks, one virtual network is billed per subscription and per region. Virtual networks can't span regions or subscriptions. Setting up private endpoints in virtual network setups might also incur charges. If your virtual network uses an Azure Firewall, this might also incur charges. Bandwidth is charged by usage; the more data transferred, the more you're charged.

Tip

Using an managed virtual network is free. However some features of the managed network rely on Azure Private Link (for private endpoints) and Azure Firewall (for FQDN rules) and will incur charges. For more information, see Managed virtual network isolation.

Costs might accrue after resource deletion

After you delete an Azure AI hub resource in the Azure portal or with Azure CLI, the following resources continue to exist. They continue to accrue costs until you delete them.

  • Azure Container Registry
  • Azure Blob Storage
  • Key Vault
  • Application Insights (if you enabled it for your Azure AI hub resource)

Monitor costs

As you use Azure AI Studio with Azure AI hub resources, you incur costs. Azure resource usage unit costs vary by time intervals (seconds, minutes, hours, and days) or by unit usage (bytes, megabytes, and so on). You can see the incurred costs in cost analysis.

When you use cost analysis, you view Azure AI hub resource costs in graphs and tables for different time intervals. Some examples are by day, current and prior month, and year. You also view costs against budgets and forecasted costs. Switching to longer views over time can help you identify spending trends. And you see where overspending might have occurred. If you've created budgets, you can also easily see where they're exceeded.

Monitor Azure AI Studio project costs

You can get to cost analysis from the Azure portal. You can also get to cost analysis from the Azure AI Studio.

Important

Your Azure AI project costs are only a subset of your overall application or solution costs. You need to monitor costs for all Azure resources used in your application or solution. See Azure AI hub resources for more information.

For the examples in this section, assume that all Azure AI Studio resources are in the same resource group. But you can have resources in different resource groups. For example, your Azure AI Search resource might be in a different resource group than your Azure AI Studio project.

Here's an example of how to monitor costs for an Azure AI Studio project. The costs are used as an example only. Your costs will vary depending on the services that you use and the amount of usage.

  1. Sign in to Azure AI Studio.

  2. Select your project and then select AI project settings from the left navigation menu.

    Screenshot of the Azure AI Studio portal showing how to see project settings.

  3. Select View cost for resources. The Azure portal opens to the cost analysis page for your project.

  4. Expand the Resource column to see the costs for each service that's underlying your Azure AI project. But this view doesn't include costs for all resources that you use in an Azure AI project.

    Screenshot of the Azure portal cost analysis with the Azure AI project and associated resources.

  5. Select Costs by resource > Resources.

    Screenshot of the Azure portal cost analysis with the button to select costs by resources.

  6. On the Cost analysis page where you're taken to, make sure the scope is set to your resource group.

    Screenshot of the Azure portal cost analysis for a resource group.

    In this example:

    • The resource group name is rg-contosoairesource.
    • The total cost for all resources and services in the resource group is $222.97. In this example, this is the total cost for your application or solution that you're building with Azure AI Studio. Again, this assumes that all Azure AI Studio resources are in the same resource group. But you can have resources in different resource groups.
    • The project name is contoso-outdoor-proj.
    • The costs that are limited to resources and services in the Azure AI project total $212.06.
  7. Expand contoso-outdoor-proj to see the costs for services underlying the Azure AI project resource.

    Screenshot of the Azure portal cost analysis with Azure AI project expanded.

  8. Expand contoso_ai_resource to see the costs for services underlying the Azure AI hub resource. You can also apply a filter to focus on other costs in your resource group.

You can also view resource group costs directly from the Azure portal. To do so:

  1. Sign in to Azure portal.

  2. Select Resource groups.

  3. Find and select the resource group that contains your Azure AI Studio resources.

  4. From the left navigation menu, select Cost analysis.

    Screenshot of the Azure portal cost analysis at the resource group level.

For more information, see the Azure pricing calculator.

Monitor costs for models offered through the Azure Marketplace

Models deployed as a service using pay-as-you-go are offered through the Azure Marketplace. The model publishers might apply different costs depending on the offering. Each project in Azure AI Studio has its own subscription with the offering, which allows you to monitor the costs and the consumption happening on that project. Use Microsoft Cost Management to monitor the costs:

  1. Sign in to Azure portal.

  2. On the left navigation area, select Cost Management + Billing and then, on the same menu, select Cost Management.

  3. On the left navigation area, under the section Cost Management, select now Cost Analysis.

  4. Select a view such as Resources. The cost associated with each resource is displayed.

    A screenshot of the Cost Analysis tool displaying how to show cost per resource.

  5. On the Type column, select the filter icon to filter all the resources of type microsoft.saas/resources. This type corresponds to resources created from offers from the Azure Marketplace. For convenience, you can filter by resource types containing the string SaaS.

    A screenshot of how to filter by resource type containing the string 'SaaS'.

  6. One resource is displayed for each model offer per project. Naming of those resources is [Model offer name]-[GUID].

  7. Select to expand the resource details to get access to each of the costs meters associated with the resource.

    • Tier represents the offering.
    • Product is the specific product inside the offering.

    Some model providers might use the same name for both.

    A screenshot showing different resources corresponding to different model offers and their associated meters.

    Tip

    Remember that one resource is created per each project, per each plan your project subscribes to.

  8. When expanding the details, costs are reported per each of the meters associated with the offering. Each meter might track different sources of costs like inferencing, or fine tuning. The following meters are displayed (when some cost is associated with them):

    Meter Group Description
    paygo-inference-input-tokens Base model Costs associated with the tokens used as input for inference of a base model.
    paygo-inference-output-tokens Base model Costs associated with the tokens generated as output for the inference of base model.
    paygo-finetuned-model-inference-hosting Fine-tuned model Costs associated with the hosting of an inference endpoint for a fine-tuned model. This isn't the cost of hosting the model, but the cost of having an endpoint serving it.
    paygo-finetuned-model-inference-input-tokens Fine-tuned model Costs associated with the tokens used as input for inference of a fine tuned model.
    paygo-finetuned-model-inference-output-tokens Fine-tuned model Costs associated with the tokens generated as output for the inference of a fine tuned model.

Create budgets

You can create budgets to manage costs and create alerts that automatically notify stakeholders of spending anomalies and overspending risks. Alerts are based on spending compared to budget and cost thresholds. Budgets and alerts are created for Azure subscriptions and resource groups, so they're useful as part of an overall cost monitoring strategy.

Budgets can be created with filters for specific resources or services in Azure if you want more granularity present in your monitoring. Filters help ensure that you don't accidentally create new resources that cost you more money. For more about the filter options when you create a budget, see Group and filter options.

Export cost data

You can also export your cost data to a storage account. This is helpful when you or others need to do more data analysis for costs. For example, finance teams can analyze the data using Excel or Power BI. You can export your costs on a daily, weekly, or monthly schedule and set a custom date range. Exporting cost data is the recommended way to retrieve cost datasets.

Understand the full billing model for Azure AI services

Azure AI services run on Azure infrastructure that accrues costs along with Azure AI when you deploy the new resource. It's important to understand that extra infrastructure might accrue cost. You need to manage that cost when you make changes to deployed resources.

When you create or use Azure AI services resources, you might get charged based on the services that you use. There are two billing models available for Azure AI services:

  • Pay-as-you-go: Pay-as-you-go pricing, you're billed according to the Azure AI services offering that you use, based on its billing information.
  • Commitment tiers: With commitment tier pricing, you commit to using several service features for a fixed fee, enabling you to have a predictable total cost based on the needs of your workload. You're billed according to the plan you choose. See Quickstart: purchase commitment tier pricing for information on available services, how to sign up, and considerations when purchasing a plan.

Note

If you use the resource above the quota provided by the commitment plan, you will be charged for the additional usage as per the overage amount mentioned in the Azure portal when you purchase a commitment plan.

You can pay for Azure AI services charges with your Azure Prepayment (previously called monetary commitment) credit. However, you can't use Azure Prepayment credit to pay for charges for third-party products and services including those from the Azure Marketplace.

For more information, see the Azure pricing calculator.

Next steps