# 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.

One free id, a live route

**Slug**: `openrouter-free-fallback`  
**URL**: https://anyrouter.dev/use-cases/openrouter-free-fallback  
**Markdown**: https://anyrouter.dev/use-cases/openrouter-free-fallback.md  
**Short link**: https://anyrouter.dev/u/openrouter-free-fallback  

## 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.

## Set it up

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. Check x-anyrouter-model on a successful call for the model that answered. x-anyrouter-fallback is present only when a fallback actually happened.

## Code

### curl · which model answered

```bash
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"'
```

## 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.

## Notes

- The model that answers can differ between calls. Read x-anyrouter-model to see which one served the request.

## Related

- [virtual-presets](https://anyrouter.dev/use-cases/virtual-presets)
- [free-llm-api](https://anyrouter.dev/use-cases/free-llm-api)
