Skip to content

Migrate deprecated google-generativeai to google-genai#1604

Description

@reneleonhardt

Description

When checking your outdated dependencies I saw google-generativeai was the last one blocking protobuf 6, now I found out it has been deprecated a month ago 馃槄
https://pypi.org/project/google-generativeai
https://github.com/google-gemini/deprecated-generative-ai-python?#deprecated-google-ai-python-sdk-for-the-gemini-api
2025-03-21 google-gemini/deprecated-generative-ai-python@29f85b8

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in-progressSomething being actively worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions