All use cases
BYOK
Your keysBring your own keys, $0 markup
Attach OpenAI, Anthropic, Google, Groq, NVIDIA, and more. Requests bill the provider. AnyRouter does not take a per-token cut.
01
The problem
What this is for
You already pay providers. A second gateway invoice is waste if all you needed was one URL, logs, and failover across the keys you have.
02
What to do
Three steps, then copy
- 1.Open /byok and add each provider key.
- 2.Call AnyRouter with your sk-ar key. Matching models go out on your BYOK key.
- 3.Optionally donate idle quota, or fall through to credits when a key is exhausted.
curl · anyrouter/auto
bash
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anyrouter/auto",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'Ready to try it
The guide has the full walkthrough. Sign up if you still need a key.
Related
Next playbooks
Donate an idle key, earn credits back
Donate a provider key to the community pool. It serves other people's requests and pays you back in credits.
OpenRoute a free NVIDIA key through one URL
NVIDIA issues free API keys. Add one as BYOK and every OpenAI-compatible app you own can use it through AnyRouter.
OpenOne API in front of every provider dialect
OpenAI /chat/completions, Anthropic /messages, and a Responses API — same key, same catalog.
Open