Integrations
Connect n8n to bnrouter
Use n8n’s OpenAI credentials with a custom Base URL, or call chat completions via HTTP Request.
Updated: 2026-10-27 · Verification: docs_checked (vendor docs cross-check; UI not E2E lab-verified)
Answer
In n8n, set OpenAI credentials Base URL to https://console.bnrouter.com/v1 and use your bnrouter API key. Prefer the HTTP Request node against https://console.bnrouter.com/v1/chat/completions when the built-in node’s Base URL field is unclear for your n8n version.
https://console.bnrouter.com/v1
Prerequisites
Self-hosted or cloud n8n with credential edit rights; bnrouter API key; MODEL_ID from GET /models.
Checked versions: n8n OpenAI / HTTP Request nodes (docs checked 2026-10-27)
Protocols: OpenAI-compatible chat completions, HTTP Request
Steps
- Create OpenAI credential with custom Base URL
API Key = bnrouter key. Base URL / API URL = https://console.bnrouter.com/v1. Do not append /chat/completions here if the node adds paths itself.
- Optional: HTTP Request smoke test
POST https://console.bnrouter.com/v1/chat/completions with Authorization: Bearer <key>, JSON body { "model": "MODEL_ID", "messages":[{"role":"user","content":"ping"}], "stream": false }.
Expected success
Node returns assistant content without 4xx auth/path errors.
Troubleshooting
- 401: Fix credential API key.
- 404: Base URL duplicated /v1 or wrong full path in HTTP Request.
- 429: Back off or top up quota.
- stream: Use stream:false for first test in HTTP Request.
Sources
- n8n — OpenAI credentials (docs; Base URL field may be understated) (checked 2026-10-27)
- n8n source — OpenAiApi.credentials.ts (Base URL property, default …/v1) (checked 2026-10-27)
Notes
docs_checked 2026-10-27 via n8n public docs. Node UIs differ by n8n version — treat as documentation cross-check, not E2E.