13 releases (2 stable)

Uses new Rust 2024

1.1.0 Mar 19, 2025
1.0.0 Feb 28, 2025
0.4.3 Feb 25, 2025
0.4.2 Nov 15, 2024
0.1.0 Oct 30, 2024

#2134 in Web programming

50 downloads per month
Used in whathaveidone

MIT license

23KB
644 lines

STILL A WIP

A library to use Google Gemini's API directly in Rust! Made because the current options weren't very capable and didn't support 100% of the official API.

Example

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!(
        "{}",
        gemini_rs::chat("gemini-2.0-flash")
            .send_message("Explain how AI works")
            .await?
    );
    Ok(())
}

Dependencies

~6–18MB
~226K SLoC