azure-ai-openai-dotnet

Access Azure OpenAI and OpenAI services from .NET applications.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-ai-openai-dotnet-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-ai-openai-dotnet
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-dotnet/skills/azure-ai-openai-dotnet
Command: npx skills add https://github.com/microsoft/skills --skill azure-ai-openai-dotnet-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

.NET developers need a first-class client library to securely access Azure OpenAI and OpenAI services from their applications.

Core Features & Use Cases

  • Full-featured .NET SDK for Azure OpenAI covering Chat, Embeddings, Image generation, Audio transcription, and assistants.
  • Supports deployment-scoped clients and flexible authentication suitable for production-grade apps.
  • Use cases include building conversational agents, semantic search pipelines, content generation, and AI-assisted workflows within enterprise .NET solutions.

Quick Start

Install the Azure.AI.OpenAI package and instantiate AzureOpenAIClient to begin making API calls.

Frequently Asked Questions about azure-ai-openai-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access Azure OpenAI services from a .NET application?

You can access Azure OpenAI services from .NET by installing the Azure.AI.OpenAI package and instantiating the AzureOpenAIClient to begin making API calls for chat, embeddings, and audio.

Can I use Microsoft Entra ID for authentication with the Azure OpenAI .NET SDK?

Yes, the Azure OpenAI .NET SDK supports authentication via API keys or Microsoft Entra ID, providing flexible and secure access suitable for production-grade enterprise applications.

What's the best way to build a semantic search pipeline in .NET using OpenAI embeddings?

The Azure OpenAI .NET SDK provides client factories for Embedding services, enabling you to build semantic search pipelines by generating embeddings directly within your .NET application.

Does the Azure OpenAI .NET SDK support image generation and audio transcription?

Yes, the Azure OpenAI .NET SDK supports image generation and audio transcription, alongside chat, embeddings, and assistants, through its deployment-scoped client factories.

How do I create a conversational agent in .NET using Azure OpenAI?

You can create conversational agents in .NET by using the Azure OpenAI SDK's Chat client factory, which provides deployment-scoped clients for building interactive chat interfaces.

Can I manage multiple OpenAI deployments within a single .NET application?

Yes, the Azure OpenAI .NET SDK supports deployment-scoped clients, allowing you to manage multiple deployments for Chat, Embedding, Image, Audio, and Assistant services within one application.