qmetrics.net

OpenAI .NET

Official .NET client for the OpenAI REST API

OpenAI .NET screenshot

The OpenAI .NET library exposes the OpenAI REST API to .NET apps via NuGet, with clients for chat, audio, images, embeddings, assistants, and related API areas.

Overview

The OpenAI .NET API library provides typed access to the OpenAI REST API from .NET applications. It is generated from the OpenAPI specification in collaboration with Microsoft and installs as a NuGet package for .NET Standard 2.0 and newer targets.

The API is split into namespaces and client classes that mirror REST feature areas, including chat completions, responses, audio, images, embeddings, files, batches, fine-tuning, moderations, vector stores, assistants, realtime, and decisions. A shared OpenAIClient can create multiple feature clients with common credentials. Sync and async methods are paired across clients.

Documentation covers streaming chat, tool and function calling, structured outputs, audio in chat, RAG with assistants, Azure OpenAI, dependency injection in ASP.NET Core, retries, observability, and custom base URLs for OpenAI-compatible endpoints. Some APIs remain marked experimental in .NET until stabilized.

Key features

  • NuGet package for .NET applications
  • Chat completions with streaming
  • Tools and function calling support
  • Structured output response formats
  • Audio, image, and embedding clients
  • Assistants and vector store APIs
  • Azure OpenAI configuration paths
  • ASP.NET Core dependency injection

Use cases

  • Calling OpenAI APIs from C# or F# apps
  • Building chat features with streaming
  • Server apps using injected OpenAI clients
  • Proxies to OpenAI-compatible LLM endpoints
  • Embeddings and image generation in .NET

Tags

Similar software

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Folkbench

AI API relay rankings benchmarks and desktop client switcher

Web rankings and probes for third-party AI API relays plus Folkbench Switch, a desktop client to swap provider settings for coding CLIs.

★ 3.8k⟳ todayApache-2.0

WorkBuddy Manager

Web console for Tencent CodeBuddy account pools and OpenAI gateway

WorkBuddy Manager is a web admin layer for workbuddy2api: scan-to-add CodeBuddy accounts, issue API keys, enforce IP and model rules, and audit OpenAI-compatible usage.

★ 3.1k⟳ yesterdayMIT · open core

Async OpenAI

Async Rust client library for OpenAI APIs

An unofficial Rust library for calling OpenAI APIs, aligned with the OpenAI OpenAPI specification. It supports streaming, feature flags, Azure OpenAI, and compatible third-party providers.

★ 2k⟳ 10 days agoMIT

OpenAPIs

Unified hosted proxy for OpenAI and Anthropic APIs

OpenAPIs proxies OpenAI and Anthropic endpoints so official SDKs, Claude Code, and OpenCode work by changing base URL and key during free open beta.

★ 110⟳ 5 months agoMIT

DeepSeek Harness

Open-source plugin-based agent harness from DeepSeek

DeepSeek Harness is an open-source agent harness built on an everything-is-a-plugin architecture powered by Cordis. It offers a web UI, desktop app, and extensible plugins for daily work, coding, and automation.

★ 288k⟳ 6 days agoMIT