# OkGoDoIt/OpenAI-API-dotnet

An unofficial C#/.NET SDK for accessing the OpenAI GPT-3 API

Repository: https://github.com/OkGoDoIt/OpenAI-API-dotnet
Canonical: https://ross.abutalabs.com/products/openai-api-dotnet
Homepage: https://www.nuget.org/packages/OpenAI/
Language: C#
License: NOASSERTION
License Family: other
Topics: openai, gpt-3, gpt3, ml, machine-learning, sdk, csharp, dotnet, chatgpt, dall-e, dalle2, dotnet-standard, gpt35, c-sharp, dotnet-core, gpt-4, gpt4
Last push: 2024-08-07T00:56:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2233, "days_push": 757, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1893, forks 418 (observed 2026-08-28T04:05:50.540533+00:00)

## What it is
An unofficial C#/.NET SDK wrapping the OpenAI API, covering chat completions (GPT-3.5/4), DALL-E image generation, embeddings, moderation, and audio transcription/TTS. The original library is frozen at v1.11; it was adopted by Microsoft as the basis for the official OpenAI .NET library (v2+ on NuGet).

## Use cases
- call the openai api from c#
- use gpt-4 chat completions in a .net app
- generate images with dall-e from dotnet
- transcribe audio to text in c#
- get embeddings for text in .net
- connect to azure openai from c#

## When to choose
- you're on .NET Framework 4.7.2+ or .NET Core 3.0+ and want a simple OpenAI wrapper
- you need the legacy v1.x API surface or Azure OpenAI support in the original wrapper
- you want a mature, widely used community SDK with streaming chat support

## When to avoid
- you want the actively maintained official SDK - use the Microsoft OpenAI .NET library (v2+) instead
- you need coverage of the newest OpenAI endpoints and models
- you're not working in C#/.NET

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, llm-inference, http-client, tts, speech-recognition, image-processing
- domain: large-language-models, artificial-intelligence, apis, developer-tools
- platform: dotnet, cross-platform, windows
- tags: openai, gpt-4, chatgpt, dall-e, csharp, nuget, unofficial-sdk, chat-completions, embeddings, azure-openai, linux, macos

## Member repositories
- OkGoDoIt/OpenAI-API-dotnet (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:50.540533+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:12:55.290254+00:00, confidence not recorded.
  - readme: https://github.com/OkGoDoIt/OpenAI-API-dotnet (fetched 2026-08-28T04:05:50.540533+00:00, sha 0a843ea2207d)
  - homepage: https://www.nuget.org/packages/OpenAI/ (fetched 2026-08-29T10:51:56.531772+00:00, sha 4066fdae8ae0)
  - site_page: https://www.nuget.org/policies/About (fetched 2026-08-29T10:51:56.537314+00:00, sha a113b8a074c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
