Skip to content

n8n with Keln

Use Keln models in n8n workflows through one OpenAI credential. Every OpenAI Chat Model node with that credential sends its requests to Keln.

What you need to start

  • n8n, cloud or self-hosted.
  • A Keln API key. Sign up at app.keln.ai, then open Keys → Create key.

Connect n8n to Keln

1. Create the Keln credential

In n8n, click + → New credential, search for OpenAI and click Continue. Fill in:

Field Value
API Key sk-keln-… your key
Organization ID leave empty
Base URL https://api.keln.ai/v1

Rename the credential to Keln and save it.

n8n shows Connection tested successfully for any key. If your first run returns a 401 error, check the key.

The n8n credential named Keln with a masked API key, the base URL https://api.keln.ai/v1 and the message Connection tested successfully

2. Add an OpenAI Chat Model node

In your workflow, add an AI Agent or Basic LLM Chain node, then attach an OpenAI Chat Model node as its model. In Credential, select Keln.

The n8n Language Models list with OpenAI Chat Model found by search, next to an AI Agent node

3. Choose a Keln model

Model starts on an OpenAI model. Open the list, which n8n loads from Keln, and choose a Keln model, for example zai-org/glm-5.3. If the model is missing from the list, switch Model to By ID and type the ID.

Turn Use Responses API off. n8n then shows the exact token count of each run.

n8n sends no reasoning setting, so Keln runs the model at its deepest thinking level. To lower it, add the Extra Body option and enter {"reasoning_effort": "low"}.

The OpenAI Chat Model node with the Keln credential, the model zai-org/glm-5.3, Use Responses API off and an Extra Body line

4. Run the workflow

Click Open chat and send a message.

A finished n8n run: the chat trigger, AI Agent and OpenAI Chat Model nodes with green ticks, and the log line Answered by zai-org/glm-5.3

Before your first run, add credit under Billing → Add credit. Keln returns a 402 error if your balance is empty.

Models

n8n works with all Keln chat models. See Models & pricing for the full list and pricing.

The Keln list also holds models that do not chat: decision, speech, transcription, embedding and rerank models. These do not work in the OpenAI Chat Model node.

Usage

Your Keln Usage page shows your spend, tokens, latency and error rate. Keln stores metadata only (ZDR).

The Keln Usage page with sample data: spend, requests, tokens, time to first token, error rate and a spend-by-day chart

Where to go next

Try Keln

Create a Keln account and API key to run open models in n8n.

Get an API key Models & pricing ↗