Use Appsmith with a private, uncensored API

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

Give Appsmith 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 Appsmith 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 an Appsmith datasource. Appsmith keeps it encrypted on its server, which calls Morse, so your app's users never see it.

Set up Appsmith

  1. Make an Authenticated API datasource

    Choose Create datasource, and under APIs, choose Authenticated API. Fill in:

    • URL: https://inference.trymorse.ai/v1
    • Authentication type: Bearer token
    • Bearer token: your key, without the word Bearer

    Choose Save. Don't use the OpenAI datasource: it calls OpenAI's address whatever you set.

  2. Add a query that calls Morse

    On the datasource, add a query named AskMorse. Set the method to POST, the path to /chat/completions, and the header content-type to application/json. Give it this body:

    Body
    {
      "model": "qwen/qwen3-coder",
      "messages": [{ "role": "user", "content": {{Input1.text}} }],
      "max_tokens": 1024
    }

    In the query's Settings, set API timeout to 60000, its most. Appsmith waits 10 seconds by default.

  3. Show the response

    Bind a Text widget to {{AskMorse.data.choices[0].message.content}}, and run the query from a button. Don't call Morse with fetch in a JS Object: that runs in the browser, which Morse's API refuses.

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 Run on the query. A 200 with choices[0].message.content shows that Morse took the request. Appsmith's datasource test sends nothing, so Run is the check.

Keep it private

Set a privacy floor on Appsmith'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
404 not_foundKeep /v1 on the datasource's URL, and use /chat/completions as the path.
The query times outLower max_tokens, or pick a faster model. Appsmith stops waiting after 60 seconds at most.
401 invalid_api_keyCheck the key you gave Appsmith 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.