What should an LLM gateway do for you?
An LLM gateway sits between your app and many model providers. You call one base URL with one API key. The gateway routes the request, retries it on another provider when the first fails, and logs it in one place.
Every gateway claims this. The questions below tell you which ones deliver it. They apply to any gateway, AnyRouter included.
- Ask each question in your own test, not only in the docs.
- Write down the answer for each gateway you try.
- Drop a gateway at the first answer you cannot accept.
Which seven questions should I ask?
| Question | What to check | AnyRouter |
|---|---|---|
| Does my client work unchanged? | Your SDK should only need a new base URL and key. Check that the API shapes you use are supported, including streaming. | OpenAI Chat Completions, Responses, Embeddings and Anthropic Messages sit behind one base URL, https://anyrouter.dev/api/v1. Model ids are written provider/model, for example moonshotai/kimi-k3.1-pro. |
| What happens when a provider fails? | Look for automatic retry on another upstream, and which errors trigger it. A gateway that passes errors through gives you a proxy, not failover. | A 401, 429 or 5xx from one upstream retries on the next, so your client sees the final answer. |
| How are keys handled, and is there a markup? | Ask if you can use your own provider keys and what the gateway adds on top. Ask how inference keys differ from account management keys. | Bring-your-own-key at $0 markup. Inference keys start with sk-ar-v1- and management keys with ak_. The two families are never mixed. |
| Can I see every call? | You need one log with model, tokens, cost, latency and errors. Without it you debug from your app alone. | Every request records model, tokens, cost, latency and errors in one place. See request logs. |
| Are free models real, and what are the limits? | Ask what free means: a trial, a daily cap, a credit deduction. Ask what happens at peak hours. | Free models cost $0 per token on Go and up, with no daily cap and no credit deduction. Free routes share a throttled pool, so a busy hour can return 429. If a :free model fails on every route, AnyRouter answers with anyrouter/free and sets the header x-anyrouter-fallback: anyrouter/free. |
| Who can use which models? | Find the plan rules in writing. A gateway should say what a free account reaches and what it needs paid credit for. | Free is a 5-request lifetime trial on free and decision models. Paid models use purchased credit, and your own keys work as normal. $5 of unrefunded top-ups opens free models for good. Go is $2 per month, or one valid donated key, and reaches every model. |
| Is this the real site? | Gateways handle your API keys and payments. Confirm the domain before you sign up. | The official domain is https://anyrouter.dev. See the Official site section below. |
How do I test a gateway before I commit?
- 1
Send one request. Point an OpenAI client at the base URL and call a free model. The quickstart has the full setup.
- 2
Read the log. Open the request log and check that the call shows the model, tokens, cost and latency.
- 3
Read the fallback rules. The model fallbacks guide says which errors retry and where.
- 4
Check the plan page. Compare what you need against the pricing page, including the free-model rules.
export ANYROUTER_API_KEY="sk-ar-v1-your-key"
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": "Hello!"}]
}'Browse the models and the free models pages to see what you can call. Using your own keys is covered in BYOK and Bring your own keys. Read Direct provider vs gateway if you are still weighing a gateway at all.
Official site
The official AnyRouter domain is https://anyrouter.dev, shortened as https://anyr.dev. It is the only valid domain for the API, docs, models, pricing and terms.
Sites on other domains that use the AnyRouter name are clones and are not affiliated with AnyRouter. Check the domain before you send API keys, credentials or payments.
FAQ
What matters most when I compare LLM gateways?
Start with API compatibility and failover. If your client needs code changes, or one provider error reaches your users, the rest matters less. Then check how keys, markup and logs work.
Should a gateway add a markup on my own provider keys?
Ask. On AnyRouter, bring-your-own-key routes through keys you already pay for at $0 markup, so the provider bills you exactly what it charges.
How do I test failover before I commit?
Read the failover docs, then check the logs. AnyRouter retries the next upstream on a 401, 429 or 5xx, and the request log shows the model, tokens, cost, latency and errors for every call.
How do I know a gateway site is the real one?
Check the domain before you paste a key. The official AnyRouter domain is https://anyrouter.dev, and https://anyr.dev is its short link. Sites on other domains that use the name are clones.
Related posts
- What is AnyRouter? A plain-English guide to AI model routingGuidesAugust 5, 2026 · An AI model router lets you call many LLMs through one API. Here's what AnyRouter is, why it exists, and whether it's useful for your next project.
- Calling providers directly vs. routing through one gatewayComparisonsJuly 12, 2026 · Call OpenAI, Anthropic, and every other provider directly and you manage a key, an SDK, and an audit trail per provider. Route the same calls through one gateway and you manage one of each, at the cost of an extra hop. Here's the honest trade-off on auth, SDKs, failover, billing, audit logs, and switching cost.
- How automatic failover works in an LLM gatewayEngineeringJuly 12, 2026 · A single provider call has a single point of failure: one rate limit, one outage, one bad deploy on their end, and your request fails. Here's the actual mechanism AnyRouter uses to route around that, circuit breakers, escalating cooldowns, and a fallback chain, and why the extra hop barely registers next to model generation time.
- Bring your own keys: every provider behind one APIProductJune 28, 2026 · Connect the provider keys and subscriptions you already pay for, route them through one OpenAI-compatible URL with automatic failover, and get free Pool access and Go by donating idle quota to the shared pool.