n8n · Gatelum
n8n connects with one OpenAI credential: the gateway address goes into Base URL.
Example setup
- Base URL
https://api.gatelum.com/v1- Your API key
glt_YOUR_KEY
Connection steps
Open Credentials → New → OpenAI.
Base URL gets our address with
/v1, API Key gets the Gatelum key.In the AI node choose this credential and enter the full model ID.
The AI Agent node fits too: it works through function calls.
Base URL: https://api.gatelum.com/v1
API Key: glt_YOUR_KEY
Model: deepseek/deepseek-v4.1-flashConnection check
Send one short request: it checks the key, the address and the chosen model.
curl https://api.gatelum.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer glt_YOUR_KEY" \
-d '{"model":"deepseek/deepseek-v4.1-flash","messages":[{"role":"user","content":"ping"}]}'A normal answer means the setup is correct. 401 points to the key, 404 to the address or model, 400 to the request format.
/v1 so it is not /v1/v1.functions. JSON output (response_format) is accepted on OpenAI-compatible routes, while a model reachable only through a direct Anthropic or Google connection answers unsupported_capability. The retired functions format behaves differently: it returns parameter_not_supported, so no parameter disappears without an explanation. Only models the catalog tags "Understands images" may accept pictures — they travel as an image_url part holding a data:image/png;base64,… address (PNG, JPEG and WebP are allowed, a file may weigh up to 5 MB, and a request carries at most 50). Remote addresses are never downloaded, while a model lacking the tag answers bad_request. Each error, bad_request as well as parameter_not_supported, states the reason plainly.Integration details
n8n uses OpenAI-compatible nodes. Create one credential with the Gatelum address and key, then choose the model by full ID in each AI node.
What to check
Send a short request from an AI node. 401 means the key, 404 the address or model, 400 the request format.
Choose a model for your task
Pick a task and a priority to see a recommended model, two alternatives, and the reason behind the choice.
Common questions
Why 404?
Check Base URL: it must not contain /v1/v1. n8n adds /chat/completions itself.
Does AI Agent work?
Yes — function calling is what this node depends on, and the gateway supports it.
Do I need a credential per model?
No, one credential serves every model; the ID is set in the node.