Expand description
xAI SDK for Rust
A Rust SDK for xAI’s API, providing type-safe gRPC clients for all xAI services including Grok language models, embeddings, image generation, and more.
Re-exports§
pub use export::*;
Modules§
- api
- API organization module.
- auth
- Authentication service client.
- billing
- Billing service client.
- chat
- Chat completion service client.
- common
- Common utilities for the xAI SDK.
- documents
- Document processing service client.
- embed
- Embedding service client.
- export
- Re-exports of commonly used types from dependencies.
- image
- Image generation service client.
- models
- Model information service client.
- sample
- Text sampling service client.
- tokenize
- Tokenization service client.
- utils
- Utilities module.
- video
- Video generation service client.
Constants§
- XAI_
API_ URL - Default xAI API URL