Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Azure OpenAI / Microsoft Foundry SDKs - 5 languages recorded

Azure OpenAI / Microsoft Foundry SDKs by language

Azure OpenAI / Microsoft Foundry's docs do not point to an SDK of its own for any language recorded here. For Python, TypeScript, Go, Java and C#, its docs point to the OpenAI SDK.

Microsoft's current Azure OpenAI language page points every language at the OpenAI SDKs plus Azure.Identity for Entra ID auth. OpenAI's own libraries page separately lists Microsoft-maintained Azure OpenAI libraries (Azure.AI.OpenAI for .NET, @azure/openai for JS, azure-ai-openai for Java, azopenai for Go); npm describes @azure/openai as 'A companion library to openai for Azure OpenAI.'

Verified against each provider's own SDK docs and package registry pages. Status labels are the provider's own; no version numbers are recorded.

Azure OpenAI / Microsoft Foundry's SDK docs: learn.microsoft.com/en-us/azure/foundry/openai/supported-languages. Compare every provider in the SDK grid.

Official
the provider's own SDK.
Beta
the provider's own SDK, which it labels beta (Fireworks AI says alpha).
OpenAI SDK
the provider's docs point to the OpenAI SDK for this language.
Community
a library the provider's docs link but do not ship. Not official.
None
the provider's SDK docs list no SDK for this language.
-
Not recorded: no entry in the data for this language.

Python

Points to the OpenAI SDK

Not a Azure OpenAI / Microsoft Foundry SDK. For Python, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai (+ azure-identity)
Install
Install
pip install openai azure-identity
Repo
github.com/openai/openai-python
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages

From the docs

Use the OpenAI SDKs with the Azure OpenAI v1 endpoint to build model inference applications in Python, C#, JavaScript, Java, or Go.
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
Python SDKs from every provider

TypeScript and JavaScript

Points to the OpenAI SDK

Not a Azure OpenAI / Microsoft Foundry SDK. For TypeScript, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai (+ @azure/identity)
Install
Install
npm install openai @azure/identity
Repo
github.com/openai/openai-node
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages

From the docs

Use the OpenAI SDKs with the Azure OpenAI v1 endpoint to build model inference applications in Python, C#, JavaScript, Java, or Go.
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
TypeScript SDKs from every provider

Go

Points to the OpenAI SDK

Not a Azure OpenAI / Microsoft Foundry SDK. For Go, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
github.com/openai/openai-go/v3 (+ azidentity)
Install
Install
go get github.com/openai/openai-go/v3
go get github.com/Azure/azure-sdk-for-go/sdk/azidentity
Repo
github.com/openai/openai-go
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages

From the docs

Use the OpenAI SDKs with the Azure OpenAI v1 endpoint to build model inference applications in Python, C#, JavaScript, Java, or Go.
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
Go SDKs from every provider

Java

Points to the OpenAI SDK

Not a Azure OpenAI / Microsoft Foundry SDK. For Java, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
com.openai:openai-java (+ com.azure:azure-identity)
Install
Install
implementation("com.openai:openai-java:VERSION")
implementation("com.azure:azure-identity:VERSION")

VERSION stands for the version the docs pin. Pin the current release from the package registry.

Repo
github.com/openai/openai-java
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
Notes
Gradle lines verbatim except pinned versions, replaced with VERSION; a Maven block is also given.

From the docs

Use the OpenAI SDKs with the Azure OpenAI v1 endpoint to build model inference applications in Python, C#, JavaScript, Java, or Go.
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
Java SDKs from every provider

C# and .NET

Points to the OpenAI SDK

Not a Azure OpenAI / Microsoft Foundry SDK. For C#, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
OpenAI (+ Azure.Identity)
Install
Install
dotnet add package OpenAI
dotnet add package Azure.Identity
Repo
github.com/openai/openai-dotnet
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
Notes
OpenAI describes this .NET library as built 'In collaboration with Microsoft'.

From the docs

Use the OpenAI SDKs with the Azure OpenAI v1 endpoint to build model inference applications in Python, C#, JavaScript, Java, or Go.
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
C# SDKs from every provider

Not recorded

The data has no entry for Azure OpenAI / Microsoft Foundry in these languages. Azure OpenAI / Microsoft Foundry's SDK docs are linked for a direct check.

More on Azure OpenAI / Microsoft Foundry

Newsletter

Know when a provider ships a new SDK

One email per week. New models, new SDKs and the API changes that break your client, and what they mean for your stack.