This node provides the authentication for all OpenAI models. It allows you to select the credentials that contain a valid OpenAI API key in their password field (the username is ignored). Credentials can be set on the workflow level or created inside the workflow e.g. with the Credentials Configuration node and fed into this node via flow variable.
When this node is run, it validates the OpenAI key by sending a request to the https://api.openai.com/v1/models endpoint. This request does not take up any tokens.
If you don't have an OpenAI API key yet, you can generate one at OpenAI .