What happened
I checked ten free AI APIs to see which ones can read your code, and six of them can. By “read”, I mean their terms let them train on what you sent, or let a person look at it. On Google’s own pricing page for the Gemini API, the row “used to improve our products” says yes for the free tier and no for the paid one.
This matters more because of FreeLLMAPI, an open-source project on GitHub with almost 60,000 stars. You paste in free keys from every AI company you can, and it gives you back one key that works like an OpenAI key. It says the stacked free tiers come to about 10 billion tokens a month across 87 providers.
Its README is honest: it runs on your machine, keeps your keys encrypted and says its catalog server never sees your prompts. But the router moves to the next provider when one runs out of free quota, so your code can end up at every provider you’ve added. Its disclaimer says personal experimentation and learning, not production. Keep client code out of it.
Where the control failed
Here are the six.
- Gemini. On the free tier, your prompts can be used to improve Google’s products and machine learning, human reviewers may read them, and you shouldn’t submit sensitive, confidential or personal information. In the European Economic Area, the UK and Switzerland, you get the paid tier’s privacy rules even on free. Here in India, assume Google can train on a free key.
- NVIDIA. Its free trial says it collects what you send and what comes back to improve its products, including its AI models.
- Cohere. Free trial keys can be used for its research. Its promises on deleting logs and opting out are written for paying customers.
- Mistral. Free mode may train on your data unless you opt out, and the opt-out doesn’t cover its newest test models.
- OpenAI, if you take the free deal. The API hasn’t trained on your data by default since 2023, but it isn’t free. For free daily tokens, your organisation’s owner has to opt in to sharing traffic for training. At least you have to say yes.
- OpenRouter. The answer depends on which free model you pick.
OpenRouter is a middleman that forwards your request to whoever runs the model. It doesn’t store your prompts unless you opt in, and it offers 1% off if you do, a very precise price for your privacy. Each model page labels whether each host trains on prompts or keeps them. When I read the labels in late November, the free versions from NVIDIA, Liquid and Particle AI were marked as training on prompts and keeping them. The paid hosts of the same NVIDIA model were all marked as not training.
Then there are stealth models, free test models with the maker’s name hidden, such as Quasar and Horizon. Their pages say every prompt and answer is logged by the provider and may be used to improve the model. I think it’s the shadiest practice I came across. Switch off the settings that allow free models to train, and check the label before sending real code.
The evidence an auditor should ask for
Three say they don’t. Groq won’t use your prompts for training without permission and doesn’t keep them by default. Cerebras says it doesn’t keep them at all. Cloudflare’s free allowance doesn’t keep them unless you switch on logging. For anything that isn’t public, these are the free ones I’d pick. DeepSeek appears on free API lists but has no free API of its own right now. Its privacy policy says your inputs can be used for training unless you opt out, and it stores your data in China.
Terms are only a promise. In November, HD Moore, creator of Metasploit and a researcher at Dragos, published a five-month test. He hid fake passwords and keys in about two million prompts and sent them through AI routers, resellers and hosting companies. Each one existed only inside one prompt, so if anyone used it, someone had read it.
He says he found attackers stealing data from three hosting providers, and the fake cloud keys were used for tens of thousands of calls. Some resellers simply switched on request logging, read prompts and opened the secret links inside. A Chinese AI lab he didn’t name fetched the links from more than half the prompts sent to its models, including about two-thirds of those marked zero data retention. His conclusion: a privacy label only protects you at the first company your prompt reaches. As an auditor, I would safely assume ignoring zero data retention is the norm right now.
Three days later, OpenRouter said it had removed three unnamed providers and taken 125 endpoints off its zero data retention list, some as a precaution, and found no breach of OpenRouter itself. MiniMax, a Chinese AI company, then said its security system had pulled links out of forwarded requests, including zero data retention ones, and opened some before switching it off. Nobody has said these are the companies Moore tested, so I won’t guess.
The worst version is a random site handing out free GPT or Claude keys. Sysdig researchers have tracked a black market reselling stolen cloud accounts as cheap AI access, and Microsoft went to court last year against a similar group abusing its own AI service.
Free tiers can also vanish. OpenRouter’s free cap was 200 requests a day in 2025 and is now 50, unless you’ve bought $10 of credits. Google cut Gemini 2.5 Pro’s free limits last December, and GitHub shut down its free GitHub Models service in July. My verdict: “free AI APIs cost you nothing” doesn’t hold up. If you’re not paying with your money, you’re paying with your prompts.
The test to run this week
Five things to set up before sending a free API anything real:
- Keep secrets out of the prompt. Add a deny rule so your coding agent can’t open your
.envfile, and keep real keys out of the project folder anyway, because the rule doesn’t block every way a file can be read. - Match the API to the data. Practice projects can go anywhere. Client code or your users’ details go to a free tier that doesn’t train, or better, a paid one.
- Go direct to the company that makes the model when you can, and avoid resellers and random free GPT sites. Moore recommends this too.
- Plant your own fake keys in test prompts. If one is ever used, someone read your prompt: treat it as a leak.
- If your app holds real users’ personal data in India, know that from May 2027 the DPDP Act makes you responsible. The way I read it, if your app sends their details to a free tier that trains on them, that’s on you.
Sources
- FreeLLMAPI on GitHub
- Google Gemini API Additional Terms of Service
- Cohere privacy policy
- Mistral Help Center: is my data used for training?
- OpenAI developer documentation
- OpenRouter documentation
- Groq: your data in GroqCloud
- Cerebras privacy policy
- Cloudflare Workers AI: data usage
- DeepSeek privacy policy
- Dragos: HD Moore's canary token test of the AI supply chain
- OpenRouter: data processing incidents on inference providers
- MiniMax: update on URL access in forwarded API requests
- Sysdig threat research
- Microsoft: disrupting a cybercrime network abusing generative AI
- GitHub Changelog: GitHub Models is now retired
- Claude Code documentation: permissions
- PIB: Government of India release on the DPDP timeline