ULK Cloud

n8n OpenAI Compatible API | Base URL and OpenAI Chat Model Node

Create an OpenAI credential with the Base URL https://api.ulkcloud.com/v1 and your sk-ulk- key, connect an OpenAI Chat Model node, and turn off Use Responses API. With it on, n8n 2.49.6 sends a text field that ULK Cloud rejects with 400 Unsupported parameter: 'text'.

To use an OpenAI-compatible API in n8n, create an OpenAI credential, put the provider's address in its Base URL field, and connect an OpenAI Chat Model node to your AI Agent or chain. For ULK Cloud, the Base URL is https://api.ulkcloud.com/v1 and the API key starts with sk-ulk-. Then turn off Use Responses API in the OpenAI Chat Model node. n8n turns it on by default, and in Responses mode n8n sends a text field that ULK Cloud rejects with a 400 error.

Everything below was checked on November 26, 2026 against n8n 2.49.6 (the stable release that day): we read its source code and ran its workflows against the ULK Cloud API.

Step 1: Create an OpenAI credential with the ULK Cloud Base URL

n8n has no separate "OpenAI compatible" credential. The built-in OpenAI credential has a Base URL field, and every OpenAI Chat Model node that uses the credential sends its requests there.

  1. In n8n, open Credentials and create a new credential of the type OpenAI.
  2. Fill in the fields:
FieldValue
API KeyYour ULK Cloud key (sk-ulk-...), created in the ULK Cloud console
Organization ID (optional)Leave empty
Base URLhttps://api.ulkcloud.com/v1
Add Custom HeaderOff (see the FAQ for the one case where you need it)
  1. Save. n8n tests the credential by calling GET /models under the Base URL. When it shows Connection tested successfully, the key and the address are both right.

Type the Base URL with /v1 at the end and without a trailing slash. n8n adds /chat/completions or /models after it.

Step 2: Add the OpenAI Chat Model node and pick a model

The OpenAI Chat Model node is a sub-node. It does not run on its own, it plugs into the Chat Model input of an AI Agent, a Basic LLM Chain, or another AI root node.

  1. On the AI Agent (or Basic LLM Chain), click the + under Chat Model and choose OpenAI Chat Model.
  2. In Credential for OpenAI, choose the credential from Step 1.
  3. In Model, keep From List and open the list. When the Base URL is not OpenAI's own address, n8n shows every model the API returns, so the list contains ULK Cloud's model IDs. You can also switch to ID and type one.
  4. Turn off Use Responses API (the next section explains why).

The general-purpose models on ULK Cloud as of 2026-11-26 (prices in US dollars per 1 million tokens):

Model IDInput / outputContextMax output
deepseek-v4.1-flash$0.07 / $0.221,048,576393,216
glm-5.3-flash$0.12 / $0.201,000,000131,072
glm-5.3$0.40 / $1.301,000,000131,072

The list in n8n also shows glm-5.3-uncensored, glm-5.3-abliterated, and deepseek-v4.1-flash-abliterated. These add an instruction to every request, and its tokens are billed as input, so they cost more per call than the price alone suggests. The models page has the details.

Why "Use Responses API" has to be off

In the OpenAI Chat Model node of n8n 2.49.6 (node version 1.3), Use Responses API is on by default. With it on, n8n sends the request to POST /v1/responses through LangChain's OpenAI client (@langchain/openai 1.4.4), and that client always includes a text field in the body, even when it is empty:

{
  "model": "glm-5.3-flash",
  "input": [{ "type": "message", "role": "user", "content": "..." }],
  "stream": false,
  "text": {}
}

ULK Cloud supports the Responses API, but it rejects every parameter it does not implement instead of silently dropping it, and text is one of them. The request fails before it reaches a model. In n8n 2.49.6, a Basic LLM Chain with the default OpenAI Chat Model settings stopped with this error on the OpenAI Chat Model node:

Bad request - please check your parameters
Unsupported parameter: 'text'.

With Use Responses API off, n8n sends POST /v1/chat/completions instead, and the same Basic LLM Chain returned the model's answer. We also sent the requests n8n's client builds for a streaming prompt and for a tool call followed by the tool's result. All of them returned 200.

Turning the toggle off also hides Built-in Tools (Web Search, File Search, Code Interpreter) and the Responses-only options such as Conversation ID and Prompt Cache Key. Those features run on OpenAI's servers and do not exist on ULK Cloud anyway.

OpenAI Chat Model options that work with ULK Cloud

With Use Responses API off, the node's Options map to Chat Completions parameters. ULK Cloud accepts most of them.

