# AnyRouter vs OpenRouter: a sourced comparison and migration guide

> Fees, BYOK, free-model limits and plans for AnyRouter and OpenRouter, each OpenRouter figure linked to its source and dated. Plus the base URL and key swap to move over.

- Date: October 16, 2026
- Category: comparisons
- HTML: https://anyrouter.dev/blog/anyrouter-vs-openrouter

## What they have in common

Both put one OpenAI-compatible API in front of many providers, so changing models is a string change. OpenRouter says it is a [drop-in replacement for OpenAI](https://openrouter.ai/docs/faq) and offers [hundreds of models](https://openrouter.ai/docs/quickstart) behind one endpoint. AnyRouter's catalog is live at [anyrouter.dev/models](https://anyrouter.dev/models), with prices per 1M tokens.

OpenRouter figures on this page were read from the linked pages on November 16, 2026. Where we could not source a claim about OpenRouter, we left it out.

## Side by side

|  | AnyRouter | OpenRouter |
| --- | --- | --- |
| Buying credits | The card processor's 5% + $0.50 is added at checkout. AnyRouter keeps none of it. ([source](https://anyrouter.dev/docs/features/credits)) | 5.5% ($0.80 minimum) fee when you purchase credits. Crypto is 5%. ([source](https://openrouter.ai/docs/faq)) |
| Your own provider keys (BYOK) | No AnyRouter fee, at any volume. ([source](https://anyrouter.dev/docs/features/byok)) | No fee up to $25,000 a month of list-price inference on pay-as-you-go, then 5% of what the same model would cost on OpenRouter. ([source](https://openrouter.ai/docs/guides/overview/auth/byok)) |
| Free models | Free models are open with a $5 top-up, Go or higher, or one donated working provider key: no daily cap, 150 a minute on Go (60 from a donated key), 400 on Pro, Pro+ and Max. Go is $2 a month. The Free plan is a 5-request trial on free and decision models. ([source](https://anyrouter.dev/docs/features/free-tier)) | `:free` models: 20 requests per minute. 50 a day with under $10 of credits bought, 1,000 a day after $10. ([source](https://openrouter.ai/docs/api-reference/limits)) |
| Plans | Free, Go ($2/mo, $2.63 charged, $4 credits), Pro, Pro+ and Max. ([source](https://anyrouter.dev/pricing)) | Free, Standard (pay-as-you-go), Business (pay-as-you-go) and Enterprise. No monthly subscription price is listed, with no minimums and no lock-in. ([source](https://openrouter.ai/pricing)) |
| API compatibility | OpenAI-compatible at https://anyrouter.dev/api/v1. ([source](https://anyrouter.dev/docs/getting-started/quickstart)) | Described as a drop-in replacement for OpenAI. ([source](https://openrouter.ai/docs/faq)) |

The two fee rows are close in size on a card purchase, so the fee is not a reason to pick either. The difference is who keeps it: on AnyRouter the processor takes it and we take nothing, on OpenRouter it is OpenRouter's fee. The BYOK row only matters if you spend heavily through your own keys.

## When OpenRouter is the better fit

- You need a model that only one catalog lists. Check both lists for the exact ids you use before moving.
- You are happy buying credits from one vendor and do not use your own provider keys or coding agents.
- You already run on it and nothing in the table above is a problem for you.

When AnyRouter fits better: you want free models without a daily cap, you route through your own keys, or you run Claude Code or Codex and want one command to set it up.

## Migrate: change the base URL and key

For an OpenAI-compatible client, two values change. Everything else, including streaming and error handling, stays as it is.

| Setting | OpenRouter | AnyRouter |
| --- | --- | --- |
| Base URL | `https://openrouter.ai/api/v1` | `https://anyrouter.dev/api/v1` |
| API key | OpenRouter key | Your key, starting with `sk-ar-` |
| Model | `provider/model` | `provider/model` from the AnyRouter catalog |

### Python

```python
import os

from openai import OpenAI

# before: base_url="https://openrouter.ai/api/v1", api_key=OPENROUTER_API_KEY
client = OpenAI(
    base_url="https://anyrouter.dev/api/v1",
    api_key=os.environ["ANYROUTER_API_KEY"],  # sk-ar-...
)

resp = client.chat.completions.create(
    model="anyrouter/free",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(resp.choices[0].message.content)
```

### curl

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

### Claude Code

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr claude --model anyrouter/free
```

1. Create a key in the [dashboard](https://anyrouter.dev/dashboard/keys) and store it as `ANYROUTER_API_KEY`.
2. Swap the base URL and key in your client config.
3. List the models you call with `GET https://anyrouter.dev/api/v1/models` and confirm each id exists. A few ids differ between catalogs, and an unknown id returns 404.
4. Keep your `provider` preferences (`only`, `ignore`, `order`, `sort`, `max_price`, `allow_fallbacks`) and your `HTTP-Referer` and `X-Title` headers. AnyRouter reads them.
5. Send one request and check it in your [request logs](https://anyrouter.dev/dashboard/logs).

If your app signs users in with OpenRouter's OAuth PKCE flow, the same flow works here. Swap the host in the `/auth` URL and in the key exchange. The full steps, including price caps and fallbacks, are in the [migration guide](https://anyrouter.dev/docs/guides/migrate-from-openrouter).

Try it first: a 5-request trial on free models, no card.

[Create a key](https://anyrouter.dev/sign-up)
