OpenAI & Anthropic SDK compatible · Works with Claude Code and Codex

Plug great models into your workflow.

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.

Great models, all in one place

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-5Anthropic
gpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAIgpt-5.1OpenAIgpt-5.1-miniOpenAIo4-miniOpenAI

Why AnyRouter

One less thing to wrangle, a lot more certainty.

/v1/chat/completions · /v1/messages

One endpoint, two protocols

OpenAI and Anthropic protocols, both supported as-is. Use whichever your SDK already speaks — no code changes.

Claude Code · Codex

Built for coding agents

Two environment variables and Claude Code is running in your terminal, long sessions and long contexts included.

per request

Every call on the ledger

Model, tokens, cost and latency are recorded for every request, ready to reconcile in the console.

priority · weight

Multi-channel routing

Each model sits behind several upstream channels, picked by priority and weight; if one fails, traffic moves to the next.

SSE

Streaming, passed straight through

Tokens are forwarded as they are generated, never buffered, so time-to-first-token matches going direct.

USD

Priced in USD, never expires

Usage is deducted per token from your wallet. Top up what you need, or redeem a code instantly.

Two lines of config and you are running

Sign up, grab an API key, swap the base_url — your existing tools do the rest.

  1. 1
    Create an account
    Sign up with email and your wallet is ready.
  2. 2
    Create an API key
    Generate an sk- key in the console; it is shown in full only once.
  3. 3
    Swap the base_url
    Point it at AnyRouter and keep using your SDKs, CLIs and IDE plugins.
export ANTHROPIC_BASE_URL=https://anyrouter.io
export ANTHROPIC_AUTH_TOKEN=sk-xxx

claude   # traffic now flows through AnyRouter

Replace 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.

Models & pricing

Billed per token, with input and output priced separately.

USD per million tokens
ModelInputOutputContext
Anthropic
claude-opus-4-8$15$75200K
claude-sonnet-5$3$15200K
claude-haiku-4-5$1$5200K
OpenAI
gpt-5.1$1.25$10400K
gpt-5.1-mini$0.25$2400K
o4-mini$1.10$4.40200K

Prices shown are examples; the console has the current rates.

Top up when you need to

Your wallet is billed per use and never expires; bigger top-ups come with bigger bonuses.

Starter

Try the full flow

¥30
  • $5 of credit
  • No bonus
  • Balance never expires
Sign up & top up
Popular

Standard

Everyday development

¥100
  • $18 of credit
  • +10% bonus
  • Balance never expires
Sign up & top up

Pro

Heavy use / teams

¥300
  • $58 of credit
  • +15% bonus
  • Balance never expires
Sign up & top up

Redeem a code

Got a redemption code? Redeem it in the console and the credit lands instantly.

FAQ

Can't find an answer? Reach us from the console after signing up.

A default key is created automatically when you sign up. You can create more under “API Keys” in the console and copy any key at any time.

Plug it in, now.

Sign up, get a wallet, and make your first call within minutes.

Sign up free