Azure OpenAI spend is driven by tokens and model choice, not by infrastructure sizing. The service charges per input and output token under standard pay as you go pricing, with optional Provisioned Throughput Units, the PTU, that reserve dedicated model capacity for a committed term at a flat hourly rate. The largest savings come before any pricing decision: choosing the smallest model that meets the task, trimming prompt and output length, and caching repeated calls. Treat Azure OpenAI as its own governance line, because it grows faster than any other part of the bill and the usual rightsizing playbook does not apply.
This sits alongside the rest of your Azure data and PaaS spend, but the mechanics are distinct enough to warrant their own review cadence. Here is how to keep it under control without slowing the teams shipping AI features.
What actually drives the Azure OpenAI bill?
Three variables set the cost of every Azure OpenAI call: the model, the input token count, and the output token count. Output tokens usually carry a higher rate than input, and a larger model multiplies the rate on both. The most expensive pattern is therefore a verbose prompt sent to an oversized model that returns a long answer, repeated at scale across an application that no one is watching.
The levers follow directly from that. Right size the model to the task, because a smaller deployment often handles classification, extraction, routing, and summarisation at a fraction of the cost of a frontier model that should be reserved for genuinely hard generation. Trim prompts and cap output length with a token limit. Cache deterministic or repeated calls so you are not paying for the same answer twice. These three moves change the bill more than any infrastructure tuning, and none of them degrade the product if applied with judgement.
A fourth driver hides in retrieval. Many Azure OpenAI applications sit on top of a retrieval pipeline that re embeds unchanged documents on every run, or stuffs more context into the prompt than the model needs. Embedding calls and oversized context windows quietly inflate the token count, so the retrieval layer deserves the same scrutiny as the generation layer.
Standard tokens or Provisioned Throughput Units?
Azure OpenAI gives you two consumption modes, and the choice mirrors the commitment decision everywhere else on Azure.
- Standard pay as you go per token. You pay only for what you call. This is ideal for spiky, experimental, or low volume workloads where reserving capacity would mean paying for idle time, and for any application still finding its traffic shape.
- Provisioned Throughput Units. You reserve dedicated model capacity in PTU blocks for a committed term at a flat hourly rate, which buys predictable latency, guaranteed throughput, and a lower effective rate once volume is high and steady. It is the generative AI equivalent of a Reservation or an Azure Savings Plan: it pays off only against a defensible forecast of sustained usage.
The trap is buying PTUs for a workload that is still finding its shape. Reserve capacity only once traffic is steady enough that the committed PTU hours beat accumulated token charges. Until then, standard pricing keeps you flexible. When you do commit, Azure offers reserved PTU terms that discount against the hourly PTU rate, so the same risk adjusted logic applies: cover the steady base of traffic with a reservation and leave the spiky top on standard pricing.
How do you govern it like a budget, not an experiment?
Azure OpenAI spend escapes control when no one owns it. Put the same discipline on it that you put on the rest of the estate. Tag AI workloads and deploy them into resource groups that map cleanly to a team, so cost allocation in Cost Management attributes every token to an owner. Set budgets and alerts per application and per environment, because a runaway loop in a development environment can outspend production. Review Azure OpenAI as its own line in the monthly cadence rather than burying it inside a generic PaaS total.
Watch the quiet drivers. Retrieval pipelines that re embed unchanged documents, agents that loop more than expected, and prompt templates that grew over time without anyone checking the token count are the usual culprits. Log Analytics often grows alongside an AI rollout as teams add verbose telemetry, so keep an eye on the ingestion cost there too; that discipline is covered in the broader Azure cost optimization guide.
A European SaaS company shipped an Azure OpenAI assistant that defaulted every call to a frontier model and set no output cap. Routing simple intents to a smaller deployment, trimming the system prompt, and caching repeated lookups cut the per request token cost sharply, leaving only the genuinely hard generation on the larger model. With volume then steady, a slice of traffic moved to Provisioned Throughput Units on a reserved term at a lower effective rate. Figures are verified against billing data and anonymised.
Where Azure OpenAI meets the rest of the bill
AI workloads rarely stand alone. The retrieval layer pulls from storage and moves data across regions, telemetry lands in Log Analytics, and the surrounding application runs on App Service, Container Apps, or AKS. Govern those PaaS choices alongside the model spend, which is the subject of PaaS choices that cut the Azure bill, and put a recurring rhythm on the AI line specifically with observability for AI cost. The full Azure estate picture lives in the Azure cost optimization guide, and the cross cloud view sits in the cross cloud cost optimization guide.
Frequently asked questions
How is Azure OpenAI priced?
When do Provisioned Throughput Units pay off?
What drives Azure OpenAI cost most?
Put governance on your Azure OpenAI spend
We help enterprises put governance on Azure OpenAI before it becomes the largest unmanaged line on the bill. Our guarantee: we reduce your cloud spend or we reimburse our service fee. Pricing is either a Fixed Fee scoped up front or Gainshare, a share of verified savings with no retainer and no risk. We take zero provider commissions and answer only to you.
Put a defensible number on your cloud spend.
No provider in the room, no published price list. Tell us your footprint and we will scope the savings against your billing data — we reduce your cloud spend or we reimburse our service fee.
The Cloud Spend Navigator: what changed in cloud pricing, commitments, and FinOps — no vendor spin.