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 399 models50 free with GoBrowse all

Gemini Decision 1Newctx 262K · BYOK$0.10 · $0.00
SubQ Snap 1.2ctx 393K · BYOK$0.04 · $0.00
Gemini 4 Carbonctx 1M · BYOK$2.00 · $10.00
Nex-N2.6ctx 262K · BYOK$0.12 · $0.40
Claude Fable 5.2ctx 1M · BYOK$8.00 · $40.00
Muse EmberBYOK$0.10 · $0.50
Decisions Fastctx 32K · BYOK—
GLiDE 27Bctx 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
399 models
AnyRouter
$ anyropencode
399 models
AnyRouter
$ anyropencode
x-anyrouter-provider-chain: nvidia->kilobilled once

FAQ

What is AnyRouter?

OpenAI-compatible gateway. 399 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.