FreeTierScout

Keep a free API experiment free.

Official sources and documented limits · · No hands-on testing implied

Before sending the first request, establish what will stop your experiment from spending more than you intend.

Choose the exact model first

A platform can offer both free and paid models. Read the price and quota for the model ID you will actually call. A free web interface does not prove the API is free.

Find the hard stop

Determine whether the free plan rejects requests after the free usage, or whether billing continues. A budget alert is not necessarily a spending cap. Check the provider’s documentation for the exact behaviour.

Bound retries and concurrency

Put a maximum number of attempts on retries, use backoff for rate-limit responses, and cap concurrent requests. A loop that retries indefinitely can consume your free usage without producing useful output.

Protect the key

Keep API keys on your server or in a local environment variable. Do not put secret keys in public JavaScript, source control, screenshots or analytics. Rotate a key if it leaks.

Run a small test

Send one request, check the usage dashboard, and confirm the observed usage matches the documented unit. Then set an explicit request or token budget in your application.

A bounded retry strategy for rate limits

Do not retry 429 responses in a tight loop. This dependency-free JavaScript helper caps attempts, respects a numeric Retry-After header, and requires the caller to supply the exact endpoint and authorization required by their provider:

export async function fetchWithBoundedRetries(url, init = {}, maxAttempts = 3) {
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
    const response = await fetch(url, init);
    if (response.status !== 429 || attempt === maxAttempts) return response;
    const retryAfter = Number(response.headers.get('retry-after'));
    const delayMs = Number.isFinite(retryAfter) && retryAfter > 0
      ? Math.min(retryAfter * 1000, 15000)
      : Math.min(250 * 2 ** (attempt - 1), 4000);
    await new Promise(resolve => setTimeout(resolve, delayMs));
  }
}

Use this only where retrying an HTTP request is safe. For non-idempotent operations, make sure the provider supports an idempotency key first. A successful retry still consumes the provider's quota.

Check before launch

This is an operational checklist. Provider documentation controls actual billing and limits.

Explore LLM APIs

Good finds. No digging.

Follow new listings and documented changes in your RSS reader.

Follow the updates