AiCredits
Free Tier Reality

Best Free LLM API Tiers Compared: Rate Limits and Real Usage

Compare the best free LLM API tiers by real constraints — rate limits, quota windows, data policy — plus runnable code to measure your own ceiling first.

Published 2026-10-04 Updated 2026-10-04 9 min

Why “Best Free LLM API” Lists Go Stale in Weeks

Almost every comparison of free LLM API tiers is written from a provider's marketing page on the day it was published. Free capacity gets trimmed, free model variants get retired, new flagships launch behind paid access only, and the table you bookmarked quietly becomes fiction. If you have ever built a prototype that worked on Tuesday and hit rate-limit errors on Wednesday, you already know this.

The useful question is not “which tier is free?” but “which limit breaks my workload first?” Free tiers are shaped by several different constraints, and each one fails in a different way. Treat them as separate budgets you have to design around, not as a single “free” checkbox.

  • Requests per minute — the first wall for fan-out workloads: parallel classification, multi-document summarisation, or an agent that calls a tool in a loop.

  • Tokens per minute — the first wall for long-context work. A single large prompt can consume a big slice of your per-minute token budget, so throughput collapses even though request counts look tiny.

  • Requests or tokens per day — the first wall for batch jobs. Overnight backfills and embedding refreshes tend to burn the daily allowance before the interesting work starts.

  • Model access — free tiers rarely include the strongest model, so benchmarks you see for a provider often do not apply to the model you can actually call for free.

  • Data policy — some free tiers reserve rights to use submitted prompts for product improvement. Read the terms before sending client code, personal data, or anything under NDA.

  • Promotional credit expiry — credits that expire in days are a trial, not a tier. Plan your migration before the clock runs out, not after.

Free LLM API Tiers Compared, Without the Stale Numbers

Every provider below offers genuinely useful free access, and several are excellent for prototyping. Specific limits are deliberately omitted because they change without notice — check each provider's current documentation and, more importantly, measure them yourself with the script further down.

ProviderFree access styleFirst limit you will probably hitGenuinely good for
Google AI StudioFree quota on selected models, no card requiredPer-minute request and token caps, plus a daily ceilingMultimodal experiments and prompt iteration
OpenRouterFree model variants routed across multiple hostsShared free capacity; availability depends on the routing hostTrying many models behind one API key
GroqFree tier on fast open-weight modelsPer-minute requests and tokensLatency-sensitive demos and streaming UIs
MistralFree experimental tier on selected modelsPer-minute and per-day capsSmall European-hosted prototypes
GitHub ModelsFree API access tied to your GitHub accountLow per-request concurrencyQuick tests inside CI and notebooks
Cloudflare Workers AIFree daily allowance on the Workers platformDaily allocation on token-heavy promptsEdge-hosted inference next to your app
AiCreditsPrepaid DeepSeek credits, paid by card or PayPal — no Chinese phone or bank neededNo artificial tier ceiling: you pay for the tokens you useShipping to production after the free tiers run out

Measure Your Own Ceiling, Don't Inherit Someone Else's

A rate limit is only meaningful relative to your call pattern, so the fastest way to understand a provider is to push against it deliberately and watch what happens. The script below works against any OpenAI-compatible endpoint — change base_url and model to probe a different provider — and it reads the retry-after header when a provider returns one.

import os
import time
from concurrent.futures import ThreadPoolExecutor, as_completed

from openai import OpenAI, RateLimitError

client = OpenAI(
    api_key=os.environ["AICREDITS_API_KEY"],
    base_url="https://api.aicreditsapi.com/v1",
)

PROMPT = "Reply with exactly one word: ok"


def one_call(i):
    started = time.perf_counter()
    try:
        resp = client.chat.completions.create(
            model="deepseek-v4-flash",
            messages=[{"role": "user", "content": PROMPT}],
            max_tokens=4,
        )
        return "ok", time.perf_counter() - started, resp.usage.completion_tokens
    except RateLimitError as exc:
        header = exc.response.headers.get("retry-after", "unknown")
        return f"limited (retry-after={header})", time.perf_counter() - started, 0


def probe(concurrency):
    with ThreadPoolExecutor(max_workers=concurrency) as pool:
        futures = [pool.submit(one_call, i) for i in range(concurrency)]
        results = [f.result() for f in as_completed(futures)]
    ok = sum(1 for status, _, _ in results if status == "ok")
    slowest = max(duration for _, duration, _ in results)
    print(f"concurrency={concurrency} ok={ok}/{concurrency} slowest={slowest:.2f}s")


for level in (1, 2, 4, 8):
    probe(level)
    time.sleep(1)

Read three signals in the output: when ok stops matching concurrency, when slowest suddenly grows, and whether the provider returns a retry-after value at all. A provider that tells you when to retry is far easier to build against than one that leaves you guessing with fixed sleeps. Run the same probe with a longer prompt to find your token-per-minute wall — it is usually much lower than your request-per-minute wall.

A free tier is a prototyping budget, not a production plan. If the probe fails at concurrency four, your launch traffic will fail too.

A Reusable Backoff Wrapper for Rate-Limited Days

Hard-coded sleeps are the most common self-inflicted outage. This wrapper honours retry-after when it exists, falls back to exponential backoff with jitter when it does not, and treats timeouts and dropped connections the same way.

import random
import time

from openai import APIConnectionError, APITimeoutError, OpenAI, RateLimitError

client = OpenAI(
    api_key=os.environ["AICREDITS_API_KEY"],
    base_url="https://api.aicreditsapi.com/v1",
)


