Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Where to Get a Free AI API Key (2026): Gemini, Cloudflare, OpenRouter and the Data Catch

The short version: Google AI Studio for the Gemini API, Cloudflare Workers AI and OpenRouter's free models are the best places to get a free AI API key in 2026. They're great for testing and small tools, but on Gemini's free tier your content is used to improve Google's products, so don't send anything private through it.

A free AI API key lets you build your own chatbot, automate a writing task or plug AI into a spreadsheet without committing to anything. For creators and small businesses, it's the quickest way to find out whether an AI idea is worth building for real. Each provider gives you something slightly different, and the limits and data rules matter more than the model names.

Where to get a free AI API key

In no particular order:

  • Google AI Studio (Gemini API): best for getting started quickly with a free tier and generous limits.
  • Cloudflare Workers AI: best for running models inside apps you already host on Cloudflare.
  • OpenRouter: best for trying many models through one key, including free models.
  • Groq: best for trying the models it hosts, with limits set at organisation level.
  • Hugging Face: best for experimenting with open models from the community.

Free AI API options side by side

ProviderFree optionLimit to know
Gemini APIFree tierLimits per project, daily requests reset at midnight Pacific time
Cloudflare Workers AIFree allocation10,000 Neurons per day, reset at 00:00 UTC
OpenRouterFree modelsDaily cap on free-model requests
GroqNot statedRate limits apply per organisation
Hugging FaceNot statedCheck its own pages

Free limits change often, so check the provider's own page the day you start building.

How the main free options work

Google says you can start building with the Gemini API for free with generous limits, through Google AI Studio. Its rate limits page explains that limits are measured in requests per minute, tokens per minute and requests per day, that they apply per project rather than per API key, and that daily request quotas reset at midnight Pacific time. For example, if your limit is 20 requests a minute, the 21st request in that minute returns an error.

Cloudflare says Workers AI is included in both its free and higher Workers plans, and its free allocation lets anyone use 10,000 Neurons per day. Neurons are Cloudflare's way of measuring the compute a request uses, and all limits reset daily at 00:00 UTC. OpenRouter gives you one key for many models, including free models with a daily request cap.

The data catch and the limits that trip people up

Here's the line most people skim past. On Google's own comparison table for the Gemini API, the free tier is marked as content used to improve its products, while the upgraded tier is marked as not used. So the free tier is perfect for testing with made-up or public data, and the wrong place for client documents, customer emails or anything confidential.

The second catch is how limits are counted. Gemini's limits apply per project, not per key, so making extra keys in the same project won't give you more requests. OpenRouter says the same thing more bluntly: making additional accounts or API keys won't affect your rate limits, because capacity is governed globally. Groq applies rate limits at organisation level rather than to individual users.

And if you're following an older tutorial, check the provider still exists. GitHub's documentation says GitHub Models was fully retired on 30 July 2026, so guides that start there won't work anymore.

How to get started with a free key

  1. Decide what you're testing and use sample or public data, never private information.
  2. Create a key in Google AI Studio, Cloudflare or OpenRouter.
  3. Store the key in an environment variable, never in a public file or shared document.
  4. Read the provider's rate limits page and build in a pause when you hit an error.
  5. Log how many requests your tool makes a day, so you know if it will outgrow the free limits.
  6. Review the data terms again before you connect anything real.

Good first projects for a free key

The best first projects are small, repeatable jobs where you can check every answer. A tool that rewrites product descriptions in your brand voice, a script that sorts customer questions into categories, or a spreadsheet formula that summarises survey comments are all good fits. They use modest numbers of requests and show quickly whether the model does the job. Avoid starting with anything that runs on its own at night or answers customers directly, because free limits can stop it halfway and there's no one watching. Keep a simple log of what you sent and what came back, so you can compare models fairly when you try a second provider. And when a test works, write down how many requests it used in a normal day; that one number tells you whether a free key will keep up or whether it's time to plan the next step.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Building with AI next

If you'd rather try models without code first, my guide on how to use OpenRouter walks through the basics, and how to use the Gemini CLI shows another free route into Gemini. For the everyday app, see how to use Gemini.

My verdict: start with a Gemini key from Google AI Studio for testing, add OpenRouter when you want to compare models, and keep anything private off free tiers. A free key is for proving the idea, not for running your business on.

Run a free AI API that belongs on this list? See how to get it featured.

Frequently asked questions

Where can I get a free AI API key?

Google AI Studio offers a free Gemini API tier, Cloudflare Workers AI has a free daily allocation, and OpenRouter offers free models through one key.

Is the Gemini API free?

Google says you can start building for free with generous limits. On the free tier, your content is used to improve Google's products.

How many free requests does Cloudflare Workers AI give?

Cloudflare's free allocation is 10,000 Neurons per day, and all limits reset at 00:00 UTC.

Can I make more API keys to get more free requests?

No. Gemini limits apply per project rather than per key, and OpenRouter says extra accounts or keys won't change your rate limits.

Is GitHub Models still available?

No. GitHub says GitHub Models was fully retired on 30 July 2026, including its playground and inference API.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.