hanaokayuzu/gemini-api

✨ Reverse-engineered Python API for Google Gemini web app

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on September 19th, 2026
Created on February 11th, 2024
Open Issues & Pull Requests: 37 (+0)
GitHub issues: Enabled
Number of forks: 557
Total Stargazers: 3,524 (+0)
Total Subscribers: 18 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 22
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 147 days
Stale 30+ days: 18
Stale 90+ days: 12

Recent activity

Opened in 7 days: 1
Closed in 7 days: 1
Comments in 7 days: 1
Events in 7 days: 2

Top labels

  • enhancement (13)
  • bug (11)
  • invalid (9)
  • unreproducible (7)
  • advanced (6)
  • question (5)
  • wontfix (2)
  • dependencies (1)

Detailed Description

Gemini-API is a reverse-engineered asynchronous Python wrapper for the Google Gemini web application.

The tool solves the problem of programmatic access to Google Gemini's web interface by mimicking the browser-based interactions that the web app uses. It works by automatically managing authentication cookies in the background, allowing persistent connections suitable for always-on services. The wrapper exposes Gemini's capabilities through an asynchronous Python interface, supporting text generation, image generation and editing, video and audio generation, deep research workflows, system prompt customization through Gemini Gems, and integration with Gemini extensions like YouTube and Gmail. Responses are classified into distinct output types including text, thoughts, images, videos, and audio. The tool also provides streaming mode for partial output generation and includes a command-line interface for direct interaction.

Developers should adopt this tool if they need programmatic access to Gemini's capabilities without relying on an official API. It suits projects requiring image or video generation, deep research functionality, or extension-based content generation. The tool is particularly valuable for always-on services because of its background cookie refresh mechanism. Those building applications that need Gemini's multimodal generation features will find the native support for images, videos, and audio more complete than what a text-only interface would provide.

The project maintains active development with regular updates to the package distribution pipeline. The codebase follows consistent formatting standards and manages its external dependencies carefully. The tool receives ongoing attention to keep pace with changes in the underlying Gemini web application.