dongri/openai-api-rs
OpenAI API client library for Rust (unofficial)
What it solves
This library provides a convenient way for developers to integrate OpenAI's API services into applications written in the Rust programming language, removing the need to manually handle HTTP requests to the OpenAI endpoints.
How it works
It acts as a wrapper around the OpenAI API, allowing users to configure a client with an API key and an optional custom endpoint (such as OpenRouter). Users can then use Rust-native types and methods to send requests for chat completions, image generation, audio processing, and other supported services.
Who it’s for
Rust developers who want to build AI-powered applications using OpenAI's models or compatible API endpoints.
Highlights
- own an unofficial Rust client for the OpenAI API
- Supports a wide range of APIs including Chat, Completions, Images, Embeddings, Audio, Fine-tuning, and Assistants
- Compatible with OpenRouter and other custom API endpoints
- Includes support for function calling and Realtime API
- Built for asynchronous execution using Tokio
Related
- Project
- Project
- Project
- Project