# Stack 87 Free LLM Tiers Behind One Local Endpoint

> Source: <https://dev.to/ovulab/stack-87-free-llm-tiers-behind-one-local-endpoint-7g3>
> Published: 2026-12-01 15:11:55+00:00

**Key takeaway:** FreeLLMAPI routes requests across 87 free provider tiers behind one OpenAI-compatible endpoint at localhost:3001, using model "auto" and an X-Routed-Via header to show which provider served each reply.

Every large AI lab now gives away a free tier. A free tier is a no-cost allowance of tokens each month. One tier alone is small, so FreeLLMAPI stacks 87 of them behind one local address. FreeLLMAPI is a free, open source router that runs on your own machine. A router is a small server that picks a provider for each request. It speaks the OpenAI API, so most AI tools can use it with no code change.

The project lists 10.1 billion tokens a month of free capacity. That total spans 87 providers and 1,313 free model endpoints. An endpoint is one model on one provider. The list includes Google, Groq, Cerebras, Mistral, OpenRouter, Cloudflare, Cohere, NVIDIA, and Hugging Face. The code is MIT licensed, and the repo holds about 61,000 stars.

You add your own provider keys in the dashboard. The project encrypts each key with AES-256-GCM and stores it in a local SQLite database. Your apps never see those keys. They see one unified key, and every request carries that one key. The router picks the best model with a healthy key under its rate limit. When a provider answers with an error, the router cools that key down and tries the next model.

The router tracks speed, capability, and uptime for each model. Six routing plans rank your chain, and automatic failover retries the next model on a rate limit or server error. A virtual model named fusion fans one prompt out to several free models at once. A judge model then blends their drafts into one answer. The router also serves chat, images, video, speech, embeddings, and tool calls through the same endpoint.

Install it with Docker in one command. Run `curl -fsSL https://freellmapi.co/install.sh | bash` in your terminal. Read the script at freellmapi.co before you run it.

Open [http://localhost:3001](http://localhost:3001) and add your provider keys on the Keys page. Copy the unified key from the top of the Keys page. Point your OpenAI client at [http://localhost:3001/v1](http://localhost:3001/v1) with that key. Set the model to auto, and the router picks a model for each request.

Claude Code users get a one-command setup. Run `npx freellmapi setup-claude --url http://localhost:3001 --api-key <unified-key>` with your own key in place of the placeholder. The command reads your live catalog, backs up your old config, and merges the router in. Codex CLI, Gemini CLI, Cursor, OpenCode, and Aider work the same way through the same endpoint. Windows and macOS users can skip Docker and take the desktop app from the Releases page.

A plain Python script needs four lines of setup. Point the OpenAI client at [http://localhost:3001/v1](http://localhost:3001/v1) and pass the unified key. Then call chat completions with model auto. Every reply carries an X-Routed-Via header, so you can see which provider served it. Try a small prompt first, such as a one-sentence summary, and watch the header change across providers.

``` python
from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:3001/v1",
    api_key="<redacted>",
)

response = client.chat.completions.create(
    model="auto",
    messages=[{"role": "user", "content": "Summarise the fall of Rome in one sentence."}],
)
print(response.choices[0].message.content)
```

The router is free, and the tokens are free. You bring your own free provider keys, and the project sells no tokens. One paid option exists: a live model catalog for 19 dollars a year or 49 dollars once. Free installs get the same catalog from a monthly snapshot, so new models arrive 30 days late. The free build now sits about 303 models behind the live feed. Nothing else is locked, and the router stays fully free.

Stacking free tiers has real trade-offs. There are no frontier models, no fixed latency, and no uptime promise. The best models hit their daily caps, so the endpoint gets weaker late in the day. Caps reset at midnight UTC. The project states plainly that this is for personal tests and learning, not for production use. Free tiers also change without notice, so a provider can tighten a limit and your requests will fail until the catalog catches up.

The install needs Node 20 or newer, and the router idles at about 40 MB of memory. It runs on Windows, macOS, Linux, and even a Raspberry Pi. Keep it on your own machine: it is single-user by design, and your keys live in its local database.

FreeLLMAPI turns scattered free allowances into one useful endpoint. It is the fastest way to run coding agents and small scripts without paying for tokens. Expect uneven quality late in the day, and keep real work on a paid plan. For learning, tests, and side projects, the stack is hard to beat at zero cost. Install it, add two or three free keys, and send your first prompt through model auto.

I test AI tools and build in public:
