Error adding OpenRouter API

Describe the problem/error/question

I am trying to add API key from the OpenRouter and getting error.

What is the error message (if any)?

Error: “Couldn’t connect with these settings”. Base url I am using is this one: Model Not Found | OpenRouter

Seems like everything should be correct. Why there is an error?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi,

Are you using the openrouter node or the openai node?
As the field organisation id shows, it seems you are using the openai node.
Perhaps you can try to use the new openrouter node instead.

I tested the openai node with the same base url and it also works.
The url is correct and working for me, so the next step would be the API key.
Can you try to recreate a new API key and try again?

If not any of the above, the question is if you are hosting locally or using n8n cloud service.

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