Connect Dyad to the private Morse API, uncensored models included: set it up, pick a model, and check it works. Updated December 2, 2026.

Page: https://trymorse.ai/inference/docs/tools/dyad

# Use Dyad with a private, uncensored API

Give [Dyad](https://www.dyad.sh) the base URL `https://inference.trymorse.ai/v1` and a Morse API key. It calls the OpenAI API.

The same key also calls 12 uncensored models. [See them](https://trymorse.ai/inference/uncensored).

## Before you start

Make a key for Dyad alone, with a spend limit, under **API keys** in the [console](https://console.trymorse.ai). Then one tool can't spend all your credits. See [Limit a key](https://trymorse.ai/inference/docs/authentication#limits).

You'll paste the key into Dyad's settings. Dyad keeps it on your computer, in your system's keychain where it can.

## Set up Dyad

1. Add Morse as a custom providerIn Dyad, open **Settings**. Under **Model Providers**, choose **Add custom provider**, and fill in:**Provider ID**: `morse`**Display Name**: Morse **API Base URL**: `https://inference.trymorse.ai/v1`Choose **Add Provider**. Dyad can't change a provider's ID later.
2. Save your keyOpen the Morse provider. Under **API Key from Settings**, paste your key, and choose **Save Key**.
3. Add modelsUnder **Models**, choose **Import Models**, tick `qwen/qwen3-coder`, and add it. Or choose **Add Custom Model**, and fill in:**Model ID**: `qwen/qwen3-coder`**Name**: any name you like **Max Output Tokens**: `32768`**Context Window**: `262144`An imported model has no output limit or context window, so edit it to set both.

## Which model to pick

| Model | Context | Input / output | Why |
| --- | --- | --- | --- |
| `qwen/qwen3-coder` | 262.1K | $0.375 / $1.25 | Qwen's coding model. It doesn't reason, so it starts writing sooner. |
| `moonshotai/kimi-k3.1-pro` | 1M | $2 / $10 | Reasons, and reads images. |
| `z-ai/glm-5.3` | 1M | $1.40 / $4.40 | Reasons, and takes tools at TEE too. |
| `deepseek/deepseek-v4-pro-0813` | 1M | $1.32 / $3.96 | Reasons, at a lower price. |
| `z-ai/glm-5.3-flash` | 1M | $0.15 / $0.50 | Cheap and fast for small edits, and takes tools at TEE too. |

Prices are in dollars per million tokens, on each model's default endpoint. Every model is on the [models page](https://trymorse.ai/inference/models).

## Check it works

In a chat, open the model menu, and pick `qwen/qwen3-coder` under Morse. Send a message in **Build** mode. The app's code comes back from Morse.

## Keep it private

Set a privacy floor on Dyad's key to hold it to a tier, such as TEE. Without a floor, a request runs on its model's default privacy tier. The floor only decides which endpoints serve the requests. See [Privacy tiers](https://trymorse.ai/inference/docs/privacy-tiers) and [Provider routing](https://trymorse.ai/inference/docs/provider-routing).

On a plain API call, TLS ends inside Morse's door, an attested enclave, which seals the request before the relay receives it. A plain client checks the door's certificate, not its attestation. To check the attestation yourself, see [Sealed API keys](https://trymorse.ai/inference/docs/sealed-api-keys).

## If something goes wrong

| What you see | What to do |
| --- | --- |
| Import Models shows a 401 | Save the key in full on the Morse provider first. Dyad sends it with the model list request. |
| `401 invalid_api_key` | Check the key you gave Dyad in full, and that it isn't revoked. |
| `402 insufficient_balance` or `key_spend_limit_reached` | Add credits, or raise the key's spend limit. A request holds credit for its output limit before it starts: see [Holds](https://trymorse.ai/inference/docs/pricing#holds). |
| `404 model_not_found` | Use a model's id exactly as the table above writes it, with the part before the slash. |

Every code is in [Error codes](https://trymorse.ai/inference/docs/api/errors). For other tools, see [Tools and coding agents](https://trymorse.ai/inference/docs/tools).
