The Azure OpenAI API is Microsoft's hosted REST interface to OpenAI models.
You call it through a resource in your own Azure subscription, whether from your own code or from a workflow tool such as Activepieces, addressing a deployment name you chose rather than a model name.
Azure OpenAI API access is the set of credentials, quotas and regional deployment settings that determine how an application authenticates to, and how much it can call, OpenAI models hosted in an Azure resource, with limits and content filters applied per deployment rather than per account.
Whoever creates that deployment owns its limits, and whoever is on call inherits them.
Azure OpenAI API is a deployment-based model endpoint
What the API lets you do
You send chat, completion, embedding, image and audio requests over HTTPS and get model output back, the same kinds of calls the OpenAI API supports. The structure's what matters operationally. An Azure subscription holds a resource.
Inside the resource sit one or more deployments, each with its own name and each pointing to one model. Your client sends a request to the resource's endpoint URL and names a deployment in the path, and that name decides which model answers.

Read the illustration below as a routing map. It has a subscription containing one resource, two named deployments inside it, each tied to a model, and a client arrow labelled with the endpoint URL entering through a deployment name.
Because the client never addresses a model directly, a settings change on a deployment changes what your caller receives without any change to the caller.
That routing's also where the trouble starts, because limits and filters attach to the deployment, not to the resource or the account.
How it differs from the OpenAI API directly
With OpenAI's own API you pass a model name and your account's limits apply. On Azure you pass a deployment name, and the endpoint belongs to your resource and its region.

Test one deployment and you know nothing certain about the other, because two deployments of the same model can behave differently.
You don't hire for this, you describe it: tell the built-in chat in Activepieces which resource endpoint and which deployment to call, and it builds and publishes the same flow a builder would have wired by hand.
That flow is governed like any other on the platform, with RBAC, audit logs and run traces, so a 429 or a filter rejection from that deployment leaves a trace anyone can read, with no Azure certification needed to follow it.
We checked this article on 4 December 2026 against Microsoft Learn documentation and the Azure pricing page. Where those pages don't give a confirmed figure for a limit, we give none and tell you to read the value off your own deployment.
If you are running this arithmetic for your own team, see what the same workload costs on Activepieces.
Azure OpenAI access, endpoints, and keys
You need an Azure subscription, an Azure OpenAI resource, a named model deployment, and the endpoint and key from that resource. The deployment is where you'll read the limits we declined to quote.
Settle who owns each integration before you create it, because that person gets paged when the key stops working.
Do these in order, because each depends on the one before:
- Have an Azure subscription, with someone named as its owner.
- Create the Azure OpenAI resource inside it.
- Apply for access if Microsoft restricts the model you want.
- Deploy the model and give the deployment a name.
- Copy the endpoint and key from Keys and Endpoint.
If you would rather click through it, Microsoft's Azure OpenAI quickstart walks the same path in the portal.
Choose the region deliberately, because the resource lives in one region and that region constrains which models you can deploy there. Moving later means creating a new resource and repeating the deployment work.
Some models require an access application, so file that early, before anyone has a deadline.
When your code makes a call, it doesn't reach a model directly; it calls a deployment, and the name you give it is what appears in every request.
Pick a name your team can read in a log line, and record who created it. Quotas and content filters attach here.
Open the resource, then Keys and Endpoint. Copy the endpoint and one key into a secret store, never a source file. The resource has two keys so you can rotate one without an outage, so write down who does the rotating.

