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.
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-dotnetRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-ai-openai-dotnet ~/.gemini/antigravity-cli/skills/azure-ai-openai-dotnetAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install azure-ai-openai-dotnet in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
