All use cases
Your keys
Bring 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.
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.
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.
Next playbooks
- Donate an idle key, earn credits backDonate a provider key to the community pool. It serves other people's requests and pays you back in credits.
- Route a free NVIDIA key through one URLNVIDIA issues free API keys. Add one as BYOK and every OpenAI-compatible app you own can use it through AnyRouter.
- One API in front of every provider dialectOpenAI /chat/completions, Anthropic /messages, and a Responses API — same key, same catalog.