Skip to content
Guide

Azure OpenAI cost tracking by deployment type

By the Alye team · Updated

Short answer
The same Azure OpenAI model is priced differently on Global, Data Zone and Regional deployments, and the Azure invoice groups usage by resource, not by your features or customers. Track each call with its deployment, service and customer, and price it for that deployment type.

Deployment types change the price

Deployment typeWhere requests runPrice
GlobalAny Azure region worldwideUsually the lowest
Data Zone (US or EU)Within the United States or the European UnionHigher than Global
RegionalOne chosen regionHighest, for strict data residency
Provisioned (PTU)Reserved capacityPer hour, not per token

A cost estimate that uses one list price for every call is wrong as soon as you use Data Zone or Regional deployments, which teams often need for data residency.

How Alye prices Azure OpenAI calls

  • On the Models page you add each Azure resource and deployment once, with its type and region.
  • Every call to that deployment is then priced at the matching Global, Data Zone or Regional price, and labelled with where it ran.
  • If no regional price is known yet, Alye uses the global price and marks the cost as an estimate.
  • For provisioned deployments, set your own effective per-token price to spread the hourly cost across services and customers.

Track it in two lines

Use the official OpenAI client with your Azure endpoint as usual; Alye records each call automatically.

# Python
pip install alye
import alye
alye.init(service="support-reply")   # set ALYE_API_KEY in the environment

from openai import AzureOpenAI
client = AzureOpenAI(azure_endpoint="https://<resource>.openai.azure.com", api_version="2024-10-21")
// Node.js
npm install alye
import * as alye from "alye";
import { AzureOpenAI } from "openai";
alye.init({ service: "support-reply" });
const client = alye.wrap(new AzureOpenAI({ endpoint: "https://<resource>.openai.azure.com", apiVersion: "2024-10-21" }));

Alerts go to Microsoft Teams as well as Slack and email. See the docs and how LLM cost tracking works.

Questions

How is Azure OpenAI priced across regions?

Azure OpenAI prices depend on the deployment type: Global, Data Zone (US or EU) and Regional deployments are priced differently for the same model. Cost tracking has to know which type each call used.

How does Alye know which Azure deployment type a call used?

You record each Azure resource and deployment once on Alye's Models page (Global, Data Zone or Regional, and the region). Alye then prices every call to that deployment at the matching price.

Can Alye track provisioned throughput (PTU) costs?

Not per token. Provisioned deployments are billed per hour, not per token. You can set your own effective per-token price on the Models page to allocate that cost across services and customers.

Try it on one service. Free for 500,000 calls a month, set up in about five minutes.