# 9router in n8n

**URL:** <https://community.n8n.io/t/9router-in-n8n/306515>\
**Category:** Questions\
**Created:** [August 6, 2026, 9:08pm UTC](https://community.n8n.io/t/9router-in-n8n/306515 "2026-08-06T21:08:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![egaprana\_fernando](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/egaprana_fernando/32/83747_2.png) [@egaprana\_fernando](https://community.n8n.io/u/egaprana_fernando)\
**Post date:** [August 6, 2026, 9:08pm UTC](https://community.n8n.io/t/9router-in-n8n/306515/1 "2026-08-06T21:08:56Z")

</div>

Does n8n support 9router? I know there isn’t a dedicated native node for it, but can I connect it using the OpenAI node by overriding the Base URL, or should I use the HTTP Request node instead? Has anyone set this up before? Thanks

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [August 6, 2026, 9:09pm UTC](https://community.n8n.io/t/9router-in-n8n/306515/2 "2026-08-06T21:09:34Z")

</div>

Hey @egaprana_fernando, while you wait for a response, here are some things that might help:

> **Suggested resources**
>
> _Automatically matched to your question._
> 
> **Docs:**
> 
> - [OpenRouter credentials](https://docs.n8n.io/integrations/builtin/credentials/openrouter)
> - [OpenAI](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.openai#related-resources)
> - [OpenRouter Chat Model](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenrouter)
> 
> **Forum:**
> 
> - [How to create AI agent using Alibaba LLM (Qwen-plus)](https://community.n8n.io/t/248502)
> - [OpenAI Node Authorization is not working](https://community.n8n.io/t/300779)
> - [O3-deep-research in n8n - is it possible?](https://community.n8n.io/t/145480)

@mohamed3nan, @kjooleng, @Simon_Quant - you’ve helped with similar issues before, can you take a look?

_Automatically suggested by n8n’s community bot. It’s a pilot - [please share feedback here](https://community.n8n.io/t/pilot-forum-helper-bot/304669)._

---

<div class="post-metadata">

**Author:** ![Anshul\_Namdev](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anshul_namdev/32/178229_2.png) [@Anshul\_Namdev](https://community.n8n.io/u/Anshul_Namdev)\
**Post date:** [August 6, 2026, 9:11pm UTC](https://community.n8n.io/t/9router-in-n8n/306515/3 "2026-08-06T21:11:41Z")

</div>

Hi @egaprana_fernando Welcome!  
The OpenAI credential is enough, no HTTP Request node needed. 9router speaks the OpenAI protocol and takes the same Bearer key, so create an OpenAI credential, put your 9router key in API Key, set Base URL to your 9router address ending in /v1, and attach it to an OpenAI Chat Model sub-node under an AI Agent or Basic LLM Chain. Prefer that sub-node over the OpenAI app node’s “Message a model” operation, which has been reported to 404 against custom base URLs even when the credential test passes.  
The model dropdown reads your 9router /v1/models, so if a routed model does not show up there, switch the Model field to an expression and type the model ID.  
9router defaults to [http://localhost:20128/v1](http://localhost:20128/v1), which n8n cannot reach. On Cloud it has to be a public URL, and on self-hosted Docker use [http://host.docker.internal:20128/v1](http://host.docker.internal:20128/v1) or the compose service name instead of localhost.  
HTTP Request is only worth it if you want 9router’s routing headers like prompt\_budget, since the chat model node has nowhere to add custom headers.  
See this:

> [@Chat and LLM Support for OpenAI Proxy Server? \[GOT CREATED\]](https://community.n8n.io/t/chat-and-llm-support-for-openai-proxy-server-got-created/40574/2):
>
> use the standard `OpenAI Chat Model` and point it to your LiteLLM Proxy server

Picking and wiring up model providers in general:

> **[AI Inference Providers for n8n: Pricing and Comparison](https://axshul.site/n8n/guide/ai-inference-providers/)**
>
> Which AI inference provider should you use in n8n? Compare pricing, speed, model range, and integration quality across 8 providers.

---

<div class="post-metadata">

**Author:** ![kjooleng](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kjooleng/32/184045_2.png) [@kjooleng](https://community.n8n.io/u/kjooleng)\
**Post date:** [August 7, 2026, 5:00am UTC](https://community.n8n.io/t/9router-in-n8n/306515/4 "2026-08-07T05:00:09Z")

</div>

> [@egaprana\_fernando](#):
>
> Does n8n support 9router?

Since 9router is designed to be a drop-in replacement for OpenAI endpoints, the **OpenAI node** in n8n is the easiest and most efficient method.

- **How to do it:**
  1. Add an **OpenAI node** to your workflow.
  2. Create a new **OpenAI API Credential**.
  3. Look for the **Base URL** field (in some versions of n8n, you may need to click on “Advanced” or “Additional Fields” to see the Base URL option).
  4. Override the default OpenAI URL with your 9router endpoint (e.g., `http://localhost:20128/v1` if running locally, or your hosted URL).
  5. For the **API Key** , you can usually enter any placeholder string (like `sk-123`) if 9router doesn’t require a specific key, or use the actual key if you’ve configured one in 9router.

If you need to use specific 9router features that aren’t exposed by the standard OpenAI node (like specialized routing headers or non-standard payload structures), use the **HTTP Request node**.

- **How to do it:**
  1. Set the method to `POST`.
  2. Set the URL to your 9router endpoint (e.g., `http://your-ip:20128/v1/chat/completions`).
  3. Set the Authentication to “Header Auth” or “None” depending on your 9router setup.
  4. In the **Body** , manually construct the JSON payload (e.g., `{"model": "...", "messages": [...]}`).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [November 5, 2026, 5:00am UTC](https://community.n8n.io/t/9router-in-n8n/306515/5 "2026-11-05T05:00:43Z")

</div>

Closed on November 5, 2026, 5:00am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
