qmetrics.net

Async OpenAI

Async Rust client library for OpenAI APIs

Async OpenAI screenshot

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.

Overview

Async OpenAI is a Rust library that wraps OpenAI’s HTTP APIs for use in async applications. It is based on the official OpenAPI specification and exposes typed request and response objects with builder-style construction.

The crate covers a wide range of OpenAI platform APIs, including chat completions, responses, realtime, embeddings, images, audio, batch jobs, vector stores, administration, and webhooks. Granular Cargo feature flags let you enable only the API groups you need, which keeps compile times and dependencies smaller.

Clients read credentials from standard environment variables such as the API key, base URL, organization, and project identifiers. Configuration types support OpenAI’s cloud service, Microsoft Azure OpenAI, and custom base URLs so the same client code can target OpenAI-compatible hosts. Optional bring-your-own-types methods allow generic request and response types when shapes differ from OpenAI’s.

Additional capabilities include server-sent event streaming, Tower middleware hooks, webhook signature verification, WASM support across APIs, selectable TLS backends for the underlying HTTP client, and optional OpenAPI schema generation for chat completion types.

Key features

  • Builder pattern for API requests
  • SSE streaming support
  • Granular Cargo feature flags
  • OpenAI-compatible provider configuration
  • Microsoft Azure OpenAI configuration
  • Bring-your-own-types generic methods
  • Tower middleware integration
  • WASM support for APIs

Use cases

  • Calling OpenAI APIs from Rust services
  • Targeting OpenAI-compatible LLM hosts
  • Azure OpenAI deployments in Rust
  • Streaming chat and responses in async apps

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

OpenAI .NET

Official .NET client for the OpenAI REST API

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.

★ 2.7k⟳ 3 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