google-generativeai 0.8.6


pip install google-generativeai

  Latest version

Released: Dec 16, 2025

Project Links

Meta
Author: Google LLC
Requires Python: >=3.9

Classifiers

Development Status
  • 7 - Inactive

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Operating System
  • OS Independent

Topic
  • Scientific/Engineering :: Artificial Intelligence

Typing
  • Typed

[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.

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!

Please be advised that this repository is now considered legacy. For the latest features, performance improvements, and active development, we strongly recommend migrating to the official Google Generative AI SDK for Python.

Support Plan for this Repository:

  • Limited Maintenance: Development is now restricted to critical bug fixes only. No new features will be added.
  • Purpose: This limited support aims to provide stability for users while they transition to the new SDK.
  • End-of-Life Date: All support for this repository ended permanently on November 30, 2025.

We encourage all users to begin planning their migration to the Google Generative AI SDK to ensure continued access to the latest capabilities and support.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
google-ai-generativelanguage (==0.6.15)
google-api-core
google-api-python-client
google-auth (>=2.15.0)
protobuf
pydantic
tqdm
typing-extensions