Setup guide
Connect OmniRoute to relay.fast as a custom provider
OmniRoute accepts a custom OpenAI-compatible provider, so you can add relay.fast with the address https://relay.fast/v1 and a relay.fast API key. Each request that reaches relay.fast is charged per token to your relay.fast balance, and no subscription is needed.
What you need
As of 27 November 2026, the OmniRoute documentation describes it as an open-source program under the MIT license. You run it on your own computer or server. It gives coding tools and other clients one local address and passes their requests to the providers connected in it. The field names on this page follow its interface in release v3.8.55.
- OmniRoute installed and running, as its documentation describes. Its dashboard opens at
http://localhost:20128. - A relay.fast API key. You create it on the Keys page of the relay.fast dashboard.
- The relay.fast address for the OpenAI format:
https://relay.fast/v1. It ends with/v1.
Add relay.fast as a custom provider in OmniRoute
- Open the OmniRoute dashboard at
http://localhost:20128. - Go to Providers and click Add OpenAI Compatible.
- Fill in the form. Chat Completions is the format in which relay.fast serves every chat model in its catalog: GPT, Claude, DeepSeek, GLM and others.
Field Value What it is Name relay.fasta display label for the node Prefix relayfastrequired; clients call the models of the node as <prefix>/<model>API Type Chat Completions the kind of requests the service takes Base URL https://relay.fast/v1the API root up to and including /v1, without the/chat/completionspathAPI Key (for Check) your relay.fast key used only to test the connection - Click Check beside the API Key (for Check) field. OmniRoute shows the result as Valid or Invalid. Requests do not use the key from this field.
- Click Add to create the provider node.
- Open the new node, click Add Connection and paste your relay.fast key. Requests to relay.fast use this key. It can have its own spending limit, set on the Keys page of the relay.fast dashboard.
Import relay.fast models into OmniRoute
Open the node. Its models are in the Available Models list.
- Import from /models reads the list from relay.fast, which answers
GET /v1/modelswith the models your key can use. - Auto-Sync refreshes the list from time to time.
- You can also add a model id by hand. Copy it exactly from the model catalog.
In OmniRoute a model name is the prefix, a slash and the relay.fast model id. With the prefix relayfast, that gives names such as relayfast/deepseek-v4.1-flash, relayfast/glm-5.3 and relayfast/claude-sonnet-5-5.
OmniRoute API key and client settings for relay.fast models
This setup uses two keys.
- The relay.fast key is stored inside OmniRoute, in the connection of the node (Add Connection). The client never sends it.
- The client sends an OmniRoute key. You create that key in the OmniRoute dashboard.
Set up your client like this.
| Client setting | Value |
|---|---|
| Base URL | http://localhost:20128/v1 |
| API key | the key created in the OmniRoute dashboard |
| Model | relayfast/deepseek-v4.1-flash |
The client talks to OmniRoute at http://localhost:20128/v1. OmniRoute passes the request to https://relay.fast/v1 with the relay.fast key from the connection. To use another model, change only the part after relayfast/.
Common errors and what to check
The message about the prefix comes from OmniRoute. The errors with the codes 401, 403 and 404 come from relay.fast.
- A message that starts with
prefix: "<prefix>" is a reserved provider prefix: OmniRoute does not accept that prefix. Choose another one. 401with the textInvalid token: the relay.fast key is wrong, disabled or pasted with spaces. Check the key stored with Add Connection.404with the codeinvalid_endpoint: the Base URL of the node has no/v1at the end. Set it tohttps://relay.fast/v1.404with the codemodel_not_found: the model id after the prefix does not match the catalog. Copy the id exactly from the model catalog.403with the codeinsufficient_user_quota: your relay.fast balance does not cover the request.- A model is missing from Available Models: run Import from /models again, or add the model id by hand.
Keep agent costs under control
An agent sends the conversation, file contents and tool results with every step, so input tokens make up most of the bill. Use a mid-priced model for routine work and a frontier model for hard tasks, prefer models with a cache-read price for long sessions, and watch the usage in the dashboard until you know what a typical task costs. Current prices are in the live pricing catalog.
Current prices of the models in this guide
Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.
| Model | Model ID | Official input / output per 1M tokens | relay.fast from, input / output | Cache read from | Context |
|---|---|---|---|---|---|
| DeepSeek V4.1 Flash price depends on the time of day; the peak-hours price is shown | deepseek-v4.1-flash | $0.3 / $1.2 | $0.03 / $0.12 (−90%) | $0.0006 | 1M |
| GLM-5.3 | glm-5.3 | $1.4 / $4.4 | $0.035 / $0.11 (−97%) | $0.0065 | 1M |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2 / $10 | $0.238 / $1.19 (−88%) | $0.0238 | 1M |
Frequently asked questions
What is OmniRoute?
As of 27 November 2026, its documentation describes OmniRoute as an open-source program under the MIT license that you run on your own computer or server. It gives coding tools and other clients one local address and passes their requests to the providers connected in it.
What Base URL do I enter in OmniRoute for relay.fast?
Enter https://relay.fast/v1. The address ends with /v1 and does not include /chat/completions.
What model name do I use for relay.fast in OmniRoute?
A client that works through OmniRoute uses the prefix, a slash and the relay.fast model id. With the prefix relayfast that is, for example, relayfast/deepseek-v4.1-flash.
Which API key does the client use with OmniRoute?
The client uses a key created in the OmniRoute dashboard. The relay.fast key stays inside OmniRoute, in the connection of the relay.fast node.
What is the API Key (for Check) field in OmniRoute for?
It only tests the connection. After the node is created, open it and use Add Connection to store the relay.fast key that requests will use.
Do I need OmniRoute to use relay.fast?
No. Each program can be connected to relay.fast directly, without OmniRoute.
Is OmniRoute affiliated with relay.fast?
No. OmniRoute is a separate product. This page shows how to connect it to relay.fast.