# snailyp/gemini-balance

Gemini polling proxy service （gemini轮询代理服务）

Repository: https://github.com/snailyp/gemini-balance
Canonical: https://ross.abutalabs.com/products/gemini-balance
Homepage: https://gb-docs.snaily.top
Language: Python
License: NOASSERTION
License Family: other
Topics: gemini, gemini-api, googlesearch, imagen-3, load-balancer, openai-api
Last push: 2025-09-30T09:47:26+00:00

## Health v2 (maintenance only)
Score: 41/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 44, release rhythm 36, longevity 44
- inputs: {"age_days": 629, "days_push": 337, "days_rel": 344, "gap_med": 0, "n_releases_24m": 74}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5826, forks 1161 (observed 2026-08-28T04:09:30.113948+00:00)

## What it is
A Python FastAPI proxy and load-balancing service for the Google Gemini API that rotates multiple API keys and exposes both Gemini and OpenAI-compatible endpoints. It includes an admin panel for live configuration, key status monitoring, image generation, and image-hosting uploads.

## Use cases
- rotate multiple gemini api keys to avoid rate limits
- use gemini through an openai-compatible api endpoint
- self-host a gemini proxy on huggingface or render
- monitor gemini api key status and usage
- generate images with imagen and upload to an image host
- load balance llm api requests across keys

## When to choose
- you have several Gemini API keys and need automatic rotation and failover
- you want to call Gemini from tools that only speak the OpenAI API format
- you need a web admin panel to manage keys and settings without restarting

## When to avoid
- you need a permissively licensed solution for commercial resale - it is CC BY-NC 4.0
- you use OpenAI or other providers rather than Gemini
- you want a lightweight client-side library rather than a hosted proxy service

## Facets
- artifact type: service
- maturity: active
- function: api-gateway, proxy, load-testing, http-server, auth, monitoring, image-processing, chatbot
- domain: large-language-models, apis, self-hosted, developer-tools, artificial-intelligence
- platform: python, self-hosted, cloud
- tags: gemini-api, api-key-rotation, openai-compatible, fastapi, load-balancing, image-generation, huggingface-deployment, non-commercial-license, docker, web-server

## Member repositories
- snailyp/gemini-balance (main) score 41

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:30.113948+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:52:09.938091+00:00, confidence not recorded.
  - readme: https://github.com/snailyp/gemini-balance (fetched 2026-08-28T04:09:30.113948+00:00, sha e7be8ad2d799)
  - homepage: https://gb-docs.snaily.top (fetched 2026-08-29T08:47:36.849535+00:00, sha c1a379d4307e)
  - site_page: https://gb-docs.snaily.top/guide/faq.html (fetched 2026-08-29T08:47:36.851920+00:00, sha c5d3d99a57b4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
