An unofficial .NET wrapper for the OpenAI API.
This package is published to NuGet under the name OpenAIDotnet. This is probably the easiest way to get going.
Creating a new client instance can be done like so:
var apiKey = "sk-1234567etc";
var client = new OpenAIClient(apiKey);