OptionSent asULK Cloud
Sampling TemperaturetemperatureAccepted (0 to 2)
Top Ptop_pAccepted
Frequency Penaltyfrequency_penaltyAccepted
Presence Penaltypresence_penaltyAccepted
Maximum Number of Tokensmax_tokensAccepted. The default -1 sends nothing
Timeout, Max RetriesNot sentUsed by n8n only
Response Format: JSONresponse_formatRejected: Unsupported parameter: 'response_format'.
Reasoning Effort (after Model Supports Reasoning is on)reasoning_effortAccepted, but has no effect. ULK Cloud fixes the reasoning strength for each model
Extra BodyThe JSON you typeOnly parameters ULK Cloud accepts

Two values are worth setting:

  • Maximum Number of Tokens. When no limit is sent, ULK Cloud caps the answer at 32,768 tokens, and before the request runs it holds the most that answer could cost from your balance. A lower limit means a smaller hold, which matters when a workflow runs many items in parallel. n8n's field also stops at 32,768.
  • Timeout. The GLM and DeepSeek models think before they answer. If long answers time out, raise Timeout (in milliseconds; the field starts at 60000 when you add it).

For JSON output, leave Response Format on Text and connect a Structured Output Parser to the chain or agent, or describe the JSON shape in the prompt.

Using ULK Cloud with the AI Agent and tools

The AI Agent node calls tools through function calling, and ULK Cloud accepts tools, tool_choice, and parallel_tool_calls on Chat Completions. With Use Responses API off, an AI Agent with tools works as it does with OpenAI: the model returns a tool call, n8n runs the tool, and sends the result back in the next request.

On 2026-11-26 we ran an AI Agent (node version 3.1, the default in n8n 2.49.6) with glm-5.3-flash and the Calculator tool. The model called the tool, n8n sent the tool's output back, and the agent finished with a final answer. The same tool-call exchange, sent in the form n8n's client builds it, also worked with deepseek-v4.1-flash and glm-5.3.

Three points for agents:

  • Each step of an agent is a separate request. A workflow item where the agent calls two tools is three requests, and each is billed for its input and output tokens.
  • The rate limit is 1,000 requests per minute per API key. A large batch of items running agents in parallel can reach it. Split the batch, or use a second key for a second workflow.
  • Streaming works. When the AI Agent streams to a Chat Trigger, the LangChain client inside n8n sends stream and stream_options.include_usage, and ULK Cloud accepts both.

Common errors in n8n with ULK Cloud

n8n shows a general message for the HTTP status first, and ULK Cloud's own message below it. ULK Cloud's message names the cause. The text, API key, and model rows were reproduced in n8n 2.49.6 on 2026-11-26. The other rows pair n8n's message for that status with ULK Cloud's error.

n8n messageULK Cloud messageFix
Bad request - please check your parametersUnsupported parameter: 'text'.Turn off Use Responses API in the OpenAI Chat Model node
Bad request - please check your parametersUnsupported parameter: 'response_format'.Set Response Format back to Text
Authorization failed - please check your credentialsIncorrect API key providedPaste the key again into the credential
The resource you are requesting could not be foundThe model '...' does not existPick the model from the list instead of typing it
Payment required - perhaps check your payment details?Your balance is too low for this requestAdd credit, or lower Maximum Number of Tokens

When one API key sends more than 1,000 requests in a minute, ULK Cloud returns 429 (rate_limit_exceeded). n8n's OpenAI error handler turns every 429 into OpenAI: Rate limit reached, so that text does not mean OpenAI itself was called. Wait, or split the batch. ULK Cloud does not charge for requests it rejects with any of these errors.

FAQ

Do I need a community node for an OpenAI-compatible API in n8n?

No. The built-in OpenAI credential has a Base URL field, and the OpenAI Chat Model node sends requests to that address. A community node is only needed for features the OpenAI node does not have.

Where is the Base URL option in the OpenAI Chat Model node?

In the current node versions, the Base URL is in the OpenAI credential, not in the node's Options. The Base URL option inside the node only exists on version 1 of the node, in older workflows.

Can I use the OpenAI Responses API from n8n with ULK Cloud?

Not through the OpenAI Chat Model node in n8n 2.49.6, because its client always sends the text field. ULK Cloud's /v1/responses works from code that leaves text out, and it also rejects store: true and previous_response_id, since ULK Cloud does not store conversations.

Why does my workflow stop with "Your request appears to contain a secret"?

ULK Cloud stops requests that contain something that looks like an API key or a private key before they reach the model, and does not charge for them. If a workflow has to send such a value, turn on Add Custom Header in the credential, set Header Name to X-ULK-Allow-Secrets and Header Value to true.

Does the OpenAI node (not the Chat Model) work with ULK Cloud?

This article covers the OpenAI Chat Model sub-node used by AI Agents and chains. The separate OpenAI app node has image, audio, and file actions that ULK Cloud does not offer, so we have not tested it.