Skip to content
All use cases

Free routingFree and cheap · Free

Free models with automatic route fallback

Call anyrouter/free. It picks a live free route for each request and tells you which model answered — no provider key and no credits needed.

Set it up

curl · which model answered
$ curl -si https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anyrouter/free",
    "messages": [{ "role": "user", "content": "Say hello in one sentence." }]
  }' | grep -i -e x-anyrouter-model -e x-anyrouter-fallback -e '"model"'
  1. 1.Call anyrouter/free with your AnyRouter key, as in the curl below. It selects a live free route; no provider key is needed and no credits are used.
  2. 2.Check x-anyrouter-model on a successful call for the model that answered. x-anyrouter-fallback is present only when a fallback actually happened.
Why use this

A pinned free model id can point at routes that are rate limited or down, and a BYOK-only id cannot route without your own provider key. You want one free model id that picks a working route without a retry loop in your code.

How the request flows
Your appOpenAI API
AnyRouter
Live free routeanyrouter/free
Endpoints and key
OpenAI-compatible
https://anyrouter.dev/api/v1
Anthropic-compatible
https://anyrouter.dev/api
Key
ANYROUTER_API_KEY (sk-ar-…)
Watch the walkthrough
Good to know
  • The model that answers can differ between calls. Read x-anyrouter-model to see which one served the request.
Limits
  • anyrouter/free picks from free routes that are answering. It does not raise any provider's limit.
  • Free requests have no daily cap. Each account gets a per-minute limit by plan: 150 a minute on Go (60 from a donated key), 400 on Pro and up.
  • When every free route is busy, the request fails and you retry later.
  • x-anyrouter-fallback is absent when no fallback was needed, so it is not a success check.