Python
Official SDK- Package
google-genai- Install
- Install
pip install google-genai - Repo
- github.com/googleapis/python-genai
- Docs
- ai.google.dev/gemini-api/docs/libraries
- Notes
- Vertex page install: pip install --upgrade google-genai
From the docs
When building with the Gemini API, we recommend using the Google GenAI SDK. These are the official, production-ready libraries that we develop and maintain for the most popular languages.