AI Key failutre

Hey,

I recently started the KodeKloud course Master n8n: Zero to Hero!

During my first project I am getting a failure when trying to add the API key from KodeKloud KeyKode.

I am following all instructions but N8N claims API key is not correct.

what could be the issue, is the problem my configuration, kodecloud API Key for OPEN AI chat gpt or something about N8N?

Hi @gurmann

What error are you seeing? Sharing a screenshot would be really helpful.

image

I tried choosing both from ID and list to verify this is a key issue.

I’ll admit that your graphic really does not tell us what you’re doing, so we can’t tell you why you’re getting an error :frowning:

  1. Which lab are you doing in the n8n course? A lab link might help.
  2. If you’re running an execution in n8n, can we see an image of what you’re doing?

In general, if you’re using a KodeKey, then you’re:

  • selecting a model in the drop down.
  • You copy the base URL as displayed in KodeKey
  • You copy the API key
  • For the model name, you paste in the text used in the “Quick Start” section below in the page (curl/nodejs/python), which is a string like “openai/gpt-4o-2024-11-20”. In the n8n UI, it’s an “expression”, not what you see in the drop down.