openai/openai-dotnet
Official .NET client library for the OpenAI REST API, providing access to GPT models, embeddings, audio, images, and assistants with RAG.

This repository is the official C#/.NET SDK for OpenAI’s API. It wraps the OpenAI REST endpoints including chat completions, embeddings, image generation, audio transcription/synthesis, assistants, and retrieval-augmented generation capabilities. The library is auto-generated from OpenAI’s OpenAPI specification in partnership with Microsoft, and supports dependency injection, streaming, function calling, and structured outputs.