FreeLLMAPI is a self-hosted router that aggregates the free tiers of 34 LLM providers, plus custom OpenAI-compatible chat, embedding, image, and audio endpoints, behind a single OpenAI-compatible API. Stacked together the free tiers add up to roughly 7.4 billion tokens a month across 474 model families and 635 provider endpoints. Any OpenAI client library points at the local server, which routes each request across whichever providers have keys configured, falls over to the next provider when one is rate-limited, and tracks per-key usage to stay under every free-tier cap.
The router picks the highest-priority model with a healthy key that is under all its rate limits, decrypts the key in memory, calls the provider, and on a 429 or 5xx cools that key down and retries the next model in the chain. Six routing strategies rank the chain on live per-model speed, capability, and reliability scores, the same model on several providers collapses into one entry with in-group failover, and named fallback-chain profiles (a coding chain, a vision chain) switch from the dashboard or per request. Provider keys are AES-256-GCM encrypted in SQLite and client apps see one unified bearer token. The model catalog syncs from a signed feed twice a day. Free installs receive a monthly snapshot (a model reaches them 30 days after it joins the live feed) and a paid tier receives it the same day.
Beyond the OpenAI-style surfaces (chat completions, responses, completions, images, videos, speech, transcriptions, embeddings, and models), the router speaks the Anthropic Messages API, a native Gemini surface, and opt-in Ollama emulation, so Claude Code, Codex, Gemini CLI, and local-model clients such as Zed and JetBrains run against the free pool. Documented clients include Claude Code, Codex, Gemini CLI, Cursor, Cline, Roo Code, OpenCode, Aider, Continue, Goose, Qwen Code, Kilo Code, Crush, OpenClaw, Hermes, and Pi, and most agents configure themselves with one command that reads the live catalog and merges into the existing config. A virtual fusion model fans a prompt out to a panel of free models in parallel and has a judge model synthesize one answer, tool calls round-trip across providers, and an opt-in compression pipeline deduplicates prompts and trims stale context before routing.
It runs as a Node server, a container, or a native menu-bar desktop app for macOS and Windows, with a React dashboard (60 languages) for keys, chain order, a playground, and p50, p95, and TTFT analytics, plus an MCP server that lets ChatGPT and other MCP clients run inference and inspect routing. It compares itself against OpenRouter, LiteLLM, and Portkey. The project is local-first and single-user by design, positioned for personal experimentation rather than production: the free pool has no frontier models, variable latency, no SLA, and its effective capability dips late in the day as top models hit daily caps.
Features
- One endpoint over 34 free tiers: routes across providers such as Google, Groq, Cerebras, OpenCode Zen, Mistral, OpenRouter, Cloudflare, Cohere, Z.ai, NVIDIA, Hugging Face, and ModelScope, plus custom OpenAI-compatible endpoints (llama.cpp, LM Studio, vLLM, Ollama)
- Every OpenAI-style surface: chat completions, responses, completions, images, videos, speech, transcriptions, embeddings, and models, streaming and non-streaming
- Anthropic, Gemini, and Ollama wire formats: an Anthropic Messages endpoint for Claude Code and the Anthropic SDKs, a native Gemini surface for Gemini CLI, and opt-in Ollama emulation for local-model clients
- Smart routing with failover: six strategies ranked on live speed, capability, and reliability scores, with automatic retry on 429 or 5xx, cooldowns, and key rotation
- Unified models and profiles: the same model on several providers collapses into one entry with in-group failover, and named fallback-chain profiles switch per request
- Per-key rate tracking: RPM, RPD, TPM, and TPD counters per platform, model, and key that learn each provider's reported ceilings
- Self-updating catalog: a signed model catalog syncs twice a day with new models, quota changes, and provider fixes, monthly for free installs and same-day for the paid tier
- Fusion: a virtual model that fans one prompt out to a panel of diverse free models and has a judge model synthesize the answer
- Tool calling and structured outputs: OpenAI-style tool calls round-trip across providers, with response_format, seed, logprobs, and sampling parameters passed through
- Sticky sessions and compression: conversations stay on one model for 30 minutes with an optional handoff note, and an opt-in pipeline deduplicates prompts, filters tool output, and trims stale context
- Encrypted keys and dashboard: provider keys AES-256-GCM encrypted in SQLite behind one unified token, with a React dashboard for keys, chain order, a playground, and latency analytics in 60 languages
- Desktop app and MCP server: a menu-bar app for macOS and Windows runs the whole router locally, and an MCP server lets ChatGPT and other MCP clients run inference and inspect routing


