1873 words
9 minutes

Free LLM APIs Tested: How to Choose Between Groq, SambaNova, and Gemini

Free LLM APIs Tested: How to Choose Between Groq, SambaNova, and Gemini

Last updated: 2026-11-16 | Still valid?: The Gemini free tier is valid (source: Gemini pricing page); SambaNova’s documentation still mentions a free tier, but in my testing, calling without a linked card returned 402 (source: SambaNova rate limits, pricing page); Groq officially still lists free-tier limits, but this article did not test them (source: Groq Rate Limits)

When building small tools, writing scripts, or setting up a personal chatbot, you often need an LLM API that can “run first without spending money.” There are many free API lists online, but most just copy documentation. In this article, I actually ran tests with keys from my own accounts, and the results were somewhat different from what the documentation says.

1. The Bottom Line

Platform Usable This Time? One-line take
Gemini (Google AI Studio) Yes Flash-Lite is fast and stable; the new 3.8 Flash often returns 503 or hangs during peak hours
SambaNova Cloud No Can list models, but any call returns 402 and asks you to link a payment method first
Groq Not tested I don’t have a Groq API key, so I only summarized the official free-tier limits

If you need a free API you can call directly right now, start with Gemini’s gemini-3.5-flash-lite or gemini-3.1-flash-lite.

2. How I Tested

  • Test time: 2026-11-16 02:29–02:41 (Shanghai Time)
  • Network environment: An overseas cloud sandbox, not a domestic broadband connection. Gemini was accessed through a proxy I set up myself on Cloudflare Workers, adding an extra hop. These numbers do not represent direct-connection speeds from mainland China.
  • Prompt (same for all three): “Please explain in about 300 words to a college student who is just starting out what RAG (Retrieval-Augmented Generation) is, and give one specific use case.”
  • Parameters: Streaming output, max output 1024 tokens, each model run 3 times and the median taken.
  • Metrics: Time to first token = time from sending the request to receiving the first visible character; output speed = visible output tokens ÷ (total time − time to first token).

Raw data (latency, token counts, and original error messages for each request) has been retained; keys and account information have been redacted.

3. Gemini: The Free Tier Works, but You Have to Choose the Right Model

First I called the model list endpoint GET /v1beta/models once; it returned 64 models, 49 of which support generateContent (text generation), including Flash / Flash-Lite across the 2.5 and 3.x generations, Gemma 4, and specialized models for TTS, images, music, and more.

Test results:

Model Success/Attempts Time to First Token (Median) Total Time Output Speed Notes
gemini-3.1-flash-lite 3/3 0.71 s 1.88 s ~247 tokens/s No reasoning process; answer about 300 tokens
gemini-3.5-flash-lite 3/3 0.97 s 2.30 s ~248 tokens/s Same as above
gemini-3.6-flash (max 4096) 3/3 10.70 s 12.50 s ~196 tokens/s Reasons for about 900 tokens before outputting any text
gemini-3.8-flash 1/6 46.9 s (only 1 success) 49.4 s — 2× 503, 3× timeout

Several pitfalls I hit in testing:

1. Reasoning tokens eat into the output limit. I first set an output limit of 1024 for gemini-3.6-flash, and the three responses cut off after only 85–187 characters. Looking at the usage returned, I found that the reasoning process used 904–969 tokens, leaving only a few dozen for the actual response. After raising the limit to 4096, responses returned to about 450 characters.

2. New models are unstable during peak hours. Of six requests to gemini-3.8-flash, two returned directly:

Original 503 error
{
"error": {
"code": 503,
"message": "This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.",
"status": "UNAVAILABLE"
}
}

Another three did not receive a single character within 50–100 seconds and were cut off by my script’s timeout. The only successful one waited 46.9 seconds before the first character appeared. If you’re building an online service, it’s best to have a Flash-Lite as a fallback.

3. The cost of the free tier is your data. On the official pricing page, the “Used to improve our products” column says Yes for the free tier and No for the paid tier. Don’t put sensitive data into the free tier.

