Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Latest commit

 

History

94 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Generative AI API client (unofficial)

Caution

NO LONGER MAINTAINED.

Gemini (Public and Vertex) is now accessible and compatible with the OpenAI API format, there is little point in dusting this off - Thanks.

Rust Check An unofficial rust-based client library to interact with the Google generative AI API.

The goal is to emulate the Google AI Python SDK but in Rust.

Usage

Start point, gain familiarity with Google's Gemini generative AI.

See examples and follow the in-comment instructions. The code is (hopefully) easy and readable.

Contributing

Yes, please!! Create a fork and branch, make your contribution, and raise a PR.

Please see contributing for the rules; they are standard though.

Work status

google-generative-ai-rs = { version = "0.3.4", features = ["beta"] }

Using the beta feature will enable the following:

  • gemini-1.5-pro-latest
  • gemini-1.0-pro
  • gemini-1.5-pro-latest")
  • gemini-1.5-flash")
  • "gemini-1.5-flash-8b")
  • gemini-2.0-flash-exp")
  • or custom Model::Custom(name)
  • system instructions
  • json_mode

Note: gemini-1.0-pro is deprecated and will be unavailable from 15th February 2025.

I do my best to release working code.

Status today is: "Happy path for both public and Vertex AI endpoints work for Gemini."

Outline tasks

About

An unofficial rust-based client library to interact with the Google Gemini generative AI API

Topics

Resources

Code of conduct

Contributing

Stars

61 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages