---
title: "WyvernChat custom provider setup: API URL, key, model"
canonical: https://relayswitch.io/guides/wyvern
generated: 2026-11-15T03:25:00.139Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

Checked 2026-11-03

# WyvernChat custom provider setup (AI Connections)

Put every RelaySwitch model behind WyvernChat on your own key: a Provider, a Connection, the model id, and what each message costs.

WyvernChat splits a custom API in two. A **Provider** holds where the API lives and the key; a **Connection** names one model on it with its context length and sampler preset. Both live under **AI Connections** (the plug icon, or your profile picture, at `https://app.wyvern.chat/llm`). With the Free Queue off and your connection picked in the chat, every message goes to the model you named, billed per token from a prepaid balance.

## 01What you need

-   A WyvernChat account at [app.wyvern.chat](https://app.wyvern.chat). The free tier takes your own provider.
-   A RelaySwitch key from the [console](https://app.relayswitch.io/console) (email code sign-in). Keys start with `sk-relay-`.
-   A balance. Top-ups start at $10, by card or crypto, with no subscription. Before the first top-up the console chat runs 12 free turns a day.

## 02Providers tab

Open AI Connections, stay on **Providers**, click **\+ Create Provider** and fill the form:

text

1`Provider Name: RelaySwitch`

2`Chat Completion Only?: on`

3`No Key Required: off`

4`Stored API Key: sk-relay-...`

5`API URL Type: OpenAI`

6`API URL: https://api.relayswitch.io/v1`

7`API Backend Type: OPENAI`

-   **Chat Completion Only?** on: the API answers the chat completions format; with it off Wyvern may try a text-completions route and get 404.
-   **No Key Required** off, and the key in **Stored API Key** with nothing in front of it. If your release shows the key field only after saving, save, then **Add API Key** on the provider's row.
-   **API URL**: `https://api.relayswitch.io/v1` with the `/v1`. If Fetch Models or the first message answers 404, your release posts to the address as typed: use `https://api.relayswitch.io/v1/chat/completions` instead.
-   **Allowed Parameters**: leave empty. Click **Add Provider**.

## 03Connections tab

Switch to **Connections**, click **\+ New Connection**, name it after the model, set **Visibility** Private, and under **Model Configuration**:

text

1`Force Chat Completion: on`

2`Provider: RelaySwitch`

3`Model: Fetch Models, then pick (or type the id)`

4`Context Length (tokens): the model's window or less`

-   **Fetch Models** works here: the API answers `/v1/models` with your key, so the list fills with every id on the [Models page](https://relayswitch.io/models). If it fails, type the id exactly; a display name answers 404 `model_not_found`.
-   **Context Length (tokens)** is the number that sets the bill; the table below gives a value per model.
-   **Tool Call Enabled**, **Inline Image Support** and **Use Browser Request**: off. With browser requests off, Wyvern's server makes the call and the key never reaches the browser.
-   Pick the **Stable** preset under **Parameters**; the uncensored builds need no jailbreak in the instruct template. Click **Create**.

Then, in any chat: the cog icon, **Connection Settings**, **Free Queue** off, your connection under **Mine**. A second model is a second connection on the same provider.

## 04Which model to pick

Wyvern's Free Queue serves whatever is free that minute, with a queue in front of it; your own connection serves the model you picked, at once. Prices are per million tokens; the turn columns price one 2K-in / 300-out turn: 2,000 tokens of card, persona and recent history in, 300 out.

| Model | Model | Context | Input / M | Output / M | one 2K-in / 300-out turn | 100 turns |
| --- | --- | --- | --- | --- | --- | --- |
| [GLM-5.3 Flash Uncensored](https://relayswitch.io/models/glm-5.3-flash-uncensored) | `glm-5.3-flash-uncensored` | not stated | $0.1053 | $0.3685 | $0.00032 | $0.0321 |
| [GLM-5.3 Uncensored](https://relayswitch.io/models/glm-5.3-uncensored) | `glm-5.3-uncensored` | not stated | $0.282 | $0.846 | $0.00082 | $0.0818 |
| [Gemma 4 31B Fabled](https://relayswitch.io/models/gemma-4-31b-fabled) | `gemma-4-31b-fabled` | 262K tokens | $0.35 | $1.575 | $0.0012 | $0.1173 |
| [Qwen3.8 27B Novelist](https://relayswitch.io/models/qwen3.8-27b-novelist) | `qwen3.8-27b-novelist` | 262K tokens | $0.35 | $2.10 | $0.0013 | $0.133 |
| [Cydonia 24B v4.3](https://relayswitch.io/models/cydonia-24b-v4.3) | `cydonia-24b-v4.3` | 131K tokens | $0.484 | $0.60 | $0.0011 | $0.1148 |
| [Uncensored AI Roleplay](https://relayswitch.io/models/uncensored-ai-roleplay) | `uncensored-ai-roleplay` | 128K tokens | $0.60 | $2.34 | $0.0019 | $0.1902 |
| [DeepSeek V4.1 Flash Abliterated](https://relayswitch.io/models/deepseek-v4.1-flash-abliterated) | `deepseek-v4.1-flash-abliterated` | not stated | $0.8488 | $1.6975 | $0.0022 | $0.2207 |
| [DeepSeek V4 Pro Uncensored](https://relayswitch.io/models/deepseek-v4-pro-uncensored) | `deepseek-v4-pro-uncensored` | not stated | $0.97 | $1.94 | $0.0025 | $0.2522 |

USD, read from the RelaySwitch catalog when this page was built.

The flagships, for longer memory and stronger writing:

| Model | Model | Context | Input / M | Output / M | one 2K-in / 300-out turn | 100 turns |
| --- | --- | --- | --- | --- | --- | --- |
| [Claude Sonnet 4.6](https://relayswitch.io/models/claude-sonnet-4-6) | `claude-sonnet-4-6` | 1M tokens | $1.80 | $9.00 | $0.0063 | $0.63 |
| [Gemini 3.1 Pro Preview](https://relayswitch.io/models/gemini-3.1-pro-preview) | `gemini-3.1-pro-preview` | 1M tokens | $1.20 | $7.20 | $0.0046 | $0.456 |
| [DeepSeek V3.2](https://relayswitch.io/models/deepseek-v3.2) | `deepseek-v3.2` | not stated | $1.08 | $1.6801 | $0.0027 | $0.2664 |
| [Grok 4.6](https://relayswitch.io/models/grok-4.6) | `grok-4.6` | 500K tokens | $0.60 | $1.80 | $0.0017 | $0.174 |
| [GLM 5.3](https://relayswitch.io/models/glm-5.3) | `glm-5.3` | 1M tokens | $0.3178 | $0.9987 | $0.00094 | $0.0935 |

USD, read from the RelaySwitch catalog when this page was built.

## 05Context Length, and what a long chat costs

Every message resends the character, persona, lorebook entries and as much history as Context Length allows. Per message at three sizes, with a 300\-token reply:

| Context sent | Gemma 4 31B Fabled | GLM-5.3 Uncensored | Claude Sonnet 4.6 |
| --- | --- | --- | --- |
| 4,000 tokens | $0.0019 | $0.0014 | $0.0099 |
| 8,000 tokens | $0.0033 | $0.0025 | $0.0171 |
| 16,000 tokens | $0.0061 | $0.0048 | $0.0315 |

USD per message, read from the RelaySwitch catalog when this page was built.

Set Context Length at or under the model's window in the Context column, never above it: a prompt past the window is refused, not trimmed. The console's Usage page lists every request with its tokens and charge.

## 06Errors

-   `401`: the stored key is wrong or revoked. Edit the provider and paste it again.
-   `404` `route_not_found`: the API URL has no `/v1`, or Chat Completion Only? is off; if both are right, use `https://api.relayswitch.io/v1/chat/completions`. `model_not_found`: a typed display name; Fetch Models again.
-   `402`: the balance is empty or the key reached its budget.
-   "This model is having trouble responding": a sampler preset the model rejects, or a reply cut inside a reasoning step. Pick Stable; give a reasoning model 1,000 or more response tokens.
-   The reply ignores the character: still on the Free Queue. Open Connection Settings in the chat and pick your connection.

## 07Sources

Wyvern's own [guide page](https://app.wyvern.chat/guide) (read 2026-11-02) sends new users to AI Connections to add a provider and a connection; the field labels are the [February 2026 walkthrough](https://rpwithai.com/use-lorebary-on-wyvernchat/)'s, since the page itself sits behind a sign-in. Wyvern is in beta and renames fields between releases; match each by what it asks for.

## Questions

Does WyvernChat support a custom API?

Yes. AI Connections takes a Provider with an API URL Type of OpenAI, an API URL and a stored key, and a Connection that names the model on it. Any chat completions API fits.

What is the WyvernChat API URL for this key?

https://api.relayswitch.io/v1, with /v1 on the end. If a release posts to the address as typed, use https://api.relayswitch.io/v1/chat/completions.

Why does Fetch Models return nothing?

The URL is missing /v1, the key is wrong, or No Key Required is on. Fix the provider, save, fetch again; typing the id exactly also works.

Is WyvernChat free?

The site is free with a Free Queue and paid plans from $10 a month (its plans page, 2026-11-02). A connection on your own key costs per token on the key’s balance and nothing on Wyvern.

How much does a WyvernChat message cost on my own key?

One 2K-in / 300-out turn on GLM-5.3 Flash Uncensored costs $0.00032 today, or $0.0321 for 100. Context Length sets the input side once the chat fills it.

Related

-   [All guides](https://relayswitch.io/guides)
-   [SillyTavern](https://relayswitch.io/guides/sillytavern)
-   [JanitorAI](https://relayswitch.io/guides/janitorai)
-   [Chub](https://relayswitch.io/guides/chub)
-   [LoreBary](https://relayswitch.io/guides/lorebary)
-   [Roleplay chat](https://relayswitch.io/roleplay)
-   [Uncensored models](https://relayswitch.io/uncensored)
-   [Models and prices](https://relayswitch.io/models)
-   [How pricing works](https://relayswitch.io/pricing)
-   [Pay by card or crypto](https://relayswitch.io/pay-with-crypto)
-   [Docs](https://relayswitch.io/docs)

## Every model in one WyvernChat connection

Prepaid from $10 by card or crypto. No KYC, no subscription.

[Models](https://relayswitch.io/models)[Get a key](https://app.relayswitch.io/console)

