--- id: google-generativeai version: "0.8.6" license: Apache 2.0 license_treatment: permissive maintenance: abandoned --- # google-generativeai — Google Generative AI High level API client library and tools. License: permissive · Maintenance: abandoned · Downloads: 16.4M/mo ## 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 above — verify before relying. Provides a Python client library for calling Google's Gemini generative AI models, though the package is now deprecated in favor of the Google Generative AI SDK. 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 pip install google-generativeai uv add google-generativeai poetry add google-generativeai ## Installing google-generativeai 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. 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") Requires a valid Google AI API key; the package is no longer maintained and all support ended November 30, 2025. 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_current - Install friction: low - Maintenance: abandoned - Downloads: 16.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags gemini api python client, google generative ai sdk, llm api wrapper, google ai model access, deprecated gemini library, deprecated, legacy-sdk, gemini-api [View on SkillFed](https://skillfed.io/packages/google-generativeai) · [View on PyPI](https://pypi.org/project/google-generativeai/)