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 323 models41 free with GoBrowse all

Hy4Newctx 1M · BYOK$0.42 · $1.25
LongCat-2.5ctx 1M · BYOK$0.30 · $1.18
Particle-1ctx 1M · BYOK$0.13 · $0.50
Ultramarine 1 Flashctx 1M · BYOK$0.23 · $0.75
GPT-6.1 Terra90% off the list pricectx 1.1M · PoolDiscounted price $0.10 · $0.50Original price $1.00 · $5.00
GPT-6.1 Terra Proctx 1.1M · BYOK$1.00 · $5.00
d3-ultraFreectx 131K · Go$0
Atria Dawnctx 524K · BYOK—

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

How a request routes

Your app sends one request to AnyRouter. AnyRouter checks the key, picks a route and, if an upstream fails, falls back to the next one. You are billed once.

Fig. 1POST /v1/chat/completions
CLI
IDE
Your app
AnyRouter
key
route
fallback
NVIDIA429
Kilo Code200
CLI
IDE
Your app
AnyRouter
key
route
fallback
NVIDIA429
Kilo Code200
  1. 1Apps send POST /v1/chat/completions
  2. 2AnyRouter checks the key, picks a route by model
  3. 3Upstream 1 fails, falls back to upstream 2
  4. 4The answer streams back
x-anyrouter-provider-chain: nvidia->kilo · billed once

FAQ

What is AnyRouter?

OpenAI-compatible gateway. 323 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 in seconds, no card required. Free models cost nothing, Go adds $4 credit, and the table above shows what every other model costs.