def chat(prompt, model="deepseek-v4-flash", max_attempts=5):
    delay = 1.0
    for attempt in range(1, max_attempts + 1):
        try:
            return client.chat.completions.create(
                model=model,
                messages=[{"role": "user", "content": prompt}],
                max_tokens=256,
            )
        except RateLimitError as exc:
            if attempt == max_attempts:
                raise
            header = exc.response.headers.get("retry-after")
            time.sleep(float(header) if header else delay + random.uniform(0, 0.5))
            delay = min(delay * 2, 30)
        except (APITimeoutError, APIConnectionError):
            if attempt == max_attempts:
                raise
            time.sleep(delay + random.uniform(0, 0.5))
            delay = min(delay * 2, 30)


reply = chat("Explain an LLM rate limit in one sentence.")
print(reply.choices[0].message.content)

Real Usage: Where Free Tiers Break First

  • Agent loops with large contexts fail before chat apps do. Every tool call re-sends the whole transcript, so a per-minute token cap is consumed several times faster than the visible number of turns suggests.

  • Parallel fan-out fails before sequential calls. Ten concurrent requests look trivial until the per-minute request cap is shared across every user of the free tier, not just you.

  • Batch extraction fails on the daily quota, not the minute quota. Split backfills across days, or accept that the last chunk will fail at the worst possible moment.

  • Free model routing is not stable. OpenRouter-style free variants can become unavailable when upstream capacity shifts, so build a fallback rather than assuming a specific free model will always answer.

  • Quality control is your job, not the provider's. Free tiers encourage fast iteration, which means plausible-but-wrong generated code reaches your repo quickly. That is exactly why we ship code linting tools alongside credits — catching hallucinated APIs early is cheaper than debugging them in review.

Making the Move to Paid Credits Without Overpaying

When a prototype graduates, the goal is not to buy the biggest model — it is to route each task to the cheapest model that passes your tests. Use deepseek-v4-flash as the default for extraction, classification, drafting, summarisation, and anything else that runs at volume. Reach for deepseek-v4-pro only where the task genuinely needs stronger reasoning: multi-step planning, ambiguous refactors, or evaluation rubrics. Pro costs more than flash, so mixing them deliberately is the single biggest lever you control.

Two more levers matter. Off-peak requests cost less than peak ones, so schedule batch jobs for quiet hours. And prompt caching makes repeated input cheaper than fresh input, so structure prompts with the stable instructions first and the variable content last — and keep that stable prefix byte-identical between calls.

import os

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AICREDITS_API_KEY"],
    base_url="https://api.aicreditsapi.com/v1",
)

# These bytes never change, so this prefix can be served from cache on repeat calls.
REVIEW_RULES = (
    "You are a code review assistant.\n"
    "1. List defects first, then improvements.\n"
    "2. Quote the offending line before explaining it.\n"
    "3. Never rewrite the whole file unless asked.\n"
)


def review(snippet):
    return client.chat.completions.create(
        model="deepseek-v4-flash",
        messages=[
            {"role": "system", "content": REVIEW_RULES},
            {"role": "user", "content": "Review this function:\n\n" + snippet},
        ],
        max_tokens=512,
    )


result = review("def add(a, b):\n    return a - b\n")
print(result.choices[0].message.content)

AiCredits exists for the specific case where free tiers stop being enough but a Chinese phone number and bank account are not an option. We sell DeepSeek API credits that international developers can buy with a card or PayPal, served through an OpenAI-compatible endpoint, so migrating is a base_url change rather than a rewrite. Current rates, including off-peak and cache behaviour, live at aicreditsapi.com/pricing.

FAQ

Are free LLM API tiers good enough for production?

Usually not, though it depends on the workload. Free tiers are excellent for prototyping and internal tools, but per-minute throughput caps and shared capacity mean a traffic spike can take you down. Run the concurrency probe against your real prompt shape before deciding.

Which free tier has the best rate limits?

The honest answer is that it changes too often to trust a published table. Measure with the probe script, check whether the provider returns a retry-after header, and re-test after any provider announcement. The tier that fits your token profile is the best one for you.

Do I need to change my code to use AiCredits instead of another provider?

No. AiCredits speaks the OpenAI chat completions API, so you keep the OpenAI SDK and change base_url to https://api.aicreditsapi.com/v1 plus your model name. Your retry and logging layers keep working unchanged.

Can I get DeepSeek credits without a Chinese phone number or bank account?

Yes — that is the problem AiCredits was built to solve. You pay with an international card or PayPal, receive credits, and call the API from anywhere.

Should I always use the strongest model?

No. Default to deepseek-v4-flash for high-volume work and reserve deepseek-v4-pro for tasks that actually need stronger reasoning. Pro costs more than flash, so unmeasured upgrades quietly eat your budget.

What to Do This Week

  • Run the concurrency probe against your current provider with your real prompt length, and write down where it bends.

  • Add the backoff wrapper before you need it — it costs twenty lines and prevents most rate-limit incidents.

  • Restructure prompts so the stable instructions come first and the variable part comes last, keeping the prefix identical across calls.

  • Only then decide whether to stay free or move to prepaid credits, using flash as the default and pro as the exception.

Try Lint in 2 seconds

Wrote something? Paste it here for a free grammar check. No account needed.

More Tools →

Related Tools

💻Code Explainer

Was this article helpful?

| Share on X Reddit Copy link

服务器宕机了?别等用户告诉你

Wakeless 梦哨 帮你 30 秒监控网站 / API / SSL 证书,宕机秒级告警到邮箱、飞书、Slack。免费档 30 个监控,永久免费,无需信用卡。

免费开始监控 →
💬
反馈意见 / Feedback ×