🔀 [FREE FOREVER] FreeLLMAPI — One Key + 1B Tokens/Month + 14 Providers Stacked

:coin: One API Key. 1 Billion Free AI Tokens. Every Month.

14 free AI providers stacked behind one OpenAI-compatible endpoint. Self-hosted, MIT, no card.

:bullseye: One key, every free brain on the internet — Gemini, Groq, Cerebras, GitHub Models + 10 more. Auto-failover when one runs dry.

:link: Repo: github.com/tashfeenahmed/freellmapi


🧠 How it works — 30 sec

Normal life: You want free AI → sign up at Google → sign up at Groq → sign up at OpenRouter → juggle 14 different keys → each one rate-limits you mid-task → rage quit.

FreeLLMAPI life: Sign up free at each → paste all keys into the FreeLLMAPI dashboard → it gives you ONE master key. Your app calls that one key. Behind the curtain, it picks whichever provider still has budget left and routes there. One runs dry? Auto-falls-back to the next. You never see the chaos.

:light_bulb: Think of it like a credit-card juggling app for AI — except every “card” is a free tier and you never get a bill.

It speaks OpenAI’s language. Any app that works with ChatGPT’s API works with this — Cursor, LangChain, the OpenAI Python SDK, curl, whatever. Just swap one URL.

💰 The math — what 1 billion tokens actually buys

Per month, free, stacked together:

Provider Free quota/mo Best for
:blue_square: Mistral La Plateforme ~1 billion (the whale) Mistral Large/Medium, Codestral
:orange_square: Cerebras ~30M (1M tokens/day) Fastest tokens you’ll ever see — 30 RPM
:green_square: Groq ~30M Llama 3.3 70B, GPT-OSS 120B/20B
:globe_with_meridians: OpenRouter ~6M (19 free models) DeepSeek, Kimi, Qwen, Llama, Gemma
:yellow_square: Google Gemini ~3M (20 RPD per model) Gemini 2.5 Flash, Pro previews
:octopus: GitHub Models ~18M est. (50 RPD) GPT-4.1, GPT-4o (free Copilot tier)
:fire: SambaNova ~3M DeepSeek V3.1/V3.2, Llama 4 Maverick
:cloud: Cloudflare Workers AI ~20M Kimi K2.5, Qwen3, GLM-4.7
:purple_square: Z.ai (Zhipu) ~30M GLM-4.5 Flash, GLM-4.7 Flash
:brown_square: Cohere ~1-2M (1000 calls/mo, 20 RPM) Command R+
:gem_stone: NVIDIA NIM credits-based Llama 3.1 70B

That’s ~$50–150/month of API value, free, every month.

:light_bulb: RPD = Requests Per Day. RPM = Per Minute. TPD = Tokens Per Day. Each provider sets their own cap.

🍿 The smart-routing magic
Feature Plain English
:bullseye: model="auto" The router picks the best available model for your request — you don’t even have to choose
:repeat_button: Auto-failover One provider rate-limits? Skips it, retries the next. Up to 20 attempts.
:brain: Sticky sessions Multi-turn convos stay on the same model for 30 min → no hallucination spike from mid-chat switching
:bar_chart: Per-key tracking Counts RPM/RPD/TPM/TPD per provider per model → never overshoots a free cap
:locked: Encrypted key storage API keys locked with AES-256-GCM, decrypted only when needed
:identification_card: Single bearer key for your apps Your apps see ONE key. Upstream chaos never leaks.
:stethoscope: Health checks Marks dead keys as healthy / rate_limited / invalid / error. Auto-skips dead ones.
:desktop_computer: Admin dashboard Pretty React UI: add keys, reorder fallback order, see analytics, run prompts in a playground
:hammer_and_wrench: Tool calling / streaming Full OpenAI-style tools and tool_choice — works across every provider that supports it
:pie: Runs on a Raspberry Pi ~40 MB RAM at idle. Cheap home server = free AI for life.
🎮 Setup — 3 minutes

Prereqs: Node.js 20+ and npm. That’s it.

Clone + install + run:

git clone https://github.com/tashfeenahmed/freellmapi.git
cd freellmapi
npm install

Generate an encryption key (locks your API keys at rest):

cp .env.example .env
echo "ENCRYPTION_KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")" >> .env

Start the server + dashboard:

npm run dev

Open http://localhost:5173 → paste in your provider keys → reorder the fallback chain → grab your unified key from the header. That’s the one your apps point at.

For production (single server, no dev mode):

npm run build
node server/dist/index.js
🪝 Hooking it up to your apps

Any OpenAI-compatible app/SDK works. Just point base_url at your local proxy.

Python (the most common):

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:3001/v1",
    api_key="freellmapi-your-unified-key",
)

resp = client.chat.completions.create(
    model="auto",  # let the router pick, OR specify like "gemini-2.5-flash"
    messages=[{"role": "user", "content": "Summarise the fall of Rome in one sentence."}],
)
print(resp.choices[0].message.content)

curl (raw test):

curl http://localhost:3001/v1/chat/completions \
  -H "Authorization: Bearer freellmapi-your-unified-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "auto", "messages": [{"role": "user", "content": "hi"}]}'

:light_bulb: Works with Cursor, LangChain, LlamaIndex, Continue, Hermes, etc. — anything that says “OpenAI-compatible.” Just change one URL.

🛡️ Catch check
Q A
Actually free? Yes. Every listed provider has a recurring free tier, no card. Sign up free, paste key, done.
Quality vs paid GPT/Claude? Mistral Large + DeepSeek V3.1 + Llama 3.3 70B = roughly Sonnet-tier for most tasks
Safe? MIT licensed, 3.5k :star:, open source, code auditable. Keys encrypted locally.
Will providers ban me? You’re using their official free tiers within limits. Same as using each one directly.
Embeddings / image gen / audio? :cross_mark: Not yet supported. Text + tool calls only.
Multi-user / billing? :cross_mark: Single-user by design. Personal proxy.
Logs my prompts? Local SQLite only. Nothing phoned home.
Vision / multimodal? :cross_mark: Not yet — text content only.
🎯 What to build with this
Play Free fuel makes it possible
:robot: Personal AI assistant Run 24/7 on a Pi, never pay a bill
:memo: Mass content gen Blog posts, SEO, social — burn 18M tokens/mo guilt-free
:test_tube: Side project with AI Stop ghosting your ideas because OpenAI charges money
:books: RAG over your docs Free embeddings… wait no. Use a separate free embeddings provider.
:hammer_and_wrench: Cursor / Continue / VS Code Point them at this, code with free AI all day
:microscope: LLM testing / benchmarking Compare 60 free models on the same prompt, no card
:bar_chart: Internal company tool Run on a $5 VPS, serve your whole team

:magic_wand: Simple-pimple: clone repo → npm install → paste 14 free API keys into the dashboard → get ONE master key back → use it in any OpenAI-style app. Auto-falls-back when one runs out. Free 1 billion tokens a month, forever.

One key, every free brain. The juggling act is now someone else’s problem.

If i any one want i can make a youtube video to explain same and uses as well

yes please

pls make a video

Here I have made a video as well,

Thank you all

@Tempor_K @slimjval @Codjo_Christian_GUEG

@Talos @Asad_Bhatti

Can we add Antigravity support as well? Like now, we literally have antigravity cli there, I suppose we can use?

Yes please …:smiling_face_with_three_hearts: