google-generativeai
Google Generative AI High level API client library and tools.
Decision gist · record as of 2026-08-14
No. This package is deprecated and archived, with all support ending November 30, 2025. The maintainers explicitly recommend migrating to the Google Generative AI SDK instead. Install only if you are maintaining legacy code that already depends on it; do not use for new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Google AI API key; the package is no longer maintained and all support ended November 30, 2025.
- Low install friction with a pure-Python wheel and standard dependencies.
- However, the package is abandoned as of November 30, 2025, with the repository archived and development restricted to critical bug fixes only.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), so commercial and proprietary use is permitted with minimal restrictions. However, the deprecated status overrides any licensing advantage.
last release 2025-12-16 (241 days) · last repo commit 2025-12-16 · 2,329 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 16,418,743 downloads/mo, #1,152 on PyPI
Alternatives
Verify before relying
pip install google-generativeai
import google.generativeai as genai
genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-pro")
response = model.generate_content("Hello world")- Whether critical bug fixes will actually be applied after the November 30, 2025 end-of-life date or if the package is truly frozen.
- Compatibility guarantees with future Gemini API changes after the support cutoff.
What it is and what it does
google-generativeai is a Python client library for accessing Google's Gemini generative AI models through a high-level API. It wraps the underlying Google AI services (generativelanguage, api-core, api-python-client, and auth) to provide a simpler interface for tasks like text generation, multimodal input, and conversation management.
However, this package is now deprecated and archived. Google has replaced it with the Google Generative AI SDK (python-genai), which incorporates feedback from this library and aligns with a unified approach across all Google GenAI models. The repository is in limited maintenance mode, accepting only critical bug fixes, with all support ending permanently on November 30, 2025. Existing users are strongly encouraged to migrate to the new SDK rather than start new projects with this library.
Use it for
- Migrating legacy code that was built against this SDK before the deprecation announcement.
- Maintaining existing applications that depend on this library while planning a transition to the new SDK.
- Understanding the evolution of Google's GenAI Python tooling by studying the old SDK design.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
This package is deprecated and archived, with all support ending November 30, 2025. The maintainers explicitly recommend migrating to the Google Generative AI SDK instead. Install only if you are maintaining legacy code that already depends on it; do not use for new projects.
Install
google-generativeai on PyPI
Before you install
Low install friction with a pure-Python wheel and standard dependencies. However, the package is abandoned as of November 30, 2025, with the repository archived and development restricted to critical bug fixes only. New projects should not adopt this library.
Requires a valid Google AI API key; the package is no longer maintained and all support ended November 30, 2025.
License in practice
Licensed under Apache 2.0 (permissive), so commercial and proprietary use is permitted with minimal restrictions. However, the deprecated status overrides any licensing advantage.
Quickstart
pip install google-generativeai
import google.generativeai as genai
genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-pro")
response = model.generate_content("Hello world")
Verify before relying
- Whether critical bug fixes will actually be applied after the November 30, 2025 end-of-life date or if the package is truly frozen.
- Compatibility guarantees with future Gemini API changes after the support cutoff.
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesgoogle-ai-generativelanguagegoogle-api-coregoogle-api-python-clientgoogle-authprotobufpydantictqdmtyping-extensions |
| Maintenance | Abandoned 241 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 16,418,743 / month, #1,152 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 7 - InactiveIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Artificial IntelligenceTyping :: Typed |
Evidence: google_generativeai-0.8.6-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “deprecated gemini library”
- google-generativeaiProvides a Python client library for calling Google's Gemini…
- llama-index-llms-geminiIntegrates Google's Gemini LLM with LlamaIndex, though this…
- google-ai-generativelanguagePython client library for the Gemini API, enabling developers to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also google-genai · google-ai-generativelanguage · vertexai · google-cloud-aiplatform · opentelemetry-instrumentation-google-generativeai · generative-ai-hub-sdk · livekit-plugins-google · opentelemetry-instrumentation-google-genai · langchain-google-genai · google-apitools