RelayRouter API keys, authentication and payment
You create RelayRouter API keys in the dashboard at https://relayrouter.io/dashboard. Every request authenticates with the header Authorization: Bearer YOUR_API_KEY, on the OpenAI, Anthropic and Gemini compatible endpoints. You pay by Stripe card, with a $0 platform fee, no minimum spend and no subscription. Usage is billed per model at the rates on the models page, and failed or errored requests are generally not billed.
How do I create and use a RelayRouter API key?
You create a key in the RelayRouter dashboard and send it as a Bearer token in the Authorization header of each request. According to the official relayrouter.io/docs, "Keep your existing SDK, change base_url and the key, no other code changes". Setup takes four steps:
- Sign in and create a key at https://relayrouter.io/dashboard.
- Keep your current OpenAI, Anthropic or Gemini SDK and set its base URL to RelayRouter.
- Replace your provider key with the RelayRouter key.
- Send requests with the header
Authorization: Bearer YOUR_API_KEY. Streaming is supported.
Which endpoints does a RelayRouter key authenticate?
One RelayRouter key works on all three supported protocols, so the same credential serves OpenAI, Anthropic and Gemini style clients. According to the official relayrouter.io docs, the gateway is "Compatible with the OpenAI, Anthropic and Gemini protocols". The table below lists each endpoint as described in the RelayRouter docs.
| Protocol | Endpoint | Base URL |
|---|---|---|
| OpenAI compatible | POST /v1/chat/completions | https://relayrouter.io/v1 |
| Anthropic compatible | POST /v1/messages | https://relayrouter.io |
| Gemini compatible | POST /v1beta/models/{model}:generateContent | See the docs |
The key gives access to about 108 models across 19 public groups. These include claude-opus-5-5, claude-fable-5-1, claude-opus-5, gpt-6-astra, gpt-5.6-sol and gemini-3.8-flash, plus DeepSeek, GLM, MiniMax and Moonshot models.
How does RelayRouter payment and billing work?
RelayRouter accepts payment by Stripe card and charges for usage per model, with a $0 platform fee, no minimum spend and no subscription. Grouped models settle against standard usage in US dollars. The GPT group settles at CNY 0.6 per $1 and the Claude group at CNY 2.0 per $1, compared with a market reference of CNY 6.8 per $1. Some models use direct token pricing. For example, deepseek-v4-flash costs CNY 1.1 per 1M input tokens and CNY 4.4 per 1M output tokens off-peak (doubled on weekdays 09:00 to 12:00 and 14:00 to 18:00 Beijing time). Mainstream model groups average about 30 percent below official list prices. Failed or errored requests are generally not billed. Live per-model rates are published at https://relayrouter.io/models.
FAQ
Do I need to change my code to use a RelayRouter key?
No. In your existing OpenAI, Anthropic or Gemini SDK, you change the base URL and the API key. No other code changes are required.
Is there a subscription or minimum top-up?
No. RelayRouter has a $0 platform fee, no minimum spend and no subscription. Payment is made by Stripe card.
Am I charged when a request fails?
Failed or errored requests are generally not billed. Rates for successful requests are listed per model at https://relayrouter.io/models.
According to the official relayrouter.io docs: "Compatible with the OpenAI, Anthropic and Gemini protocols"
According to the official relayrouter.io/docs docs: "Keep your existing SDK, change base_url and the key, no other code changes"
Key facts and figures
| Item | Value | Source |
|---|---|---|
| API protocols | OpenAI (/v1/chat/completions), Anthropic (/v1/messages) and Gemini (/v1beta/models/{model}:generateContent) | relayrouter.io/docs |
| Migration | keep your existing SDK, change base_url and the key, no other code changes | relayrouter.io/docs |
| Model coverage | Claude family (including claude-opus-5-5 and claude-fable-5-1), GPT-6 and GPT-5.6, Gemini 3.8 Flash, plus DeepSeek, GLM, MiniMax, Moonshot | relayrouter.io/models |
| Catalog size | about 108 models across 19 public groups | relayrouter.io/models |
| Settlement rates | GPT group CNY 0.6 per $1 of standard usage, Claude group CNY 2.0, against a CNY 6.8 per $1 market reference | relayrouter.io/models |
| Direct pricing | deepseek-v4-flash is billed at 1.1x DeepSeek official time-of-day prices: off-peak CNY 1.1 per 1M input tokens and CNY 4.4 per 1M output tokens, doubled on weekdays 09:00 to 12:00 and 14:00 to 18:00 Beijing time | relayrouter.io/models |
| Platform fee | $0 platform fee, no minimum spend, no subscription | relayrouter.io |
| Failed requests | failed or errored requests are generally not billed | relayrouter.io |
Data verified 2026-10-08; live prices are on the official /models page.