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 465 models43 free with GoBrowse all

Sarvam 105BNewctx 131K · BYOK—
Bison 1ctx 131K · BYOK$0.10 · $0.00
Groundhog 1ctx 131K · BYOK$0.04 · $0.00
Inkling 2 Minictx 262K · BYOK$0.10 · $0.40
Gemini 4 Neonctx 1M · BYOK$3.00 · $15.00
Microsoft-Decision-1.1ctx 33K · BYOK$0.04 · $0.00
GPT-6.2 Astra80% off the list pricectx 1.1M · PoolOriginal price $8.00 · $40.00Discounted price $1.60 · $8.00
GPT-6.2 Astra Proctx 1.1M · BYOK$8.00 · $40.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
465 models
AnyRouter
$ anyropencode
465 models
AnyRouter
$ anyropencode
x-anyrouter-provider-chain: nvidia->kilobilled once

FAQ

What is AnyRouter?

OpenAI-compatible gateway. 465 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. A $5 top-up, or Go ($2 a month, or free when you donate one working provider key), unlocks free models with no daily cap. Go also adds $4 of credit every month. The table above shows what every other model costs.