Last updated: September 29, 2026 · Every limit below was checked on the provider’s official pricing or docs page on this date
In September 2026 the most useful free LLM APIs are Google Gemini, Groq, OpenRouter’s :free models, Cloudflare Workers AI, Mistral and NVIDIA build.nvidia.com, all without a credit card. None is unlimited: Groq gives 1,000 requests and 200K tokens per day per model, OpenRouter 50 free requests a day, Cloudflare 10,000 Neurons a day. GitHub Models was retired in July 2026, Cerebras now requires a card, and OpenAI and Anthropic have no free API tier.
Most “free AI API” lists on the web were written in 2025 and have quietly gone stale. Since then GitHub Models has been shut down, Cerebras has added a card requirement, Groq has dropped Llama chat models from its free plan, and NVIDIA has replaced its credit counter with unpublished rate limits. We checked each provider’s own pricing and rate-limit pages on September 29, 2026. Where a provider doesn’t publish a number, we say so instead of guessing.
If you’re here for NVIDIA specifically, go straight to our free NVIDIA NIM API key guide. This page is the wider map: which free key to get for which job, and how far it really goes.
Which LLM APIs are free in 2026? The comparison table
| Provider | Free models (Sep 2026) | Free limits | Card? | OpenAI-compatible | Data on free tier |
|---|---|---|---|---|---|
| Google Gemini API | Gemini 3.x Flash and Flash-Lite, 2.5 Pro, 2.5 Flash, Gemma 4, embeddings (not 3.1 Pro Preview) | Not published; shown per project in AI Studio | No | Yes | Used to improve products outside the EEA/UK/CH; paid-tier data terms apply inside them |
| Groq | gpt-oss-120b, gpt-oss-20b, qwen3.8-27b, Whisper | 30 RPM, 1,000 RPD, 8K TPM, 200K tokens/day per model | No | Yes | Not retained by default; zero data retention available |
| OpenRouter | ~18 :free models (Nemotron 3, Gemma 4, Qwen 3.8, Laguna and others) | 20 RPM; 50 requests/day, or 1,000/day after $10 in lifetime credit purchases | No | Yes | Depends on the upstream provider |
| Cloudflare Workers AI | Catalog incl. gpt-oss-120b/20b, Qwen, Llama | 10,000 Neurons/day, 300 RPM, resets 00:00 UTC | No | Yes | Not used for training |
| Mistral | Mistral models via Studio | $10/month in API credits; exact rate limits in the admin panel | No | OpenAI-style | Training on by default, opt-out available |
| NVIDIA build.nvidia.com | Large open models (Kimi, GLM, DeepSeek, Nemotron and more) | Rate-limited per model; NVIDIA doesn’t publish the limits | No | Yes | Session content not stored (security logging only) |
| Hugging Face | 200+ models via inference providers | $0.10/month in credits | No | Yes | Depends on provider |
| Cohere | Command models on a trial key | 20 RPM chat, 1,000 API calls/month | Not stated | Yes (compatibility API) | Not stated |
| SambaNova | DeepSeek-V3.1, Llama-3.3-70B, gpt-oss-120b | 20 RPM, 20 requests/day, 200K tokens/day | No | Yes | Not stated |
| Cerebras | All public models (trial) | $5 credit, expires after 30 days; 5 RPM | Yes | Yes | Not stated |
| Together AI | None | $5 minimum purchase | Yes | Yes | — |
| GitHub Models | Retired on July 30, 2026. No longer available to anyone. | ||||
| OpenAI, Anthropic | No free API tier. Both run on prepaid credits. | ||||
RPM = requests per minute, RPD = requests per day, TPM = tokens per minute. Free model lists change often, especially on OpenRouter and Groq; the table reflects September 29, 2026.
GitHub Models is gone. GitHub’s docs say it “has been fully retired” as of July 30, 2026: the playground, model catalog and inference API no longer work. Many 2025 tutorials and “awesome” lists still recommend it. Skip them.
How far does a free LLM API actually go?
Free-tier marketing talks about “free models”. What matters is how many tokens you get per month. Using only published limits:
| Provider | Binding limit | Realistic monthly volume |
|---|---|---|
| Groq (one model, e.g. gpt-oss-120b) | 200K tokens/day | ≈ 6M tokens; ~100 short chat turns a day at 2K tokens each |
| Cloudflare Workers AI (gpt-oss-120b) | 10,000 Neurons/day | ≈ 244K tokens/day at a 3:1 input/output mix ≈ 7.3M tokens |
OpenRouter :free | 50 requests/day | ≈ 1,500 requests; ≈ 30,000 after a one-time $10 top-up |
| SambaNova free | 20 requests/day | ≈ 600 requests |
| Cohere trial | 1,000 calls/month | ≈ 33 calls a day |
How we calculated the two token rows. On Groq, 200,000 tokens a day × 30 days = 6 million tokens per model. The limits are per model, so spreading work across gpt-oss-120b, gpt-oss-20b and qwen3.8-27b triples that budget. On Cloudflare, gpt-oss-120b costs 31,818 Neurons per million input tokens and 68,182 per million output tokens. With three input tokens per output token, each input token “costs” 0.0545 Neurons including its share of output, so 10,000 Neurons buy about 183K input plus 61K output tokens a day.
One trap for agents: Groq’s 8K tokens-per-minute cap means a single 8,000-token prompt uses the whole minute. A coding agent that resends a large context every turn gets about one turn per minute and 25 turns a day. That’s fine for a demo and useless for real work.
Which free API should you use for your project?
For a coding agent (Cline, Continue, Aider, OpenCode)
Use NVIDIA build.nvidia.com for large open coding models. It’s the only free option with frontier-size models such as GLM, Kimi and DeepSeek, and we have copy-paste configs for Cline, Continue, Aider and OpenCode. Add OpenRouter’s free coding models as a second provider. Agent loops burn through free limits quickly, so plan a paid fallback: our NIM alternatives and inference cost comparison show what that costs.
When an agent outgrows free quotas, the cheapest paid step is usually one of two services: Ollama’s hosted cloud plans or pay-as-you-go OpenRouter credits. We price both on four real workloads in Ollama Cloud vs OpenRouter.
For prototyping an app or MVP
Gemini has the widest free model range, including 2.5 Pro, multimodal models and embeddings. Check your per-project limits in AI Studio, since Google no longer publishes them. Use Groq when response speed matters, and Mistral if you want an EU provider with $10 of monthly credit.
For batch jobs (classification, summaries, tagging)
Cloudflare Workers AI gives a predictable daily budget that resets at midnight UTC. Groq‘s 200K tokens per model per day also works well for background jobs. Avoid SambaNova (20 requests a day) and Cohere trial keys (1,000 calls a month) for anything that repeats.
For EU data protection
If your users are in the EU, look at the data terms before the limits. Cloudflare says it doesn’t use customer content to train models. Groq doesn’t retain inference data by default. Gemini applies its paid-service data terms to users in the EEA, Switzerland and the UK even on the free tier. Outside those regions, free-tier prompts can be used to improve Google’s products and may be read by human reviewers. Mistral is an EU company, but you have to switch off training in its Free mode. Whatever you pick, don’t send customers’ personal data to a free tier. For sensitive data, a local model with Ollama, LM Studio or llama.cpp is the safer route.
How do you switch between free APIs with one code base?
Almost every provider in the table exposes an OpenAI-compatible endpoint, so one client works for all of them. You change only the base URL, the key and the model name:
import os
from openai import OpenAI
PROVIDERS = {
"gemini": ("https://generativelanguage.googleapis.com/v1beta/openai/", "GEMINI_API_KEY", "gemini-2.5-flash"),
"groq": ("https://api.groq.com/openai/v1", "GROQ_API_KEY", "openai/gpt-oss-120b"),
"openrouter": ("https://openrouter.ai/api/v1", "OPENROUTER_API_KEY", "qwen/qwen3.8-27b:free"),
}
def ask(provider: str, prompt: str) -> str:
base_url, key_env, model = PROVIDERS[provider]
client = OpenAI(base_url=base_url, api_key=os.environ[key_env])
reply = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": prompt}],
)
return reply.choices[0].message.content
# Fall back to the next provider when one returns 429 (rate limit)
for name in ("groq", "openrouter", "gemini"):
try:
print(ask(name, "Summarize RAG in two sentences."))
break
except Exception as err:
print(f"{name} failed: {err}")A simple fallback chain like this is the most practical way to live on free tiers. When one provider returns HTTP 429, the next one takes over. Model IDs change, so check each provider’s current list before you ship.
Which “free” offers are not what they seem?
- Cerebras: the free tier is now a trial. You get $5 in credits only after you add a verified payment method, and they expire after 30 days.
- Hugging Face: free users get $0.10 a month in inference credits. That’s enough for a handful of tests, not a workload.
- SambaNova: the free tier allows 20 requests a day per model.
- Together AI: no free tier; the platform requires a $5 minimum purchase.
- OpenAI and Claude: no permanent free API. OpenAI’s Tier 1 starts after $5 paid, and Anthropic asks you to add credits before your first call. If you want Claude without paying per token, see our guide to using Claude Code for free.
Two rules apply to every free tier. First, they’re meant for prototyping and evaluation: NVIDIA, Cohere and Mistral say so explicitly, and none of them promises uptime. Second, check each provider’s age and usage terms before you sign up. Google, for example, requires Gemini API users to be 18 or older.
Frequently asked questions
Which LLM API is completely free in 2026?
None is free without limits. The most generous options without a credit card are Google Gemini, Groq (1,000 requests and 200K tokens per day per model), OpenRouter’s :free models (50 requests a day, or 1,000 after a $10 top-up), Cloudflare Workers AI (10,000 Neurons a day) and NVIDIA build.nvidia.com.
Do I need a credit card for a free LLM API key?
Not for Gemini, Groq, OpenRouter, Mistral, Cloudflare, Hugging Face, SambaNova’s free tier or NVIDIA. Cerebras requires a verified payment method for its $5 trial, and Together AI requires a $5 purchase.
Is GitHub Models still free?
No. GitHub Models was fully retired on July 30, 2026. The playground, catalog and inference API are no longer available to anyone.
Does Google train on Gemini API free-tier data?
Outside the EEA, Switzerland and the UK, free-tier content can be used to improve Google products and may be read by human reviewers. For users in the EEA, Switzerland and the UK, Google applies its paid-service data terms even on the free tier.
What is the best free API for a coding agent?
For prototyping, NVIDIA build.nvidia.com and OpenRouter’s free coding models. Agent loops use up free limits quickly, so plan a paid fallback for daily work.
Is there a free OpenAI or Claude API?
Not a permanent one. Both work on prepaid credits: OpenAI’s Tier 1 starts after $5 paid, and Anthropic requires you to add credits before your first API call.
Are free LLM APIs OpenAI-compatible?
Most are. Gemini, Groq, OpenRouter, Cloudflare, Hugging Face, NVIDIA, Cerebras and Cohere’s compatibility API accept OpenAI-style requests, so you usually change only the base URL, the key and the model name.
Polish readers: darmowe API AI — porównanie po polsku.
Sources & methodology
- Google — Gemini API pricing (free tier models).
- Google — Gemini API rate limits.
- Google — Gemini API additional terms (data use, EEA/UK/CH, age).
- Groq — rate limits (Free plan table).
- Groq — your data.
- OpenRouter — API rate limits for free models.
- OpenRouter — pricing and plans.
- Mistral AI — pricing (Free plan credits).
- Mistral AI — do you use my data to train your models?
- Cerebras — rate limits and Free Trial.
- GitHub changelog — GitHub Models is now retired (July 30, 2026).
- Cloudflare — Workers AI pricing (Neurons).
- Cloudflare — Workers AI data usage.
- Hugging Face — Inference Providers pricing.
- NVIDIA — NIM API product documentation (free prototyping access).
- Cohere — rate limits and trial keys.
- SambaNova — rate limits (Free tier).
- OpenAI — rate limits and usage tiers.
- Anthropic — Claude API rate limits.
Monthly volumes are DecodeTheFuture’s arithmetic on the published limits, not measured throughput. Providers that don’t publish a number are marked as such. Checked September 29, 2026.