4. The official docs don’t give specific free quota numbers. The rate limit documentation only says limits apply across three dimensions—RPM, TPM, and RPD—and that limits are calculated per project, not per key; RPD resets daily at midnight Pacific Time, and the specific numbers must be checked by logging in to the Rate limit page in AI Studio. So creating multiple keys does not give you more quota.

5. Which models are free. According to the pricing page, standard calls to 3.8 Flash, 3.6 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite, 2.5 Flash / Flash-Lite / Pro, 4 Hydrogen, and Gemma 4 are all listed as "Free of charge" on the free tier; 4 Carbon, 4 Argon, and 3.1 Pro Preview are not available on the free tier. In addition, the official docs state that gemini-2.5-flash will automatically switch to gemini-3.5-flash-lite starting 2026-12-01, and gemini-2.5-pro will switch to gemini-3.8-flash, so if you're writing new code now, don't use 2.5 anymore.

The model list endpoint works and returns 5 models: GLM-5.3, Meta-Llama-3.3-70B-Instruct, MiniMax-M3.1-Flash, gemma-4-31B-it, gpt-oss-120b.

But I picked gpt-oss-120b, Meta-Llama-3.3-70B-Instruct, and gemma-4-31B-it, and called each 3 times. Of the 9 calls, 8 returned 402, and 1 returned 502 after waiting about 60 seconds Upstream service error. The original 402 text:

Original 402 error
{"error":{"balance_units":0,"billing_portal_url":"https://cloud.sambanova.ai/plans/billing","code":"PAYMENT_METHOD_REQUIRED","message":"A payment method is required. Add one at https://cloud.sambanova.ai/plans/billing to continue."}}

I registered this account in mid-October and never linked a card. At that time, calls returned 429 rate limiting; now it has directly become 402 requiring a payment method.

The problem is that two official pages contradict each other:

  • The rate limits doc says "Free Tier: applies when no payment method is linked," with 20 RPM, 20 RPD, and 200K tokens per day per model for the free tier (DeepSeek-V3.1, Llama-3.3-70B, gpt-oss-120b, and preview models DeepSeek-V3.2 and gemma-4-31B-it).
  • The Free tier on the plans page says "Add a payment method and purchase credits to run your first requests," meaning you must first link a card and buy credits to run anything.

Based on my testing, the plans page reflects the current actual situation. Also, the free model table in the docs doesn't match the list actually returned by /models (the docs have DeepSeek, but the API doesn't; the API has GLM-5.3 and MiniMax, but the docs' free table doesn't).

V. Groq: No hands-on testing this time

I have a Groq console account, but I didn't create an API Key, so I couldn't test it this time. Below I only summarize the official docs.

The free-tier limits listed on the Groq rate limits page (calculated per organization, not per user):

Model RPM RPD TPM TPD
openai/gpt-oss-120b 30 1K 8K 200K
openai/gpt-oss-20b 30 1K 8K 200K
qwen/qwen3.8-27b 30 1K 8K 200K
whisper-large-v3 / turbo 20 2K — — (audio 7.2K seconds per hour)

A few things to note:

  • llama-3.3-70b-versatile and llama-3.1-8b-instant, which people used to commonly get for free from Groq, are now marked as Enterprise and "Contact Sales" on the model page; they are no longer in the free limit table.
  • The speeds stated on the model page are about 500 tokens/sec for gpt-oss-120b and about 1000 tokens/sec for gpt-oss-20b. These are official claims, not my measurements.
  • Exceeding the limit returns 429, and the response headers include retry-after and the remaining quota. The numbers on the limits page are only a summary; your account's exact limits are based on the Limits page in the console.

6. How to Choose

  • If you just want to get a project running for free: Gemini's 3.1 / 3.5 Flash-Lite. The first token arrives in under 1 second, the answers are complete, and it made no errors in my test.
  • If you need a stronger reasoning model: Gemini 3.6 Flash works, but you have to wait 6–11 seconds for it to think, so set the output limit to 4096 or above. For 3.8 Flash, wait until the peak has passed, or add retries and fallbacks.
  • If you want open-source models like gpt-oss and care about speed: It's worth creating a key and trying Groq's free tier. 1,000 RPD is enough for personal use, but the 8K TPM is very tight, so long conversations easily hit the limit.
  • SambaNova: If you don't plan to link a card, don't bother for now—currently, calls fail without a linked card.

