๐Ÿ”€ [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: