401 - Authorization failed OpenAI-Organization header should match organization for API key

I try using the OpenAi Message A Model node and when i connect to my OpenAi Credential, i could not load any openAi model from the model list. When i go to check on my OpenAi credential settings, there is a connection error but then i can confirm the API key is correct. I have even tried re-create the new API key several times but it failed the same.


Could you please advise?

Information on your n8n setup

  • n8n version 1.99.1
  • **Running n8n via n8n cloud

Hey @KaizenAI hope all is well.

Does your API key belong to an organization or is this for a personal account? If there is no organization, remove the “Project Key” text from the Organization ID field in the credentials.

2 Likes

thanks @jabbson and it works like a charm right after I’ve removed it. What a silly mistake..

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