Edgee SDKs
Rust SDK
Integrate the Rust SDK in your application.
The Edgee Rust SDK provides a modern, type-safe, async interface to interact with the Edgee AI Gateway. Built with Rust's powerful type system and async/await capabilities, it offers compile-time safety, zero-cost abstractions, and excellent performance.
Installation
cargo install edgee
Quick Start
use edgee::Edgee;
let client = Edgee::with_api_key("your-api-key");
let response = client.send("gpt-5.2", "What is the capital of France?").await.unwrap();
println!("{}", response.text().unwrap_or(""));
// "The capital of France is Paris."
What's Next?
- Configuration - Learn how to configure and instantiate the SDK
- Send Method - Complete guide to the
send()method - Stream Method - Learn how to stream responses
- Tools - Detailed guide to function calling
Verify your first request
Run the example with a Gateway API key stored in your environment. Confirm a model response, then find the request in Logs for that key and organization. Check the served model and provider, since routing rules can change them. See Gateway errors if authentication, model access, or billing prevents the request.