
Mission 2 of 4
The Lethal Stack, Module 2: GPT4Free, AI models with no API key
GPT4Free connects your computer to AI services without a paid API key. In this module you install it, get a real answer from ChatGPT with three lines of Python, open its chat app, find out which free routes work today, and turn it into a local API that your own apps and automations can use.
What you'll do
- A script that tells you which free routes work right now
- A local API you can point other apps and automations at
- A Windows, Mac or Linux computer. Any age, no graphics card needed
- An internet connection
- About 40 minutes. No coding experience: every command is given to you to copy
Your progress0/9
- 01What GPT4Free is, and what it really gives you4 min
- 02Install Python5 min
- 03Install GPT4Free in its own environment6 min
- 04Get your first answer with three lines of Python5 min
- 05Open the chat app, and meet the Cake Baker6 min
- 06Find out which free routes work today5 min
- 07Claude, Gemini and the routes that want a sign-in4 min
- 08Turn it into a local API for your other apps5 min
- 09Keep it working, and know when to stop using it3 min
What GPT4Free is, and what it really gives you
Understand how it works and what to expect, so nothing in the setup surprises you.
When a developer wants their app to use ChatGPT or Claude, they normally buy an API key: a password that lets their code talk to the model, with a bill for every word. GPT4Free ↗ (the Python package is called g4f) skips the key. It knows dozens of other ways in, which it calls providers: free chat websites, free tiers and community servers. You ask it a question, it sends the question down one of those routes and hands you back the answer.
You get three things in one install:
- A Python library, so three lines of code can ask an AI a question.
- A chat app that runs in your browser from your own computer.
- A local API in the same format OpenAI uses, so apps built for a paid key can be pointed at it instead.
What we found when we tested it
We installed it on a Windows 11 PC on 11 Nov 2026 and tested every route that claims to need no login. The honest result:
- Worked with no account and no key: ChatGPT, Perplexity, a Llama model on Cloudflare, plus free models on Kilo, LLM7 and Yqcloud.
- Wanted a sign-in or credits: the Claude routes and the top Gemini routes. Its page lists them, and they are free in the sense that you don't pay, but on the day they asked for a free account or for "cake credits" (step 5 explains those).
- It changes week to week. Free routes open and close as the services change. Step 6 gives you a script that checks what works today.