Use Windmill with a private, uncensored API

Connect Windmill to the private Morse API, uncensored models included: set it up, pick a model, and check it works.

Give Windmill 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.

Before you start

Make a key for Windmill alone, with a spend limit, under API keys in the console. Then one tool can't spend all your credits. See Limit a key.

You'll paste the key into a Windmill resource. Windmill keeps it as an encrypted secret variable, and calls Morse from its server and workers.

Set up Windmill

  1. Make a Custom AI resource

    In Resources, add a resource of type customai, and fill in:

    • api_key: your key
    • base_url: https://inference.trymorse.ai/v1

    Leave headers empty. Use customai, not openai: Windmill lists only OpenAI's models for an openai resource.

  2. Turn on Custom AI for Windmill AI

    Open Workspace settings > Windmill AI. Under AI Providers, turn on Custom AI, and pick the resource under Resource. Then set:

    • Enabled models: qwen/qwen3-coder, from the list Windmill loads from Morse
    • Default chat model: qwen/qwen3-coder
    • Model context windows: 262144 for it
    • Model output limits: 32768 for it

    Choose Save AI settings.

  3. Use it in a flow's AI agent step

    In an AI agent step, pick the customai resource under Resource, and qwen/qwen3-coder under Model. The step's worker calls Morse, so workers need outbound access to inference.trymorse.ai.

Which model to pick

ModelContextInput / outputWhy
qwen/qwen3-coder262.1K$0.375 / $1.25Qwen's coding model. It doesn't reason, so it starts writing sooner.
moonshotai/kimi-k3.1-pro1M$2 / $10Reasons, and reads images.
z-ai/glm-5.31M$1.40 / $4.40Reasons, and takes tools at TEE too.
deepseek/deepseek-v4-pro-08131M$1.32 / $3.96Reasons, at a lower price.
z-ai/glm-5.3-flash1M$0.15 / $0.50Cheap 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.

Check it works

Choose Test key beside Resource. Windmill sends Morse a short chat completion, and shows Valid key when Morse returns a response.

Keep it private

Set a privacy floor on Windmill'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 and 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.

If something goes wrong

What you seeWhat to do
Enabled models stays emptyCheck the key in the resource. Windmill sends it with the model list request, and Morse refuses a wrong key.
Windmill AI's responses stop at about 8,000 tokensRaise the model's limit under Model output limits. Windmill sends Custom AI models 8,192 tokens unless you set one.
401 invalid_api_keyCheck the key you gave Windmill in full, and that it isn't revoked.
402 insufficient_balance or key_spend_limit_reachedAdd credits, or raise the key's spend limit. A request holds credit for its output limit before it starts: see Holds.
404 model_not_foundUse a model's id exactly as the table above writes it, with the part before the slash.

Every code is in Error codes. For other tools, see Tools and coding agents.