Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

azure-ai-openai-dotnet

Skill by sickn33

Azure.AI.OpenAI gives .NET developers a client library for Azure OpenAI and OpenAI services. It covers chat completions, embeddings, image generation, audio transcription, and assistants.

  • Score 89
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install azure-ai-openai-dotnet

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-ai-openai-dotnet ~/.claude/skills/azure-ai-openai-dotnet

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install azure-ai-openai-dotnet in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant guidance for the Azure.AI.OpenAI .NET client library. It covers access to Azure OpenAI Service models such as GPT-4, GPT-4o, embeddings, DALL-E, and Whisper. The examples show how to create an AzureOpenAIClient with an API key or Microsoft Entra ID, then get chat, embedding, image, and audio clients from it.

It is written for .NET developers who build chat, embedding, image, and audio features in C#. The source includes code for chat completions, streaming, structured JSON output, reasoning models, Azure AI Search retrieval, function calling, and error handling. It also shows how to use the OpenAI package directly with Azure. The source gives 2.1.0 as a historical baseline and says newer examples may need newer packages.

Written from the project's SKILL.md and checked against it.

What it can do

  • Chat completionsSends sync, async, and streaming chat requests to a deployed chat model.
  • Structured outputsRequests responses that follow a JSON schema with strict formatting.
  • Reasoning modelsSets reasoning effort and developer messages for o1 and o4-mini style models.
  • Azure AI Search RAGAdds a search data source to chat and reads intent and citations back.
  • EmbeddingsGenerates single or batch text embeddings and reads their vector length.
  • Image generationCreates DALL-E images with size, quality, and style options.
  • Audio transcriptionTranscribes audio files with Whisper, with format and language options.
  • Text-to-speechGenerates speech audio from text and saves it as an MP3 file.
  • Function callingDefines tools with JSON parameters and reads the tool calls the model requests.

What you need

  • An Azure OpenAI resource and endpoint
  • An API key or Microsoft Entra ID credentials
  • The dotnet CLI to add the NuGet packages
  • The Azure.Identity package for DefaultAzureCredential

Try asking

  • Use the Azure OpenAI .NET SDK to write a streaming chat method in C#.
  • Show me how to get embeddings for a batch of text with Azure.AI.OpenAI.
  • Write C# code that transcribes an MP3 file with the Whisper deployment.

Good to know

  • The source metadata marks the risk level as critical.
  • Examples use the historical 2.1.0 baseline and may need newer packages for the v1 API.
  • Model and deployment names in the examples are placeholders that must match your Azure deployments.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/azure-ai-openai-dotnet/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md14 KB

Alternatives to azure-ai-openai-dotnet

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

azure-ai-openai-dotnet: common questions

What does the Azure.AI.OpenAI .NET library do?

It is a client library for Azure OpenAI Service and OpenAI services. The source says it supports chat completions, embeddings, image generation, audio transcription, and assistants.

Should I use an API key or Entra ID with this library?

The source shows both options. It recommends Microsoft Entra ID with DefaultAzureCredential for production and lists API key auth as an alternative.

Which models does the source mention?

The source names GPT-4, GPT-4o, embeddings, DALL-E, and Whisper. It also shows examples with o1 and o4-mini reasoning models and text-embedding-ada-002.

How do I install azure-ai-openai-dotnet?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is azure-ai-openai-dotnet free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is azure-ai-openai-dotnet safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to azure-ai-openai-dotnet?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

azure-ai-openai-dotnet Install

Add to stack

Loading.