Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

Refresh the free-tier numbers and the stacked-tier graphic (#1006)

Tashfeene86764ee9f80
diff --git a/README.md b/README.md
index 0ea53070..f7fb671e 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
# FreeLLMAPI
-**4 billion tokens per month. 29 free LLM providers. 358 free model endpoints. One OpenAI-compatible endpoint.**
+**7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. One OpenAI-compatible endpoint.**
Aggregate free tiers from dozens of providers, plus custom OpenAI-compatible chat, embedding, image, and audio endpoints, behind a single `/v1` API. Keys are stored encrypted. A router picks the best available model for each request, falls over to the next provider when one is rate-limited, and tracks per-key usage so you stay under every free-tier cap.
@@ -13,7 +13,7 @@ Aggregate free tiers from dozens of providers, plus custom OpenAI-compatible cha
[![Docker image](https://img.shields.io/badge/ghcr.io-freellmapi-2496ED?logo=docker&logoColor=white)](https://github.com/tashfeenahmed/freellmapi/pkgs/container/freellmapi)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/tashfeenahmed/freellmapi)
-**[freellmapi.co](https://freellmapi.co/?utm_source=github&utm_medium=readme&utm_campaign=repository&utm_content=readme_top)** · browse the full catalog: 251 model families, 358 free endpoints
+**[freellmapi.co](https://freellmapi.co/?utm_source=github&utm_medium=readme&utm_campaign=repository&utm_content=readme_top)** · browse the full catalog: 474 model families, 635 free endpoints
**English** · [简体中文](docs/i18n/zh-CN/README.md)
@@ -27,7 +27,7 @@ Aggregate free tiers from dozens of providers, plus custom OpenAI-compatible cha
![FreeLLMAPI dashboard — Models page with the monthly token budget](repo-assets/github-hero.png)
-Your router updates its own model catalog from a signed feed: new free models, quota changes, and compatibility fixes land without a `git pull`.
+Your router updates its own model catalog from a signed feed: new free models, quota changes, and compatibility fixes land without a `git pull`. Free installs get the monthly snapshot, so a model reaches them 30 days after it joins the live feed; premium routers get it the same day.
**[Go live at freellmapi.co](https://freellmapi.co/?utm_source=github&utm_medium=readme&utm_campaign=premium&utm_content=readme_top#pricing)** ($19/yr, cancel anytime).
</div>
@@ -58,13 +58,13 @@ Your router updates its own model catalog from a signed feed: new free models, q
## Why this exists
-Every serious AI lab now offers a free tier, a few million tokens a month, a few thousand requests a day. On its own each tier is a toy. Stacked together, they add up to roughly **4 billion tokens per month** of working inference capacity, across **251 model families / 358 provider endpoints** from small-and-fast to reasonably capable.
+Every serious AI lab now offers a free tier, a few million tokens a month, a few thousand requests a day. On its own each tier is a toy. Stacked together, they add up to roughly **7.4 billion tokens per month** of working inference capacity, across **474 model families / 635 provider endpoints** from small-and-fast to reasonably capable.
-The problem is that stacking them by hand is painful: twenty-nine different SDKs, twenty-nine different rate limits, twenty-nine places a request can fail. FreeLLMAPI collapses that into one OpenAI-compatible endpoint. Point any OpenAI client library at your local server, and it routes transparently across whichever providers you've added keys for.
+The problem is that stacking them by hand is painful: thirty-four different SDKs, thirty-four different rate limits, thirty-four places a request can fail. FreeLLMAPI collapses that into one OpenAI-compatible endpoint. Point any OpenAI client library at your local server, and it routes transparently across whichever providers you've added keys for.
And the free-tier landscape shifts weekly: providers launch models, retire them, and change quotas without notice. FreeLLMAPI tracks all of that for you. The router pulls a signed model catalog from [freellmapi.co](https://freellmapi.co) on its own, so your install keeps up without a `git pull`. See [Premium (live catalog)](#premium-live-catalog) for how fast it keeps up.
-![The free tier, stacked — ~4B tokens of free inference per month across 28 providers](repo-assets/free-tier.png)
+![The free tier, stacked — ~7.4B tokens of free inference per month across 34 providers](repo-assets/free-tier.png)
## Supported providers
@@ -92,7 +92,7 @@ And the free-tier landscape shifts weekly: providers launch models, retire them,
</tr>
</table>
-<i>… and 17 more free providers</i>
+<i>… and 22 more free providers</i>
</div>
@@ -134,7 +134,7 @@ The full, always-current list lives at **[freellmapi.co/models](https://freellma
</div>
-Most of these configure themselves with one command — `npx freellmapi setup-claude`, `setup-codex`, `setup-aider`, `setup-dsh` (DeepSeek Harness), and ten more generators that fetch your live catalog, back up existing config, and never clobber what's already there. Claude Code and Codex also get zero-persistence launchers (`freellmapi launch`, `freellmapi launch-codex`) that inject credentials into the child process only. Zed and JetBrains AI connect through the opt-in [Ollama emulation](docs/clients.md#ollama-clients); Gemini CLI speaks its native wire on `/v1beta`.
+Most of these configure themselves with one command — `npx freellmapi setup-claude`, `setup-codex`, `setup-aider`, `setup-dsh` (DeepSeek Harness), and eleven more generators that fetch your live catalog, back up existing config, and never clobber what's already there. Claude Code and Codex also get zero-persistence launchers (`freellmapi launch`, `freellmapi launch-codex`) that inject credentials into the child process only. Zed and JetBrains AI connect through the opt-in [Ollama emulation](docs/clients.md#ollama-clients); Gemini CLI speaks its native wire on `/v1beta`.
Per-tool recipes, the setup CLI reference, revocable URL tokens for headerless clients, and the MCP server all live in **[Clients & coding agents →](docs/clients.md)**
@@ -148,7 +148,7 @@ Based on public documentation, July 2026 — corrections welcome.
![Feature overview](repo-assets/features.png)
-- **Every OpenAI-style surface** — `/v1/chat/completions`, `/v1/responses` (what Codex CLI needs), `/v1/completions` (editor ghost-text autocomplete), `/v1/images/generations`, `/v1/videos/generations`, `/v1/audio/speech`, `/v1/embeddings`, and `/v1/models` — streaming and non-streaming, from the official SDKs or any OpenAI-compatible client. [API reference →](docs/api.md)
+- **Every OpenAI-style surface** — `/v1/chat/completions`, `/v1/responses` (what Codex CLI needs), `/v1/completions` (editor ghost-text autocomplete), `/v1/images/generations`, `/v1/videos/generations`, `/v1/audio/speech`, `/v1/audio/transcriptions`, `/v1/embeddings`, and `/v1/models` — streaming and non-streaming, from the official SDKs or any OpenAI-compatible client. [API reference →](docs/api.md)
- **Anthropic Messages API** — `/v1/messages` speaks Anthropic's wire format over the same router, so **Claude Code** and the official Anthropic SDKs run against your free pool. [Details →](docs/api.md#anthropic--claude-clients)
- **Native Gemini + Ollama surfaces** — Gemini CLI can use `/v1beta` (`generateContent`, streaming, token counting, models), while opt-in Ollama emulation serves NDJSON chat/generate, tags, metadata, and embeddings for Zed, JetBrains, and other local-model clients.
- **Fusion (multi-model synthesis)** — request the virtual `fusion` model and the router fans your prompt out to a panel of diverse free models in parallel, then a judge model synthesizes one answer from the drafts. [Details →](docs/api.md#fusion-multi-model-synthesis)
@@ -157,7 +157,7 @@ Based on public documentation, July 2026 — corrections welcome.
- **Smart routing, six strategies** — live per-model speed/capability/reliability scores rank your chain; automatic fallover retries the next model on 429/5xx with cooldowns and key rotation. [Routing in detail →](docs/architecture.md#routing-in-detail)
- **Unified models & profiles** — the same model on several providers collapses into one entry with strict in-group failover; named fallback-chain profiles (a coding chain, a vision chain) switch from the dashboard or per request via `auto:<profile>`.
- **Per-key rate tracking** — RPM/RPD/TPM/TPD counters per `(platform, model, key)` that learn providers' reported ceilings, so routing always stays under every cap.
-- **Self-updating model catalog** — the router syncs a signed catalog from freellmapi.co twice a day: new models, quota changes, and provider quirk fixes land automatically. [Premium →](#premium-live-catalog)
+- **Self-updating model catalog** — the router syncs a signed catalog from freellmapi.co twice a day: new models, quota changes, and provider quirk fixes land automatically. Free installs track the monthly snapshot, which each model joins 30 days after it lands in the live feed; premium routers get it same-day. [Premium →](#premium-live-catalog)
- **Sticky sessions & context handoff** — conversations stay on one model for 30 minutes; an optional compact handoff note keeps the thread coherent when a mid-chat switch does happen. [Details →](docs/clients.md#context-handoff)
- **Prompt compression (opt-in)** — a shared, fail-open request pipeline can deduplicate prompts, filter tool output, compact repeated JSON, and trim stale context before cache lookup and routing. [Details →](docs/compression.md)
- **Encrypted keys, one token out** — provider keys are AES-256-GCM encrypted in SQLite and decrypted in-memory per request; your apps only ever see a single unified `freellmapi-…` bearer token.
@@ -253,14 +253,20 @@ quota changes, and provider quirk fixes to your local DB. Your own
enable/disable choices and custom providers are never touched, and every
download is verified against a pinned Ed25519 key before it is applied.
-The catalog currently tracks **29 providers**, **251 model families**, **358
-provider/model endpoints**, and roughly **4 billion tokens per month** of listed
-free-tier capacity. Browse the full set at
+The catalog currently tracks **34 providers**, **474 model families**, **635
+free provider/model endpoints** (584 chat, 41 embeddings, 7 transcription, 3
+video), and roughly **7.4 billion tokens per month** of listed free-tier
+capacity. Browse the full set at
**[freellmapi.co/models](https://freellmapi.co/models.html)**.
+Free installs pull the same signed catalog, but from the monthly snapshot: a
+model joins it 30 days after it lands in the live feed, so the free build
+currently sits about 303 models behind. Nothing expires and nothing is
+crippled — it just arrives later.
+
Premium keeps that signed catalog live on every router you run. When a provider
launches a strong free model, quietly tightens a quota, or breaks a wire format,
-live-feed routers receive the update as soon as we ship it.
+live-feed routers receive the update the same day we ship it.
**[Go live at freellmapi.co →](https://freellmapi.co/?utm_source=github&utm_medium=readme&utm_campaign=premium&utm_content=readme_bottom#pricing)**
diff --git a/docs/architecture.md b/docs/architecture.md
index b4376310..a0a69a88 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -33,7 +33,7 @@ How the router decides, what to expect from stacked free tiers, and where the bo
│
┌──────────────┬────────────┬──────────┴─────────┬─────────────┬──────────┐
▼ ▼ ▼ ▼ ▼ ▼
- Google Groq Cerebras OpenRouter HF …22 more
+ Google Groq Cerebras OpenRouter HF …29 more
```
- **Router** (`server/src/services/router.ts`) — picks a model per request.
@@ -79,8 +79,8 @@ PRs that add any of these are very welcome. See [Contributing](../README.md#cont
Stacking free tiers has real trade-offs. Be honest with yourself about them:
-- **No frontier models.** The free-tier catalog tops out around Llama 3.3 70B, GLM-4.5, Qwen 3 Coder, and Gemini 2.5 Pro. You will not get GPT-5 or Claude Opus class reasoning through this. For hard problems, pay for a real API.
-- **Intelligence degrades as the day progresses.** Your top-ranked models (usually Gemini 2.5 Pro, GPT-4o via GitHub Models) have the lowest daily caps. Once they hit their limits, the router falls down your priority chain to smaller/weaker models. Expect the effective intelligence of the endpoint to drop in the late hours of each day — then reset at UTC midnight.
+- **Quota and availability are the ceiling, not model class.** The catalog does carry frontier-class rows — GPT-5.x, Grok 4.x, Kimi K3, DeepSeek V4 Pro, and Gemini 3.x all show up on somebody's free tier. What you don't get is *sustained* access to them: those are exactly the rows with the smallest daily allowances, the longest queues, and the highest chance of being pulled or paywalled at short notice. Budget for capacity and uptime, not for a capability limit.
+- **Intelligence degrades as the day progresses.** Your top-ranked models (usually Gemini 3.6 Flash, DeepSeek V4, Kimi K2.6) have the lowest daily caps. Once they hit their limits, the router falls down your priority chain to smaller/weaker models. Expect the effective intelligence of the endpoint to drop in the late hours of each day — then reset at UTC midnight.
- **Latency is highly variable.** Cerebras and Groq are extremely fast; others are not. You get whichever one is available.
- **Free tiers can change without notice.** Providers regularly tighten, loosen, or remove free tiers. When that happens you'll see 429s or auth errors until the catalog update reaches you — live-feed installs get those fixes within days, free installs on the 30-day trail. Re-seed scripts live in `server/src/scripts/`.
- **No SLA, by definition.** If you need reliability, use a paid provider with a contract.
@@ -109,4 +109,4 @@ A self-hosted, single-user, personal-use setup was re-reviewed against each prov
Rules of thumb that keep most providers happy: **one account per provider**, **no reselling**, **no sharing your endpoint with other humans**, **don't hammer a free tier as a paid production backend**. This is informational, not legal advice — read each provider's ToS and make your own call.
-Removed since the April 2026 review: Hugging Face, Moonshot, and MiniMax direct integrations were dropped from the catalog (HF — tool-call format issues; Moonshot — moved to paid only; MiniMax — superseded by the OpenRouter `minimax/minimax-m2.5:free` route).
+Removed since the April 2026 review: Moonshot and MiniMax direct integrations were dropped from the catalog (Moonshot — moved to paid only; MiniMax — superseded by the OpenRouter `minimax/minimax-m2.5:free` route).
diff --git a/docs/i18n/zh-CN/README.md b/docs/i18n/zh-CN/README.md
index 23a2c057..13d2a1b8 100644
--- a/docs/i18n/zh-CN/README.md
+++ b/docs/i18n/zh-CN/README.md
@@ -2,7 +2,7 @@
# FreeLLMAPI
-**每月 40 亿词元。29 家免费 LLM 提供方。358 个免费模型端点。一个 OpenAI 兼容端点。**
+**每月 74 亿词元。34 家免费 LLM 提供方。635 个免费模型端点。一个 OpenAI 兼容端点。**
把几十家提供方的免费额度,连同任意自建的 OpenAI 兼容聊天、嵌入、图像和音频端点,一起聚合到单个 `/v1` API 之后。密钥加密存储。路由器为每个请求挑选当前可用的最佳模型,某家提供方触发限流时自动转移到下一家,并按密钥跟踪用量,让你始终待在各家的免费额度之内。
@@ -13,10 +13,12 @@
[![Docker image](https://img.shields.io/badge/ghcr.io-freellmapi-2496ED?logo=docker&logoColor=white)](https://github.com/tashfeenahmed/freellmapi/pkgs/container/freellmapi)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/tashfeenahmed/freellmapi)
-**[freellmapi.co](https://freellmapi.co/?utm_source=github&utm_medium=readme&utm_campaign=repository&utm_content=readme_top)** · 浏览完整目录:251 个模型系列,358 个免费端点
+**[freellmapi.co](https://freellmapi.co/?utm_source=github&utm_medium=readme&utm_campaign=repository&utm_content=readme_top)** · 浏览完整目录:474 个模型系列,635 个免费端点
[English](../../../README.md) · **简体中文**
+本翻译可能滞后,最新内容以英文 README 为准。
+
![FreeLLMAPI 仪表盘 —— 带每月词元额度的模型页](../../../repo-assets/github-hero.png)
@@ -52,13 +54,13 @@
## 为什么会有这个项目
-如今每家正经的 AI 实验室都提供免费额度:每月几百万词元,每天几千次请求。单独看,每一份都只是个玩具。叠加起来,它们合计约 **每月 40 亿词元** 的可用推理能力,覆盖 **251 个模型系列 / 358 个提供方端点**,从小而快的到相当能打的都有。
+如今每家正经的 AI 实验室都提供免费额度:每月几百万词元,每天几千次请求。单独看,每一份都只是个玩具。叠加起来,它们合计约 **每月 74 亿词元** 的可用推理能力,覆盖 **474 个模型系列 / 635 个提供方端点**,从小而快的到相当能打的都有。
-问题在于手工叠加太痛苦:二十九套不同的 SDK,二十九种不同的限流规则,二十九个请求可能失败的地方。FreeLLMAPI 把这些收拢成一个 OpenAI 兼容端点。把任意 OpenAI 客户端库指向你的本地服务,它就会在你添加过密钥的提供方之间透明路由。
+问题在于手工叠加太痛苦:三十四套不同的 SDK,三十四种不同的限流规则,三十四个请求可能失败的地方。FreeLLMAPI 把这些收拢成一个 OpenAI 兼容端点。把任意 OpenAI 客户端库指向你的本地服务,它就会在你添加过密钥的提供方之间透明路由。
而且免费额度的格局每周都在变:提供方会上线新模型、下线旧模型,并且不打招呼就调整额度。这些 FreeLLMAPI 都替你盯着。路由器会自行从 [freellmapi.co](https://freellmapi.co) 拉取经过签名的模型目录,所以你的部署不用 `git pull` 也能跟上。跟进速度见 [Premium 实时目录](#premium-实时目录)。
-![叠加后的免费额度 —— 28 家提供方合计每月约 40 亿词元的免费推理](../../../repo-assets/free-tier.png)
+![叠加后的免费额度 —— 34 家提供方合计每月约 74 亿词元的免费推理](../../../repo-assets/free-tier.png)
## 支持的提供方
@@ -86,7 +88,7 @@
</tr>
</table>
-<i>…… 以及另外 17 家免费提供方</i>
+<i>…… 以及另外 22 家免费提供方</i>
</div>
@@ -230,7 +232,7 @@ FreeLLMAPI 在设计上是本地优先、单用户的。你的提供方密钥留
路由器会自行保持模型目录的新鲜:它每天两次从 [freellmapi.co](https://freellmapi.co) 拉取经过签名的目录,把新模型、额度变更和提供方的怪癖修复应用到你的本地数据库。你自己的启用/停用选择和自定义提供方永远不会被动到,而且每次下载在应用之前都会用固定的 Ed25519 公钥验签。
-目录目前收录 **29 家提供方**、**251 个模型系列**、**358 个提供方/模型端点**,以及大约 **每月 40 亿词元** 的免费额度容量。完整内容可在 **[freellmapi.co/models](https://freellmapi.co/models.html)** 浏览。
+目录目前收录 **34 家提供方**、**474 个模型系列**、**635 个免费提供方/模型端点**(584 个聊天、41 个嵌入、7 个转录、3 个视频),以及大约 **每月 74 亿词元** 的免费额度容量。完整内容可在 **[freellmapi.co/models](https://freellmapi.co/models.html)** 浏览。
Premium 让这份签名目录在你运行的每一个路由器上保持实时。当某家提供方上线了一个强力的免费模型、悄悄收紧了额度,或者改坏了协议格式,订阅了实时源的路由器会在我们发布的第一时间收到更新。
diff --git a/repo-assets/free-tier.png b/repo-assets/free-tier.png
index 602c4b80..457f65a0 100644
Binary files a/repo-assets/free-tier.png and b/repo-assets/free-tier.png differ