API key and Microsoft Entra ID authentication
Use an API key to get a first request working. Use Entra ID with a managed identity for anything that runs unattended, because the key is a shared secret with no owner and the identity isn't.
When calls start returning authentication errors at 2am, whoever gets paged needs to know which of the two they're debugging, and the comparison below shows how they differ.
| API key | Entra ID bearer token with managed identity | |
|---|---|---|
| Setup effort | Low: copy the key and send it in a request header | More: enable the identity, grant a role on the Azure OpenAI resource, and request tokens |
| Role assignment | None needed | Required on the Azure OpenAI resource |
| Rotation | You replace it by hand everywhere you store it | No secret to rotate, since tokens are short-lived and issued on demand |
| Fit | Works for prototypes but is weak for shared services | Suits production |
Prices and plan limits checked against docs.claude.com and claude.com and openai.com and gemini.google on December 3, 2026.
Send the key in a request header and anyone holding it can call the resource. Nothing in the key says who is using it, so audit trails can't tell your service from a laptop.
Rotation is a manual task: someone must own the date, find every place the key sits, and replace it without breaking a running workflow.
Azure OpenAI managed identity authentication with Entra ID
With a managed identity, the calling service asks Entra ID for a short-lived bearer token, so there's no stored secret to leak or forget.
You pay for it with a role assignment on the Azure OpenAI resource, and a missing assignment is a common reason Azure refuses a correctly configured service. Because the grant is explicit, you can read who has access.
Choose the managed identity, and keep keys for throwaway tests.
Models, endpoints and per-token pricing in Azure OpenAI
Because each deployment accepts the request shape of one model family and bills per token, the model you pick sets the cost and the platform doesn't.
When a call fails, whoever takes the page needs to know what the deployment expects:
- Chat completions and responses, for text generation
- Embeddings, for search vectors
- Images and audio, for generation and transcription
- Batch, for asynchronous jobs
Send an embeddings call to a chat deployment and it won't answer, so plan one deployment per job.
Standard, provisioned and batch pricing
$2 per 1M input tokens and $8 per 1M output tokens is what GPT-4.1 costs on both Azure and OpenAI's own API. Moving platforms saves nothing, so choose Azure for its quotas and regions.
The table shows how the billing models differ; only provisioned buys steady latency, and it carries a minimum spend.
| Tier | Billing unit | Commitment | Latency predictability | Best use |
|---|---|---|---|---|
| Standard | Per token | None | Varies with load | Prototypes, uneven traffic |
| Provisioned, Global | PTU-hour, $1.00 | 15 PTUs minimum | Predictable | Steady production traffic |
| Provisioned, Data Zone | PTU-hour, $1.10 | 15 PTUs minimum | Predictable | Traffic bound to a data zone |
| Provisioned, Regional | PTU-hour, $2.00 | 50 PTUs minimum | Predictable | Traffic bound to one region |
| Batch | Per token | None | Asynchronous | Bulk jobs, no waiting user |
$100 an hour, roughly $73,000 a month, is the regional minimum, which makes it a budget decision before it's an engineering one.
Estimating monthly Azure OpenAI API costs per token
Multiply requests by tokens per request, then by the rate. The model choice dominates. The Kim Salmi price tracker lists flagship input prices per 1M tokens at launch. GPT-4 was $30, GPT-4o $5 and GPT-5 $1.25.
At those launch prices, the same input volume cost 24 times more on GPT-4 than on GPT-5, so an old default model is the likeliest source of a surprise invoice. Output cost four times input at GPT-4.1's listed prices, and output is usually priced above input, so cap response length.
Worth checking against a plan that does not meter every step: one credit covers a whole run on Activepieces.
Azure OpenAI rate limits and quota by deployment
The limit that throttles you is the one on the deployment, not the one on the account. Quota is set per subscription, region and model, then assigned to deployments.
The limit that throttles you is the one on the deployment, not the one on the account.
Tokens per minute and requests per minute
From the regional pool for that model, each deployment gets a tokens-per-minute allowance and a requests-per-minute allowance. Whoever takes the page when the flow starts returning 429 errors at 2am needs to know which deployment holds the allowance.

