Overview
async-openai
is an unofficial Rust library for OpenAI REST API.
- It's based on OpenAI OpenAPI spec
- Current features:
- Microsoft Azure Endpoints / AD Authentication
- Completions
- Edit
- Embeddings
- Fine-Tunning
- Image (Generation/Edit/Variation)
- Moderation
Usage
The library reads API key from the environment variable OPENAI_API_KEY
.
- Visit examples directory on how to use
async-openai
. - Visit docs.rs/async-openai for docs.
Image Generation Example
use Error;
use async_openai as openai;
use ;
async
License
This project is licensed under MIT license.