(Appendix)
Compiled on: 2026-10-22 — printable version
Rule of thumb: grant → student credits → local model → free tier → trials
| Need | First choice |
|---|---|
| A few hundred calls, prototyping, exercises | Free tiers: Gemini, Mistral, Groq, OpenRouter, Cohere |
| Thousands or millions of calls, for a paper | Research grants or cloud credits |
| Sensitive or personal data | Local open model, or a contracted API with suitable data terms |
| A course, repeated every semester | Department gateway + local model + free tiers as fallback |
| Reproducible experiments | Pinned open weights, run locally |
No application: just sign up, get a key, and stay within the quota
| Provider | What you get for free | Good for |
|---|---|---|
| Google Gemini API | Zero-price quota on several current models (e.g. Flash, Flash-Lite), model-specific limits | Best overall free frontier-ish API |
| Mistral (Free plan) | $10/month of API credits | Direct access to Mistral models |
| Groq | e.g. gpt-oss-120b: 30 req/min, 1,000 req/day, 200k tokens/day |
Fast open models |
OpenRouter :free models |
20 req/min, 50 req/day | One key, many open models |
| Cohere (trial key) | 1,000 calls/month (despite the name: no expiry, non-commercial use only), also via an OpenAI-compatible endpoint | Evaluation, embeddings, rerankers |
base_url, key, and model name change# provider -> (OpenAI-compatible base URL, env var holding the API key)
PROVIDERS = {
"gemini": ("https://generativelanguage.googleapis.com/v1beta/openai/", "GEMINI_API_KEY"),
"groq": ("https://api.groq.com/openai/v1", "GROQ_API_KEY"),
"cohere": ("https://api.cohere.ai/compatibility/v1", "COHERE_API_KEY"),
"openrouter": ("https://openrouter.ai/api/v1", "OPENROUTER_API_KEY"),
"mistral": ("https://api.mistral.ai/v1", "MISTRAL_API_KEY"),
"ollama": ("http://localhost:11434/v1", None), # local, no key needed
"vllm": ("http://localhost:8000/v1", None), # local, no key needed
}
poetry run python -m snippets -l free-access -e 1 groq # list the models available now
poetry run python -m snippets -l free-access -e 1 groq openai/gpt-oss-20b "Hello!" # one chat request
PROVIDERS: each provider’s endpoint, and the environment variable holding its key (e.g. GROQ_API_KEY, asked interactively if missing)
ollama, vllm: open models served locally (on your machine, see below), hence no keyPROVIDER (required), then optionally MODEL and PROMPT (without them, the script just lists the models)OPENAI_BASE_URL, OPENAI_API_KEY, and OPENAI_MODEL (the default, nvidia/nemotron-3-super-120b-a12b:free, exists only on OpenRouter: pick an ID from the listing above), e.g.
OPENAI_BASE_URL=http://localhost:11434/v1 OPENAI_API_KEY=unused OPENAI_MODEL=gpt-oss:20bOPENAI_BASE_URL=https://api.groq.com/openai/v1 OPENAI_API_KEY=... OPENAI_MODEL=openai/gpt-oss-20b| Offer | Reality |
|---|---|
| Cerebras | Trial: $5 expiring after 30 days, then pay |
| Hugging Face Inference Providers | $0.10/month: smoke tests only |
| Hugging Face ZeroGPU | 5 GPU-minutes/day: fine for demos, not for experiments |
| Google Colab | Free GPUs, but type and limits not guaranteed |
| Replicate | No standing free tier: pay-as-you-go |
| GitHub Models | Free, rate-limited access with any GitHub account… until it was retired: closed to new users on 16 Jun 2026, shut down on 30 Jul 2026 |
| Program | What | Who | Notes |
|---|---|---|---|
| Azure for Students | $100 / 12 months, no credit card | Full-time university students | Renewable yearly; includes Azure OpenAI |
| AWS Cloud Credit for Research | Up to $5,000 (students) | Graduate / PhD students at accredited institutions | Application, 90–120 days review; credits last 1 year |
| Anthropic, Claude for scientists | Free Claude seat for 1 year | Lab members, added by a verified PI | A subscription, not API credits |
| Program | Amount | Who | How |
|---|---|---|---|
| OpenAI Researcher Access | Up to $1,000, 12 months | Academic / research / nonprofit affiliation | Research question + intended use; reviewed quarterly (FAQ) |
| Anthropic AI for Science | Up to $50,000 / project | Any researcher may apply | Project proposal; selective |
| Cohere Labs Catalyst | Varies | Non-commercial, open-science / public-benefit projects | Rolling application |
| Google Cloud for Researchers | $5,000 | Academic researchers | Application |
| AWS Cloud Credit for Research | No fixed cap (faculty) | Faculty and research staff | Application, 90–120 days |
| Program | Amount |
|---|---|
| Google for Startups, AI | Up to $350,000 over 2 years (Google models only) |
| Microsoft for Startups | Up to $150,000, scaling with progress |
| AWS Activate | Up to $200,000 |
gpt-oss-20b (Apache 2.0): about 16 GB of memory, a good laptop / workstation baselinegpt-oss-120b: about 80 GB, one large GPUpoetry run python -m snippets -l free-access -e 1 ollama works out of the boxQ4_K_M ≈ 4.9 bits per weight, cf. the table in LLM-as-a-Service), usually with small quality loss, but re-evaluate on your task
OPENAI_BASE_URL to the gateway: same code as aboveThese look free, but they break Terms of Service, leak data, or ruin reproducibility:
e.g. Cerebras removed
gemma-4-31bfrom public endpoints on 3 Sep 2026
Compiled on: 2026-10-22 — printable version