In the flow below, step 5 sends cleaned page text to GPT-6.2 Sol with a prompt asking for a 0-100 score and a 120-word summary. Every run therefore spends the whole page as input tokens against one deployment.
Run that flow across a full sitemap and the throttling lands on step 5, so name an owner for that deployment before launch.
Quota tiers and deployment types
When a deployment is Standard, it is pay-per-token and shares the quota pool. Provisioned deployments reserve capacity in PTUs (provisioned throughput units) and bill by the hour whether you use them or not.
Flexprice lists a Data Zone PTU at $1.1 per hour and a Regional PTU at $2 per hour, making Regional nearly twice as expensive.
viz type=pictogram title="Azure provisioned throughput hourly price by deployment type" unit="$ per PTU-hour" source="Flexprice - https://flexprice.io/pricing-index/azure-openai" xaxis="Deployment type" yaxis="$ per PTU-hour".10 on Data Zone." Data Zone: 1.1 Regional: 2
About 45% cheaper is what Data Zone therefore gets you, but your traffic can be processed anywhere in a wider geography. Regional keeps processing in one region, so choose it only when a data-residency rule requires it.
Over a 730-hour month, one PTU costs roughly $803 on Data Zone and $1,460 on Regional, whether or not anyone calls it, which means these costs are committed regardless of actual utilization.
If the regional pool is too small, you file a quota increase request for that model and region through the Azure portal. Approval isn't instant and isn't guaranteed, so file it before launch, not after the first throttling incident.
State the expected peak tokens per minute in the request, and keep a second region deployed as a fallback.
A minimal Azure OpenAI request that works
Once the deployment and its fallback exist, the first request needs three values from them: the endpoint, the deployment name and the key. Each is easy to get wrong. Whoever is on call needs to know which resource the key belongs to.
Curl request
Follow the steps below in the order the service reads the call, so you can check each integration when it fails:
- Take the endpoint from the resource, the address ending in
openai.azure.com. - Append
/openai/deployments/and your deployment name, then/chat/completionsand theapi-versionquery parameter. - Set the
api-keyheader to the resource key. - Send a JSON body with a
messagesarray. - On a 200 response, read
choices[0].message.content.
That sequence, written as one command:
curl "$AZURE_OPENAI_ENDPOINT/openai/deployments/$DEPLOYMENT/chat/completions?api-version=$API_VERSION" \
-H "Content-Type: application/json" \
-H "api-key: $AZURE_OPENAI_API_KEY" \
-d '{"messages":[{"role":"user","content":"Say hello."}]}'
Most often it's one of three values: the deployment name, the api-version, or a key from a different resource than the endpoint. The deployment name is the one you chose, and it's not the model name. A 404 usually points at the first.

