#gemini #ai #google

gemini-rs

A library to interact with the Google Gemini API

12 releases (1 stable)

1.0.0 Feb 28, 2025
0.4.3 Feb 25, 2025
0.4.2 Nov 15, 2024
0.3.2 Nov 5, 2024
0.1.0 Oct 30, 2024

#1571 in Web programming

Download history 86/week @ 2024-11-16 8/week @ 2024-11-23 1/week @ 2024-11-30 7/week @ 2024-12-07 6/week @ 2024-12-14 4/week @ 2025-02-01 4/week @ 2025-02-08 14/week @ 2025-02-15 216/week @ 2025-02-22 131/week @ 2025-03-01

366 downloads per month

MIT license

23KB
643 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-1.5-flash")
            .send_message("Explain how AI works")
            .await?
    );
    Ok(())
}

Dependencies

~6–18MB
~230K SLoC