Skip to content
All use cases

One endpointSDKs

One API in front of every provider dialect

OpenAI /chat/completions, Anthropic /messages, and a Responses API — same key, same catalog.

Set it up

curl · anyrouter/auto
$ 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." }]
  }'
  1. 1.Use https://anyrouter.dev/api/v1 for OpenAI-compatible calls.
  2. 2.Use https://anyrouter.dev/api for Anthropic /messages (Claude Code, Agent SDK).
  3. 3.Start with anyrouter/auto so the first request is not a single upstream.
Why use this

Apps accumulate one client per vendor. Failover and logging then live in your code instead of the gateway.

Endpoints and key
OpenAI-compatible
https://anyrouter.dev/api/v1
Anthropic-compatible
https://anyrouter.dev/api
Key
ANYROUTER_API_KEY (sk-ar-…)
Watch the walkthrough