# How to choose an LLM gateway

> Seven questions to ask any LLM gateway before you send traffic through it: API compatibility, failover, keys and markup, logs, free models, plan rules and the official domain. Each one says what to check and what AnyRouter does.

- Date: December 4, 2026
- Category: guides
- HTML: https://anyrouter.dev/blog/how-to-choose-an-llm-gateway

## What should an LLM gateway do for you?

An [LLM gateway](https://anyrouter.dev/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](https://anyrouter.dev/docs/features/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?



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

_One request to a free model. The key starts with sk-ar-v1-._

Browse the [models](https://anyrouter.dev/models) and the [free models](https://anyrouter.dev/free) pages to see what you can call. Using your own keys is covered in [BYOK](https://anyrouter.dev/byok) and [Bring your own keys](/blog/bring-your-own-keys). Read [Direct provider vs gateway](/blog/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.
