A unified router and drop-in OpenAI-compatible proxy for free LLMs. Auto-cascades across free providers, swaps rate-limited API keys, and tracks quota reset windows seamlessly.
pip install zerogateway
Cursor or Python client requests llama-3.3-70b
Groq hits quota. Reset window parsed from headers.
Swaps to Key 2 or cascades to Cerebras / SambaNova.
Stream returned to IDE without interruption!
Provide comma-separated API keys for Google Gemini or other providers. If one key runs out of quota, it auto-swaps to the second key immediately.
Parses Retry-After headers and Gemini retryDelay error payloads to put keys on cooldown until their reset window expires.
Drop-in endpoint at http://localhost:8080/v1. Supports streaming (SSE) and full tool/function calling formats.
Start immediately without signing up using zero-auth endpoints (Pollinations), or supply your own free keys for Groq, Cerebras, and Gemini.
Both intra-provider key swapping and inter-provider cascading are configurable options. Toggle via environment variables, code, or per-request headers.
Community curated YAML definitions with daily canary probing. Deprecated models and paid walls are detected and pruned automatically.
Ultra-fast wafer-scale engine inference.
LPU speed with 14,400 free requests per day.
1M - 2M context windows with multi-modal support.
Hosts full-precision 405B and 70B Llama models.
Free community variants including DeepSeek R1.
Official Codestral coding models and Mistral Small.
Free Azure-backed GPT-4o mini via your GitHub PAT.
Completely keyless access. No registration required.
# 1. Install pip install zerogateway # 2. Run with smart fallback from zerogateway import ZeroGatewayClient client = ZeroGatewayClient(enable_key_rotation=True) response = client.chat.completions.create( model="llama-3.3-70b", # or "gemini-flash", "fast-smart", "auto" messages=[{"role": "user", "content": "Explain async in Python in 1 line."}] ) print(response.choices[0].message.content) print(f"Served by: {response.provider_id}")
Zero cost. Full cascading resilience. Open source and MIT licensed for all developers.