Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Reference

Full API documentation for each platform:

Rust API

The Rust crate provides the most complete API surface. All endpoints are accessed through the OpenAI client via resource methods:

ResourceAccessDocs
Chat Completionsclient.chat().completions()docs.rs
Responsesclient.responses()docs.rs
Embeddingsclient.embeddings()docs.rs
Imagesclient.images()docs.rs
Audioclient.audio()docs.rs
Filesclient.files()docs.rs
Fine-tuningclient.fine_tuning()docs.rs
Modelsclient.models()docs.rs
Moderationsclient.moderations()docs.rs
Batchesclient.batches()docs.rs
Uploadsclient.uploads()docs.rs
Assistants (beta)client.beta().assistants()docs.rs
Threads (beta)client.beta().threads()docs.rs
Runs (beta)client.beta().runs()docs.rs
Vector Stores (beta)client.beta().vector_stores()docs.rs