Pay-as-you-go wallet
Pay only for what you use
Top up first, then pay the posted rate for actual token usage. Unspent wallet balance does not expire.
- Per-token billing
- Posted rates
- Balance doesn't expire
Router One is a unified LLM API gateway: keep your SDK, change the base URL and key, get eligible same-model fallback.
Switch without rewritingKeep your tools. Change the endpoint.
.envOne set of endpoints, three protocols
Chat Completions
/v1/chat/completions
Responses API
/v1/responses
Messages API
/v1/messages
Works with the clients you already use
Integrate
Router One is an OpenAI-compatible LLM API gateway: one endpoint at https://api.router.one/v1 for GPT, Claude, Gemini, Grok and more, with exact-model routing, same-model fallback and per-request cost traces. Point your application, Claude Code, or Codex at it without replacing the clients your team already knows.
Read the quickstartfrom openai import OpenAI client = OpenAI( base_url="https://api.router.one/v1", api_key="sk-xxx") response = client.chat.completions.create( model="anthropic/claude-sonnet-4.6", messages=[{"role": "user", "content": "Hello!"}])# Works with any OpenAI-compatible SDK# Claude Code → Route through Router Oneexport ANTHROPIC_BASE_URL="https://api.router.one"export ANTHROPIC_AUTH_TOKEN="sk-xxx" # Two variables. ANTHROPIC_API_KEY is not required —# unset it if you exported it earlier.# Codex CLI → Route through Router Onemodel = "gpt-5.6-sol"model_provider = "router" [model_providers.router]name = "Router One"base_url = "https://api.router.one/v1"wire_api = "responses"env_key = "ROUTER_ONE_API_KEY" # Export ROUTER_ONE_API_KEY and that's it.The two highlighted lines are the whole change: endpoint and key. The rest of your code stays as it is.
Built for continuity
For retryable provider errors, Router One can try another eligible route serving the same requested model—and record the final result.
RequestPOST /v1/responses · model: example-chat-model
Request ID: demo_req_7f3aIllustrative example
Request accepted
The application asks for one exact example model.
POST /v1/responsesRoute A selected
Gateway policy selects an eligible provider route for that model.
Retryable errorEligible fallback route succeeds
After a retryable Route A error, Route B serves the same requested model; no cross-model substitution is implied.
200 · Route BFinal trace recorded
Customer Logs records the model, request ID, usage, cost, recorded latency, and status.
Trace recordedCustomer Logs shows the model, request ID, tokens, charge, recorded latency, status, and any sanitized error. Upstream supplier identities, service routes, and intermediate attempts remain internal; support can investigate using the request ID.
Billing & payment
Choose pay-as-you-go flexibility or a predictable subscription, then fund it by card, local payment, or stablecoin.
Pay-as-you-go wallet
Top up first, then pay the posted rate for actual token usage. Unspent wallet balance does not expire.
Pro · Max · Ultra
Eligible models in a tier share monthly request quotas; wallet balance covers calls outside plan coverage.
One hosted checkout takes major credit and debit cards plus Alipay, so an RMB top-up works without a US credit card.
Stablecoin top-ups support cross-border teams, Web3 products, and card-limited workflows on published networks.
Observability
Investigate requests by ID, reconcile recorded usage and charges, and contain runaway calls with key-level limits.
| Time | API key | Model | Status | Input / output tokens | Cost | Latency | Request ID |
|---|---|---|---|---|---|---|---|
| 14:02:18 | prod-backend | example-chat-model | 200 | 512 / 200 | $0.0042 | 1,180 ms | demo_req_7f3a |
| 14:01:55 | staging-api | example-fast-model | 200 | 1,024 / 512 | $0.0014 | 2,060 ms | demo_req_7f2e |
| 14:01:40 | prod-backend | example-vision-model | 200 | 8,600 / 900 | $0.0029 | 1,420 ms | demo_req_7f2b |
| 14:01:12 | batch-jobs | example-chat-model | 402 | — | — | 95 ms | demo_req_7f29 |
| 14:00:47 | support-bot | example-fast-model | 200 | 3,200 / 640 | $0.0035 | 1,910 ms | demo_req_7f24 |
402This key hit its spend cap: its wallet-paid requests return 402 while every other key keeps working.
Guides
Explore routing, cost control, coding-tool access, billing, and migration guides for your next integration.
FAQ
Confirm network access, data handling, and product boundaries before you send production traffic.
Need another answer? Read all FAQs
Mainland China teams can call Router One directly, without a VPN or proxy. The published China latency benchmark lists its measurement window, method and limitations; actual performance varies by region and network.
Router One does not retain prompt or model-response bodies from direct API calls. It records request metadata for billing, usage tracking, and troubleshooting. Playground saves conversation history so users can revisit and continue their chats. Retention scope and deletion requests are covered on the data-retention page.
Agent workflows, state, and tool execution stay in your application or orchestration framework. Router One handles each model call.
Keep your SDK, start with one API key, and expand model coverage when your product needs it.
OpenAI-compatible base URL
https://api.router.one/v1