Built-in presetsFree and cheap · Free
Start on anyrouter/free or anyrouter/auto
Two built-in virtual models: free failover on Go and up (anyrouter/free) and stable paid failover (anyrouter/auto). Do not pick a flaky SKU for your first request.
Set it up
curl · anyrouter/free
$ curl 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." }]
}'- 1.Create a key. anyrouter/free works on Go and up, deducts no credits, and has no daily cap.
- 2.Call anyrouter/free for the free chain, or anyrouter/auto for paid models that are healthy right now. Paid models need credits.
- 3.The response model field names the model that answered.
Why use this
A first request that pins a single free SKU often 404s or 429s. You want something that is answering right now, with automatic fallback.
Other ways to set it up
curl · anyrouter/auto
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anyrouter/auto",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'Endpoints and key
- OpenAI-compatible
- https://anyrouter.dev/api/v1
- Anthropic-compatible
- https://anyrouter.dev/api
- Key
- ANYROUTER_API_KEY (sk-ar-…)