One endpoint, two protocols
OpenAI and Anthropic protocols, both supported as-is. Use whichever your SDK already speaks — no code changes.
AnyRouter serves both the OpenAI and Anthropic protocols from one endpoint. Swap the base_url and the full Claude and GPT lineups just work — pay as you go, and your balance never expires.
Every Claude and GPT model behind a single endpoint; the console has the live list.
claude-opus-4-8Anthropicclaude-sonnet-5Anthropicclaude-haiku-4-5Anthropicclaude-opus-4-8Anthropicclaude-sonnet-5Anthropicclaude-haiku-4-5Anthropicclaude-opus-4-8Anthropicclaude-sonnet-5Anthropicclaude-haiku-4-5Anthropicclaude-opus-4-8Anthropicclaude-sonnet-5Anthropicclaude-haiku-4-5Anthropicgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIWhy AnyRouter
OpenAI and Anthropic protocols, both supported as-is. Use whichever your SDK already speaks — no code changes.
Two environment variables and Claude Code is running in your terminal, long sessions and long contexts included.
Model, tokens, cost and latency are recorded for every request, ready to reconcile in the console.
Each model sits behind several upstream channels, picked by priority and weight; if one fails, traffic moves to the next.
Tokens are forwarded as they are generated, never buffered, so time-to-first-token matches going direct.
Usage is deducted per token from your wallet. Top up what you need, or redeem a code instantly.
Sign up, grab an API key, swap the base_url — your existing tools do the rest.
export ANTHROPIC_BASE_URL=https://anyrouter.io
export ANTHROPIC_AUTH_TOKEN=sk-xxx
claude # traffic now flows through AnyRouterReplace sk-xxx with an API key from your console. Anthropic-style clients (like Claude Code) use https://anyrouter.io as the base_url; OpenAI-style clients use https://anyrouter.io/v1.
Billed per token, with input and output priced separately.
| Model | Input | Output | Context |
|---|---|---|---|
| Anthropic | |||
claude-opus-4-8 | $15 | $75 | 200K |
claude-sonnet-5 | $3 | $15 | 200K |
claude-haiku-4-5 | $1 | $5 | 200K |
| OpenAI | |||
gpt-5.1 | $1.25 | $10 | 400K |
gpt-5.1-mini | $0.25 | $2 | 400K |
o4-mini | $1.10 | $4.40 | 200K |
Prices shown are examples; the console has the current rates.
Your wallet is billed per use and never expires; bigger top-ups come with bigger bonuses.
Got a redemption code? Redeem it in the console and the credit lands instantly.
Can't find an answer? Reach us from the console after signing up.