Hand the SDK's Azure client the same three values and it builds the path for you:
from openai import AzureOpenAI
client = AzureOpenAI(
azure_endpoint=endpoint,
api_key=key,
api_version=api_version,
)
r = client.chat.completions.create(
model=deployment,
messages=[{"role": "user", "content": "Say hello."}],
)
print(r.choices[0].message.content)
Here model carries the deployment name, so a rename in the portal breaks the code without any error at deploy time.
Read choices for the answer and finish_reason for whether it was cut off. The usage field reports prompt and completion tokens, which is what your quota counts, so log it from the first call.
Common Azure OpenAI API errors and solutions
Logging usage pays off at the first error, because most failures trace to one deployment's settings. The status code tells you which setting to check before anyone is paged at 2am.
Read the code first, then the fix, and only then touch the application. The table maps each status code to its usual cause, the fix, and the Microsoft Learn page to check.
| Status | Cause | Fix | Docs |
|---|---|---|---|
| 401 | Missing, wrong or expired key or token | Send the right credential for the resource | API reference |
| 403 | Caller lacks permission, or network rules block it | Check role assignment and firewall settings | API reference |
| 404 DeploymentNotFound | Deployment name wrong, or deployed in another resource | Use the deployment name, not the model name | API reference |
| 429 with Retry-After | Deployment quota exhausted | Wait the stated interval, then raise quota or spread load | Quotas and limits |
| 400 content filter | Prompt or output tripped the deployment's filter | Adjust the input or the filter configuration | Content filtering |
| Timeout / 5xx | Transient service or network fault | Retry with backoff, then escalate | API reference |
When you see a 401, the credential itself is rejected; with a 403 it was accepted but not allowed. Decide who owns key rotation before launch.
When a 404 comes back, the URL is carrying your deployment's name, which you chose. Confirm it exists in that resource and region.
On a 429, remember that quota belongs to the deployment, so one busy workload can starve another. Honor Retry-After rather than guessing.
When the content filter returns a 400, the cause is simple: filters are configured per deployment, so the same prompt can pass on one and fail on another. Read the error body to see which category fired.
Retry only 429, timeouts and 5xx. Wait the Retry-After interval when present, otherwise back off with jitter. Cap attempts, log each one, and never retry 400, 401, 403 or 404.
Call Azure OpenAI without code using Activepieces
Without code, Activepieces can send the same Azure OpenAI request through its HTTP integration pointed at your deployment URL. It changes nothing about the quotas that decide whether that request succeeds.
Settle before you build it who owns the flow, because that person also owns the 2am page when it starts returning 429s.
Among its many integrations, the connectors library lists Webhook, Google Sheets, Gmail and HTTP, and it's filterable by category. That tells you the HTTP integration's a general-purpose connector, not a dedicated Azure OpenAI one.

You're making a raw REST call, so every deployment-level limit you planned for still applies.
Same request as an HTTP step
Set the HTTP step's method to POST and its URL to the full deployment endpoint, including the deployment name and the API version query parameter. Add an api-key header holding your key, and a JSON body with your messages.

Because the HTTP step makes the call you'd make from code, the deployment you name here is the one whose quota, region and content filter apply. A flow that points at a deployment someone else sized will fail on their limits, not yours.
Turn on retries for the step, and add a branch for failure responses. Rate-limit and content-filter rejections are different problems: the first deserves a wait and another attempt, the second needs a person to look at the prompt.
Route them to different places, and send the second to a named owner.
- Find out which deployment each flow calls, and who owns its quota.
- Store the key in a connection, not in the step body.
- Add a failure branch that alerts a named person.
- Test a rejected prompt and a throttled call before go-live.
Frequently asked questions
Is there a free tier for the Azure OpenAI API? No standing free tier exists for the API itself; usage is billed per token on your subscription.
Promotional credits on a new Azure account can cover early testing, but check the terms on yours, because credits expire and whoever owns the subscription gets the bill when they do.
Does Azure OpenAI use my data to train models? Microsoft states that prompts and completions aren't used to train the underlying models without your permission.
Separately, the service may keep prompts and outputs for a period for abuse monitoring, unless your organization has been approved to opt out. Have your security owner read Microsoft's current data-privacy documentation and record which setting applies to your resource.
Can I use the regular OpenAI SDK with Azure OpenAI?
Yes. The official OpenAI client libraries either ship an Azure-specific client class or can be pointed at your resource through the v1 route. Two details cause most first-day failures.
Put your deployment name in the model field, not the base model name, and point the endpoint at your own resource's address. If a teammate renames a deployment, every caller using the old name starts failing.
Why is my deployment slower than the OpenAI API? Usually the cause is your deployment, not the service. Check these in order:
- The deployment type: shared capacity can queue under load, while provisioned capacity is reserved for you.
- The region: a deployment far from your callers adds network delay to every request.
- Throttling: requests rejected for exceeding quota and retried look like slowness from the caller's side.
- Content filters: they add processing to each request, and a stricter configuration on one deployment can make it slower than a neighbour running the same model.
Compare latency per deployment, not per account, because each one carries its own settings.
Related reading
References
Running the numbers
See what the same workload costs here.
Free forever plan, and every paid plan self-hosts at no extra cost.
See pricing Talk to sales


