Skip to content

Every LLM.
One API.

OpenAI- and Anthropic-compatible. Switch models, keep your code.

Base URLhttps://anyrouter.dev/api/v1
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": "Hi"}]}'
Hi! I'm here and ready to help. What can I do for you today? Ask me anything, from code and writing to quick facts.
2-minute video

Latest of 417 models40 free with GoBrowse all

Microsoft-Decision-1.1Newctx 33K · BYOK$0.04 · $0.00
GPT-6.2 Astractx 1.1M · BYOK$8.00 · $40.00
GPT-6.2 Astra Proctx 1.1M · BYOK$8.00 · $40.00
GPT-6.2 Solctx 1.1M · BYOK$2.00 · $10.00
GPT-6.2 Sol Proctx 1.1M · BYOK$2.00 · $10.00
Sage S2.1 Flashctx 524K · BYOK—
Liquid d1.2ctx 66K · BYOK$0.02 · $0.00
Liquid d1.2 Ultractx 66K · BYOK$0.04 · $0.00

BYOK prices are your provider's list price; AnyRouter adds $0.

How a request routes

When an upstream is rate limited or down, AnyRouter tries the next one. You get one answer and one bill. How routing works

POST /v1/chat/completions
417 models
AnyRouter
$ anyropencode
417 models
AnyRouter
$ anyropencode
x-anyrouter-provider-chain: nvidia->kilobilled once

FAQ

What is AnyRouter?

OpenAI-compatible gateway. 417 models, 18 providers. Free models, $4 credit on Go, $0 markup on your own keys.

How do I call models through AnyRouter?

Point your SDK at one base URL and reference models as provider/model, as in the code above. The table lists every model with its price per 1 million tokens.

Do you take a cut if I bring my own keys?

No. Route through your own provider keys and the markup is $0: what you pay upstream is exactly what you pay.

How do I get started?

Sign up with no card and try 5 requests on free and decision models. Go ($2 a month, or free when you donate one working provider key) unlocks free models with no daily cap and adds $4 of credit every month. The table above shows what every other model costs.