openai and OpenAI-DotNet
These are competitor libraries, both providing .NET clients for the OpenAI RESTful API, meaning a developer would typically choose one over the other for their project.
About openai
betalgo/openai
.NET library for the OpenAI service API by Betalgo Ranul
Provides comprehensive coverage of OpenAI's API surface including chat completions, image generation, embeddings, and the new Realtime API, with support for function calling and structured outputs via JSON Schema. Supports both direct instantiation and dependency injection patterns in ASP.NET Core, with centralized request/response contracts enabling schema validation and consistent API evolution. Includes experimental utilities and maintains compatibility across OpenAI model releases through organized enum/value type abstractions.
About OpenAI-DotNet
RageAgainstThePixel/OpenAI-DotNet
A Non-Official OpenAI RESTful API Client for DotNet
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work