Skip to content

google-gemini/deprecated-generative-ai-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

29f85b8 · Mar 21, 2025
Mar 19, 2025
Feb 20, 2025
Feb 20, 2025
Mar 7, 2025
Feb 20, 2025
Jul 23, 2024
Oct 4, 2023
Jul 17, 2024
May 16, 2023
May 3, 2023
Aug 22, 2024
May 3, 2023
Mar 21, 2025
Oct 23, 2023
Feb 22, 2024
Jan 21, 2025

[Deprecated] Google AI Python SDK for the Gemini API

With Gemini 2.0, we took the chance to create a single unified SDK for all developers who want to use Google's GenAI models (Gemini, Veo, Imagen, etc). As part of that process, we took all of the feedback from this SDK and what developers like about other SDKs in the ecosystem to create the Google Gen AI SDK.

The full migration guide from the old SDK to new SDK is available in the Gemini API docs.

We won't be adding anything to this SDK or making any further changes. The Gemini API docs are fully updated to show examples of the new Google Gen AI SDK. We know how disruptive an SDK change can be and don't take this change lightly, but our goal is to create an extremely simple and clear path for developers to build with our models so it felt necessary to make this change.

Thank you for building with Gemini and let us know if you need any help!