Async Python API for Google Gemini web app
Top 40.1% on sourcepulse
This Python package provides an asynchronous API wrapper for the Google Gemini web application, targeting developers who need to integrate Gemini's advanced AI capabilities into their applications. It offers features like persistent cookies, image generation, extension support, and classified outputs, aiming for an elegant and efficient integration.
How It Works
The library reverse-engineers the Gemini web app's API, enabling programmatic access to its features. It utilizes asyncio
for efficient, non-blocking operations, crucial for always-on services. Key features include automatic cookie refreshing to maintain session persistence and native support for image generation and manipulation via natural language prompts, leveraging Google's Imagen3 model. It also allows interaction with Gemini extensions like Gmail and YouTube, and categorizes responses, including AI-generated images.
Quick Start & Requirements
pip install -U gemini_webapi
pip install -U browser-cookie3
__Secure-1PSID
and __Secure-1PSIDTS
cookies from your browser session.Highlighted Details
asyncio
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 weeks ago
1 day