
FreeLLMAPI Tutorial: Combine 14 Free AI Provider Tiers Into One Endpoint on Windows
ChatGPT Plus, Claude Pro, Gemini Advanced: the subscriptions add up fast. But almost every major AI company also publishes a free developer tier for its API. The catch is that each one has its own SDK, its own rate limits, and its own dashboard. FreeLLMAPI fixes that. It’s a free, open-source tool that runs on your PC and puts all those free tiers behind one OpenAI-compatible endpoint.
In this guide I’ll set it up on Windows from scratch. You don’t need any terminal experience.
What FreeLLMAPI does
FreeLLMAPI runs as a small local server. You add API keys from providers like Google AI Studio, Groq, GitHub Models, Cerebras, NVIDIA, Mistral, and OpenRouter, and it gives you a single endpoint on localhost. Any app that speaks the OpenAI API format can use it.
- Automatic routing: it picks an available model for each request.
- Failover: if a provider is busy or rate-limited, the request moves to the next one in your chain.
- Dashboard: manage keys, view analytics, test prompts in a playground, and edit the fallback chain from a web UI.
- Self-hosted: your keys are stored encrypted on your own machine. No third-party relay.
Combined, these free tiers add up to hundreds of millions of tokens a month, which is more than most individual developers use.
Important: everything here uses the official free tiers each provider publishes. You sign up with your own account and stay within their terms. Nothing here gets around a paywall.
What you need
- A Windows 10 or 11 PC
- Node.js 20 or newer (free, from nodejs.org)
- Git (free, from git-scm.com)
- Free developer accounts with the providers you want to use
Step 1: Install Node.js
Go to nodejs.org, click Get Node.js, download the Windows installer, and click through it with the default settings. Then press the Windows key, type cmd, open Command Prompt, and check the version:
node --versionIf you see something like v24.x, you’re good. If you get an error, close Command Prompt, open a new one, and try again.
Step 2: Install Git
Download the Windows installer from git-scm.com and run it with the defaults. Then confirm:
git --versionStep 3: Download FreeLLMAPI and install dependencies
Open Command Prompt in the folder where you want the project (I use the C: drive) and run:
git clone https://github.com/tashfeenahmed/freellmapi.git
cd freellmapi
npm installnpm install takes a minute or two while it downloads packages. If it stops with errors, try:
npm install --forceStep 4: Create your encryption key
FreeLLMAPI encrypts your stored API keys using a key kept in a .env file in the project folder. Follow the project’s README for the exact command, because it can change between versions. If you want to generate a random key yourself, this Node one-liner prints one:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"Open the file with notepad .env and confirm it contains an ENCRYPTION_KEY line with a long random value. On Windows, if a command from the README fails because of the % symbol, it’s a Command Prompt vs PowerShell difference, so try it in the other shell.
Step 5: Start the dashboard
npm run devWithin a few seconds you’ll see a local address like http://localhost:5173. Ctrl+click it to open your dashboard.
Step 6: Add your free API keys
Open the Keys tab. The pattern is the same for every provider: sign up, create a key, paste it, save.
Google AI Studio (Gemini)
- Go to aistudio.google.com and sign in.
- Click Get API key, then Create API key, and pick or create a project.
- Copy the key, choose Google AI Studio in the dashboard dropdown, paste it, and click Add key.
Groq
Sign up at console.groq.com, open API Keys, create a key, and add it under Groq. Groq is one of the fastest inference providers available and serves open models like Llama, Qwen, and Kimi.
GitHub Models
In GitHub, go to Settings → Developer settings → Personal access tokens, generate a new token, and add it under GitHub Models. This gives you access to models including GPT-4o on GitHub’s free developer tier.
Everything else
Cerebras (cloud.cerebras.ai), NVIDIA (build.nvidia.com), Mistral (console.mistral.ai), OpenRouter (openrouter.ai), and Hugging Face all work the same way and take about two minutes each. The more providers you add, the more smoothly routing works. The dashboard shows a health check next to each key.
Step 7: Set your fallback chain
Open Fallback chain and set the order providers are tried in. I put Gemini first because it’s the most capable free model on the list, then Groq for speed, then GitHub Models, then the rest. When one provider is busy or out of quota, requests move to the next one automatically.
Step 8: Use your unified key
At the top of the Keys tab is your unified key. That’s the only key your apps need. In any OpenAI-compatible tool (LangChain, LlamaIndex, Open WebUI, or your own code), change the base URL to your local FreeLLMAPI address and paste this key. It’s one line of config.
Test it in the Playground
The Playground tab lets you send test prompts from the browser. Choose auto to let the router decide, or pick a specific model. Each reply shows which provider served it and how long it took, which is handy for seeing what’s fast.
Why I like it
- Private: keys never leave your machine.
- Generous: combined free tiers cover a lot of side projects and learning.
- Compatible: works anywhere the OpenAI SDK does.
- Resilient: automatic failover when a provider goes down.
- Easy to manage: keys, analytics, playground, and fallback chain in one dashboard.
If you want a similar tool with a bigger provider catalog and built-in compression, see my OmniRoute tutorial.
FAQ
Is FreeLLMAPI really free?
The tool is free and open source. The models are free within each provider’s published free-tier limits.
Is it safe to add my API keys?
Keys are stored encrypted on your own disk, and the server runs locally. Your prompts go directly to whichever provider serves them, so read each provider’s terms.