One alias in front of DeepSeek.
Your application calls a Relays alias. Relays holds the DeepSeek credential, applies the route policy, and hands back the provider response in the shape your SDK expects.
- Your application
Keeps the OpenAI-compatible request it already sends.
- Relays
Holds the key, picks the candidate, writes the receipt.
- DeepSeek
Receives the call on its own base URL.
- OpenAI-compatible
- Chat Completions
- Bring your own DeepSeek API key
DEEPSEEK_API_KEY https://api.deepseek.com/v1- Maintained Relays preset
Relays’ DeepSeek preset uses the OpenAI-compatible Chat Completions contract. Provider credentials are read by Relays, not returned to applications.
What is measured, and what is not.
Availability comes from DeepSeek. Latency, error rate, and cost per successful request come from your own traffic, so Relays leaves them empty until requests run.
Relays measurements
Models at the edge.
Model IDs sit behind a Relays alias, so a catalogue change at DeepSeek never reaches your code.
Every route carries a policy.
A route is a list of candidates, a budget, and a record of what happened. You set all three before any traffic runs.
Candidates stay inside the contract.
DeepSeek can be an ordered fallback candidate for eligible Chat Completions traffic. Relays retries only classified transient upstream failures.
See how a route is chosenA ceiling on this route.
Set an alert threshold and a stop threshold for the route rather than for the whole application. Relays checks both before the call goes upstream.
Each attempt is written down.
Every call records the alias, the candidates tried, the status each returned, tokens in and out, and the estimated cost of the attempt that served it.
Read a route receipt
One endpoint is enough to start.
Keep the client you already wrote. Bring us the workload and we will map the first DeepSeek route with you.
