OpenAI API for Rust
A community-maintained library provides a simple and convenient way to interact with the OpenAI API. No complex async and redundant dependencies.
API
check official API reference
API | Support |
---|---|
Models | ✔️ |
Completions | ✔️ |
Chat | ✔️ |
Edits | ✔️ |
Images | ✔️ |
Embeddings | ✔️ |
Audio | ✔️ |
Files | ❌ |
Fine-tunes | ❌ |
Moderations | ❌ |
Engines | ❌ |
Usage
Add the following to your Cargo.toml file:
= "0.1.1"
Then use the crate in your Rust code:
use *;
use *;
Output:
)
License
This library is distributed under the terms of the MIT license. See LICENSE for details.