Search docs...

Start typing to search documentation

n8n
n8n

n8n Setup Guide

Point the n8n OpenAI credential at UnoRouter and run any model in AI Agent workflows.

Overview

The OpenAI credential in n8n has a Base URL field. Set it to UnoRouter, and the OpenAI Chat Model node can drive AI Agent and Basic LLM Chain nodes with any model.

Quick Config

Paste these into the client. Your key auto-fills when signed in.

text
Base URL: https://api.unorouter.com/v1
API Key: YOUR_API_KEY

Sign in to auto-fill your API key

Compatibility

Chat CompletionsTool calling

Step-by-step setup

  1. 1
    Create the credential

    Go to Credentials, create an OpenAI credential and fill in API Key and Base URL. Leave Organization ID empty. Saving tests the connection against the model list.

    text
    API Key: YOUR_API_KEY
    Base URL: https://api.unorouter.com/v1

    Sign in to auto-fill your API key

  2. 2
    Add an OpenAI Chat Model

    On an AI Agent or Basic LLM Chain node, add the OpenAI Chat Model sub node and select the new credential.

  3. 3
    Choose the model

    Pick a model From List, or switch to ID and type the model id.

    text
    glm-5.3-flash:free
    claude-sonnet-5-5

    Sign in to auto-fill your API key

  4. 4
    Turn off the Responses API

    Turn off Use Responses API on the OpenAI Chat Model node so it calls Chat Completions, which every UnoRouter chat model supports.

Best free models for n8n

Free models that work here. Paste any model id into the client.

Gotchas

  • The Message a Model operation of the OpenAI app node always calls the Responses API, which most UnoRouter models do not serve. Use AI Agent or Basic LLM Chain with OpenAI Chat Model instead.
  • Built-in OpenAI tools such as Web Search, File Search and Code Interpreter need the Responses API and do not work here. Tools you connect to the AI Agent node work with any model that supports tool calling.
Generate API KeyModels