One LLM API gateway for every model
An LLM API gateway is a single endpoint you route every model call through, instead of wiring each model provider into your app one by one. Router One is an OpenAI-compatible gateway for 40+ models — GPT, Claude, Gemini, and Grok — behind one base URL (https://api.router.one/v1) and one sk-... API key. Direct model calls are a black box; routing through a gateway gives you a ledger (the wallet charge or plan quota used by each request the gateway forwards to a model), a trace (model, request ID, usage, and status), and control (per-key maxSpend budgets). It is reachable globally and from Mainland China.
Protocol & routing specification
| Endpoint | Base URL | Model families served | Typical clients |
|---|---|---|---|
| POST /v1/chat/completions | https://api.router.one/v1 | All listed chat models (GPT, Claude, Gemini, Grok, DeepSeek) | OpenAI Python/Node SDKs, Cursor, Cline, Chatbox (Cherry Studio takes the host root https://api.router.one instead) |
| POST /v1/responses | https://api.router.one/v1 | GPT family, DeepSeek V4 and Grok chat model IDs | OpenAI Codex CLI (wire_api = "responses"), Responses SDKs |
| POST /v1/messages | https://api.router.one | Claude and DeepSeek V4 model IDs | Claude Code (ANTHROPIC_BASE_URL), Anthropic SDK |
All three protocols authenticate with the same Router One sk-... key, route named-model calls in a fixed-priority sticky order (preserving upstream prompt caching) with same-model failover, and enforce per-key maxSpend wallet caps.
What the gateway does
One OpenAI-compatible endpoint
Point your existing OpenAI SDK at https://api.router.one/v1 and call 40+ models — GPT, Claude, Gemini, Grok — through the same Chat Completions interface. No per-model SDK, no rewrite.
Exact-model routing
Production traffic uses the model_name strategy, so a request is served by the model you name: requests are not load-balanced across routes — every request for a model starts at the top of the same priority order so consecutive turns stay on the top-priority healthy route to preserve upstream prompt caching — and routes with a sustained upstream-error rate move to the back until they recover. Send model="auto" and the gateway picks a low, medium or high tier and serves the request from that tier's server-owned model list.
Automatic fallback
When a named-model request hits a retryable upstream error, the gateway may try the next healthy provider serving that same model. It does not silently switch to a different model.
Request traces & live reliability
Customer Logs shows recorded calls with their model, request ID, tokens, wallet charge or plan quota used, total time (plus time to first token on streamed requests that produced output), status, and any sanitized error. Rolling 7-day and 30-day live 2xx, 429 and 5xx rates are public at https://router.one/benchmarks/model-reliability, and https://router.one/llm-api-authenticity documents reproducible verification checks. When a request failed over, its detail lists each attempt's anonymous line number, outcome and duration; upstream provider identities and service routes are not disclosed.
Keys with their own budgets
Create multiple API keys per account, each with its own maxSpend cap and expiry. Give each app or environment its own scoped key. Rate limits (rateLimit, tokenLimitTpm) run at platform defaults and can be raised on request.
Prepaid pay-as-you-go wallet
Top up a prepaid wallet and pay per token at the posted model-rate token line, with checkout-visible FX/channel fees kept separate. Fund it with a card, Alipay or WeChat Pay through hosted checkout (automatically invoiced by email), or with USDT/USDC via per-order deposit addresses on six chains. Spend draws down as you go.
Native Claude Code & Codex
Claude Code talks to the Anthropic-compatible endpoint at https://api.router.one; OpenAI Codex CLI uses the OpenAI-compatible base URL. Claude Code needs two environment variables, ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN; Codex CLI takes a top-level model line (model = "gpt-6.2-sol", as the one-click install writes) and a three-line provider block in ~/.codex/config.toml (base_url, wire_api = "responses", env_key) plus the key it names.
Global + China reachable
The same gateway is reachable from global networks and from Mainland China without a VPN, so one integration serves teams on both sides. In the China latency benchmark of 2026-11-15 (43 probes in 25 mainland cities on China Telecom, China Unicom, China Mobile and cloud networks), api.router.one answered 85 of 86 requests, with a median first byte 395ms after the request was sent; api.openai.com connected from none of the same probes. Individual networks may vary. Full run: https://router.one/benchmarks/china-latency.
Ledger, trace, and control
The gateway sits between your app and the models so it can do three things a direct call can't. The ledger records the wallet charge for each wallet-billed request at posted rates, drawn from your prepaid wallet; a billed request a plan covers draws the plan's quota instead. Customer Logs records the model, request ID, tokens, wallet charge or plan quota used, recorded latency, status, and any sanitized error. The control layer enforces per-key budgets and default rate limits before a request reaches a provider, so a runaway loop or a leaked key can't drain the wallet.
Switch with one base URL change
Router One speaks the OpenAI Chat Completions API, so most integrations move over by changing the base URL and key. Set the two environment variables and your existing code keeps working.
# Route every model call through the gateway export OPENAI_BASE_URL=https://api.router.one/v1 export OPENAI_API_KEY=sk-your-router-one-key
FAQ
What is an LLM API gateway?
An LLM API gateway is one endpoint you route every model call through instead of integrating each provider separately. It gives you a unified interface for 40+ models, plus routing, fallback, usage, billing and latency traces, and per-key budget controls in one place — a ledger, a trace, and a control layer over your model usage. For the longer explainer, see /blog/what-is-ai-api-gateway.
Is Router One OpenAI-compatible?
Router One is OpenAI-compatible: it implements the OpenAI Chat Completions API at https://api.router.one/v1, so any library or tool that works with OpenAI works by changing the base URL. Claude Code uses the Anthropic-compatible endpoint at https://api.router.one.
Which models can I call?
40+ models across the major families — GPT, Claude, Gemini, and Grok — all through the same unified endpoint. Browse the current catalog and per-model rates on the models page.
How do I call GPT, Claude, and Gemini with one API key?
Create one sk-... key in Dashboard → API Keys, set your OpenAI SDK base_url (or OPENAI_BASE_URL) to https://api.router.one/v1, and pass the exact catalog model ID in the model field — for example an openai/gpt-*, anthropic/claude-*, or google/gemini-* ID from /models. POST /v1/chat/completions serves all listed chat families through that one client; Codex CLI uses POST /v1/responses (for GPT, DeepSeek V4 and Grok chat IDs) and Claude Code uses POST /v1/messages at https://api.router.one with the same key.
How does routing decide which model to use?
The default production strategy is model_name, which honors the model you name: requests are not load-balanced across routes, so every request starts at the top of the same priority order (keeping consecutive turns on the top-priority healthy route to preserve upstream prompt caching), and routes with a sustained upstream-error rate are moved to the back until they recover. Send model="auto" to let the gateway classify the request into a low, medium or high tier and pick a model from that tier's server-owned list. The dashboard shows the model and request ID.
What happens when a provider goes down?
For retryable upstream errors (429, 5xx, timeouts), a named-model request may be retried on the next healthy provider serving that same model, and a route that keeps failing is moved to the back of the order until it recovers. Customer Logs shows model-call usage, wallet charge or plan quota used, recorded latency, and status; when a request failed over, its detail lists each attempt's anonymous line number, outcome and duration. Upstream providers and service routes are not disclosed.
How does billing work?
You top up a prepaid wallet and pay per token at the posted model-rate token line, with checkout-visible FX/channel fees kept separate. Top up with a card, Alipay or WeChat Pay through hosted checkout, or with USDT/USDC on six chains. Each API key can carry its own spend cap so usage stays within budget. Or subscribe to a Pro, Max or Ultra plan: request-based monthly quotas shared by the eligible models in each tier; calls beyond the quota, and models outside plan coverage, bill to the wallet at posted pay-as-you-go rates. Plans and fees: /pricing.
What is the difference between an LLM API aggregator and an LLM API gateway?
Both put several model families behind one API and one key, so you do not integrate each vendor separately. The word aggregator stresses bundled access and, on a managed service, one bill; an LLM API gateway stresses the runtime layer in front of every model call: protocol compatibility (/v1/chat/completions, /v1/responses, /v1/messages), exact-model routing with same-model failover on retryable upstream errors, per-key wallet spend controls, and tokens, wallet charge or plan quota used, and latency logs for each request the gateway forwards to a model. Router One combines both — managed access to 40+ catalog models behind https://api.router.one/v1 together with routing, same-model failover, per-key budgets, and request traces.
Are an LLM API gateway, proxy, and relay the same thing?
They sit in the same place between your app and upstream models, so people often use the words interchangeably, but in practice they point to different setups. A self-hosted proxy (such as LiteLLM, One API, or New API) is software you deploy and operate yourself with your own upstream provider keys. A managed LLM API gateway (such as Router One) bundles multi-model access, posted per-token rates or subscription quotas, same-model failover, per-key spend caps, and tokens, wallet charge or plan quota used, and latency logs for each request the gateway forwards to a model behind published terms, a live status page (https://router.one/status), and rolling per-model reliability boards (https://router.one/benchmarks/model-reliability). API relay is a broad label: it covers self-hosted relays as well as third-party sites that resell access, and published terms, model identity and per-request records differ from site to site, so check them before you top up. See /blog/official-llm-gateway-vs-api-relays for a five-dimension comparison.
Choose the next step for your gateway evaluation
Pick the task you're on: move an existing OpenAI client, see how routing and failover behave, follow request costs, compare the gateway with relay platforms or other gateways, set up your client, or build your own service on top.
Compare with other gateways(8)
Route every model through one gateway.
Get your API key