OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Openai API Dotnet

Openai API Dotnet is an unofficial C#/.NET wrapper library that gives .NET applications programmatic access to OpenAI APIs. Its repository documents the original library through version 1.11, with a chat-conversation example and listed support for capabilities including completions, audio, embeddings, moderation, files and image APIs.

Independent OpenViST project profile, based on linked sources.

Openai API Dotnet — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a C#/.NET application needs the original wrapper's documented OpenAI API integration, especially its chat conversation interface. Consider the repository's stated version transition before starting a new integration.

Who it is for

  • C# and .NET developers integrating OpenAI API calls into their applications.
  • Teams maintaining projects that already use the original OpenAI-API-dotnet library through version 1.11.

Documented uses

  • Add API-backed chat conversations to a C# application.
  • Call documented OpenAI capabilities such as completions, audio, embeddings, moderation, files or image APIs from .NET code.
  • Configure API-key authentication for a .NET client.
Before you choose

Requirements & limits

The repository is public on GitHub. The README documents the original package as OpenAI version 1.11 on NuGet; API-key authentication is required for API requests.

  • The original library is unofficial and documented through version 1.11; the README identifies a newer official C# library adopted by Microsoft, starting at version 2.0.0-beta.3.
  • The README states a .NET Standard 2.0 basis and specifies .NET Framework 4.7.2 or later and .NET Core 3.0 or later.
  • The README's quick-start example demonstrates chat completion, while its documentation index lists additional API areas; individual operations should be checked in the relevant documentation.
  • The repository metadata does not provide a license, although its README describes the library as public domain.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the original .NET library

Install the repository's original OpenAI package and configure API-key authentication for a .NET application.

Before you start

  • A .NET project targeting .NET Framework 4.7.2 or later or .NET Core 3.0 or later.
  • An OpenAI API key.
  • The NuGet package OpenAI version 1.11.

Steps

  1. Install OpenAI version 1.11 from NuGet, as shown in the repository README.

  2. Provide the API key directly when initializing the library, set OPENAI_API_KEY (OPENAI_KEY is also documented for backward compatibility), or place OPENAI_API_KEY in a .openai file in the local or user directory.

  3. Initialize OpenAIAPI using the key or the documented environment/configuration loading method.

Expected outcome

The application has an initialized client for making OpenAI API requests through the original library.

Guide limitations

  • The repository documents this original unofficial library through version 1.11 and points to a newer official C# library beginning with version 2.0.0-beta.3.
  • This setup guide does not demonstrate a completed API request or verify runtime behavior.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 October 2026
Original website title
OkGoDoIt/OpenAI-API-dotnet · Official homepage title · retained in its source language