7. FAQ

Can free APIs be used commercially? The terms of all three providers are changing. I haven't checked the commercial-use clauses one by one, so please read each provider's terms of service yourself before going live. Data on Gemini's free tier is used to improve its products, so think that through first.

Why is the speed I measured different from yours? That's normal. I tested in an overseas sandbox, and Gemini also had an extra forwarding layer. Domestic networks, time of day, and model load will all make the numbers vary a lot. I ran each model only 3 times, so these results are for reference only.

Where is it safe to put the key? Don't put it in front-end code, and don't commit it to Git. Put it in environment variables or on the server side, and read it from the environment variables when making calls:

gemini-test.sh
curl -s "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash-lite:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Introduce yourself in one sentence"}]}]}'

Quotas and policies can change at any time. The conclusions in this article reflect only the situation on 2026-11-16.

Share Article

If this article helped you, please share it with others!

Free LLM APIs Tested: How to Choose Between Groq, SambaNova, and Gemini
https://codqor.com/posts/free-llm-api-groq-sambanova-gemini/
Author
Liam
Published at
Related PostsSmart
1
Google AI Ultra 20X in Turkey: the ₺2,949 tier walkthrough, price comparison, and risks
Limited-time offerGoogle AI Ultra 20X is officially priced at ₺8,999.99/month in Turkey—about RMB 1,198, roughly 10% cheaper than the US price of $199.99; when purchasing in-app with a Turkish Apple ID, a ₺2,949 tier may also appear in the subscription list. This article verifies the official price and benefits, details the steps, and explains restrictions and risks such as payment profile country, Family Sharing, and regional support.
2
Running MiniMax H3 on Several GPUs: Which Cards Did I Actually Test?
ReviewThis post walks through my generation experiments with MiniMax H3 on the A10, RTX PRO 6000, and B200, noting that the T4 was used only for a smoke test. It separates measured results from configuration data and records latency, VRAM use, and output issues across different pipelines, helping readers decide on GPU selection and workflow trade-offs without mistaking pipeline differences for GPU performance gaps.
3
My 256MB Router Can’t Run OpenClash, So I Built TinyLane and Open-Sourced It
TechThe Xiaomi AX3000T has only 256 MB of RAM, making OpenClash too much of a strain, so I packaged the sing-box core, a Go daemon, and a mobile panel into a single binary called TinyLane, with my daily readings at about 35 MB for the core and 20–28 MB for the panel. This article explains why I wrote it, what it can do, the memory pitfalls I hit, and how to install it; the project is open-sourced under GPL-3.0.
4
New US Rules Block Overseas Compute Rentals: What's Next for Chinese AI Companies | Tech Daily 11.20
Tech DailyOn November 16, the US Commerce Department issued new rules requiring licenses for overseas data centers to provide compute exceeding 12 million TPP to companies headquartered in restricted countries such as China; the rules took effect on November 19. This episode explains how high the threshold is, who gets blocked, and how domestic developers should prepare, plus a recap of Anthropic's IPO pricing — and I got one call wrong in each of episodes 1 and 4.
5
One API for Multiple TTS Providers: OpenAI Standard Parameter Mapping (MOSS Example)
TechWhen creating voiceovers for short videos, I used Edge TTS, Gemini, and MOSS together, each with different parameters. I later added /v1/audio/speech to my AI relay: clients call it using the OpenAI standard format while the gateway maps parameters per provider (for MOSS, just one line: voice→voice_id), and this article covers the parameter comparison table, mapping implementation, usage examples, and pitfalls.
Random PostsRandom

Comments

Leave a comment

Share your thoughts

Shown after review
Leave the name empty to post as “Anonymous”0 / 3000

Comments

Newest first · 5 at a time

Loading comments…

Profile Image of the Author
Liam
Notes on tech, life, and thoughts.
Categories
Tags
Latest Moments
Site Statistics
Posts
21
Categories
4
Tags
72
Total Words
87,292
Running Days
0 days
Last Activity
0 days ago
Table of Contents