Skip to content
Unified API

Every provider. One API contract.

One OpenAI-compatible surface — plus an Anthropic-compatible /messages endpoint and a Responses API — in front of 206+ models across 17 providers. Model ids are just provider/model. Swap models without changing a line of client code.

02

How it routes

One request, automatic failover

Your SDK, CLI, and agents call one base URL. AnyRouter picks an upstream, and if that upstream rate-limits or errors, it retries the next one automatically — your client still sees a single 200.

03

Under the hood

One gateway, every provider

Clients authenticate once, the gateway fans a single request out to whichever provider serves the model, and every call is logged and cached alongside it.

03

Everything in one gateway

One key. Every capability you'd otherwise wire up yourself.

No add-ons, no tiers gating the basics. Every capability below ships on the same base URL and the same API key.

04

Try it

Same contract, every client

OpenAI SDK, Python, the AI SDK, MCP, the CLI, or plain cURL — pick a tab and copy the real request.

anyrouter ~ openai (python)
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyrouter.dev/api/v1",
    api_key=os.environ["ANYROUTER_API_KEY"],
)

resp = client.chat.completions.create(
    model="anthropic/claude-sonnet-4.6",
    messages=[{"role": "user", "content": "Hi"}],
)
ANYROUTER_API_KEYget key
05

Already have keys?

Bring them all

One sk-ar key fronts every provider key you already pay for — with load balancing, automatic failover, zero markup, and a per-key budget cap. Collect the whole drawer behind a single endpoint.

One key, one URL

A single sk-ar key fronts OpenAI, Anthropic, Groq, and 60+ more — your app holds one credential, not a drawer full.

Balancing & failover

Spreads load across your keys and retries the next provider the instant one errors or rate-limits.

$0 markup

Requests bill straight to your own provider accounts — AnyRouter never takes a per-token cut.

Per-key budgets

Cap monthly spend on each connected key so a runaway job can't blow past a limit.

Start routing through one API

Free to start. Add credits, connect your own provider keys, or subscribe for higher limits whenever you need them.