Skip to content
LLM Router
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?

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.