AI model gateway

Choose the right model.
Use FreeModel.online

最后更新:

Free models first. Automatic failover. No per-provider signup.

FreeModel is an AI model gateway that gives you a single API key for dozens of model providers, routes each task to the best available model, tries free models first, and falls back automatically when a provider fails or runs out of quota.

199 models callable today
6 modalities
2 API formats
$0 to start
One request entering FreeModel and fanning out to many model providers
One node highlighted among many

Free models are tried first

Among the models that fit the task, ones with remaining free quota go first.

How routing works →
A broken path with a second path continuing around it

A dead provider is not your outage

A rate limit or an exhausted quota moves the request to the next candidate.

Failover detail →
A single key with lines radiating to many nodes

One key, one address, one bill

Five providers no longer means five accounts and five billing pages.

Set it up →

Models

Browse all 199 →
auto/imagemodality route fm-v1-prosubscription tier Text & codelargest group Image & videofor generation and vision Embeddingsfor search and RAG

The live list is public and needs no key: GET /v1/models · which ones are free →

Pricing

Full price table →
Bring your own keys Free You pay your providers directly. FreeModel adds nothing.
Platform key Pay per call Buy points, spend them at the listed per-model price. Free quota costs nothing.

Quickstart

All setup guides →
# Anthropic-compatible clients: Claude Code, and others
export ANTHROPIC_BASE_URL="https://freemodel.online/api/gateway"
export ANTHROPIC_API_KEY="sk-your-key"

# OpenAI-compatible clients: Codex CLI, Cursor, Cline, SDKs
export OPENAI_BASE_URL="https://freemodel.online/v1"

Aiglade

What it is →

A desktop app that runs several AI agents at once on Windows, with no setup. It ships pointing at FreeModel, so you never register with a provider or paste a key.

Windows Desktop installer Windows 10 or later Download ↓ Android Mobile app Drives the same task queue over your local network Download ↓

Both are free. No account needed to install.

Questions

All questions →
Is FreeModel actually free?
Some models carry a free quota and routing prefers them. When no free model fits the task, the request goes to a paid one at the listed price.
Do I have to hand over my provider keys?
No. Use the platform key, or bring your own for the providers you already pay.
What happens when a provider goes down?
The request moves to the next candidate, and the routing log records which one served it.
Can I see the models without signing up?
Yes. /v1/models is public and needs no key.

Your first ten minutes

  1. Create a key: one key covers every provider the gateway routes.
  2. Send one request with the OpenAI-compatible base URL and a model name; confirm the response includes the model that served it.
  3. Read the bill: one line per request, with input and output tokens separated.
  4. Break something on purpose: request a model that is rate-limited, and check that the gateway falls back instead of returning an error.

Those four steps take about ten minutes and answer the only questions that matter before you commit: does it work, can you see the cost, and does it fail gracefully. Everything else — model count, dashboard polish — is secondary.

Why a gateway is worth one extra hop

The full sequence →

A direct connection to one provider is the shortest path, and it is also the most fragile one. Everything that can change on the provider's side — a quota running out, a key being rotated, a model being retired, a price moving — arrives in your application as a failure, and each of those failures has a different cause and a different fix. A gateway exists to absorb that class of event before your code sees it, and to record what happened, so the next occurrence is a lookup rather than an investigation.

FreeModel adds exactly one hop and takes those events out of your error path. Of the 199 listed models, 77% are chat models and the other 23% are image, video, speech synthesis, speech recognition, embeddings and rerank, so a text workload is comparing inside the larger half of the catalogue. Six of the entries are modality routes rather than single models, and each one carries a candidates count, so the fallback behind a name can be read before you call it. The router filters that pool to what the request actually needs, spends free quota wherever any remains, and moves on when a provider refuses.

What you give up is knowing which model answered. A route name is a statement of intent, not a model id, and 3% of the listed models are modality routes — the six entries that take this trade explicitly.[1] If you need to reproduce a result exactly, or to name a model for compliance reasons, send a specific id instead and let the gateway do nothing but forward it.

Four steps from nothing to a first request

  1. Step 1: Get a key. Open the console and create one. No provider account and no payment method is needed to start.
  2. Step 2: Point a client at the gateway. For an Anthropic-shaped client, set ANTHROPIC_BASE_URL to https://freemodel.online/api/gateway and ANTHROPIC_API_KEY to your key. For an OpenAI-shaped client, set OPENAI_BASE_URL to https://freemodel.online/v1.
  3. Step 3: Send a route name instead of a model id. The names come in two families. Six modality routes pick by the kind of output, such as auto/image or auto/tts. Three tier aliases pick by quality band: fm-v1-lite, fm-v1-standard and fm-v1-pro. fm-v1-lite is the free tier and needs no subscription; the other two need the matching monthly plan.
  4. Step 4: Read the routing log in the console. It names the provider that actually served the call and lists the candidates that were skipped, with a reason for each.

FreeModel FAQ

All questions →
Why not call the provider directly?
For a single provider you already trust, that is the simpler setup and FreeModel adds nothing to it. A gateway earns its hop when more than one model is in play: the capability filter, the free-quota preference, the failover path and the routing log all live inside that hop, and none of them is something you have to build or maintain.
Does the gateway change my code?
No. Clients keep speaking the OpenAI or Anthropic request shape. You change where the client points — ANTHROPIC_BASE_URL or OPENAI_BASE_URL — and which model name you send. Everything above that line stays as it was, and switching back is the same edit in reverse.
What does a route name actually guarantee?
It guarantees what the router optimises for, not which model answers. fm-v1-pro draws from the highest-scoring pool at the moment of the call, and may resolve to a different model next month. A modality route such as auto/image re-resolves per request the same way. When you need the identical model every time, send a specific id and the router gets out of the way.
What happens if every candidate fails?
The request returns an error rather than looping quietly, and the routing log lists each candidate that was tried together with the reason it was skipped. In practice the fallback list is long enough that reaching its end usually means the request itself was malformed, not that the market was down.

Sources

Every third-party figure quoted on this site was read from the vendor documentation linked below, on the date stated. None of these links are affiliate links and none of these vendors paid to be listed. If a number here disagrees with the page it came from, the page is right — tell us and it gets corrected.

Where the percentages come from

Every share quoted on this site is counted from the live model list, not estimated. Divide the two counts in the last column, round to the nearest whole percent, and you get the number in the first.

ShareOf whatCount
77%are chat models153 of 199 listed entries
9%generate images18 of 199 listed entries
23%are not chat models46 of 199 listed entries
3%are modality routes6 of 199 listed entries
17%carry a context length34 of 199 listed entries

[1] Counted on 29 September 2026 from GET https://freemodel.online/v1/models, which needs no key and no account. Every row uses all 199 listed entries as the denominator, because the only thing the endpoint states for every entry is its modality. It no longer publishes per-model capability flags such as tool calling or reasoning, so this site quotes no shares for them. Fetch the list and recount whenever you want to check the arithmetic.