Core Traits & Providers

QAI SDK is built around a trait-based architecture. Each capability is a standalone trait, implemented selectively by each provider.

LanguageModel

Chat generation & streaming — implemented by all 6 providers.

EmbeddingModel

Text vector embeddings for RAG and similarity search.

ImageModel

Image generation via DALL-E and Google Imagen.

SpeechModel

Text-to-speech synthesis with multiple voice options.

TranscriptionModel

Speech-to-text via OpenAI Whisper integration.

CompletionModel

Legacy text completion for backward compatibility.

Architecture Metrics

Rust Engine
Zero-Cost Abstractions
Feature Gates
7 Cargo Features
Async Runtime
Tokio-Powered
Examples
17 Runnable Scripts