OpenAI Authenticator

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 (right-click the workflow in the KNIME Explorer and click "Workflow Credentials") or created inside the workflow e.g. with the Credentials Configuration node and fed into this node via a flow variable.

Alternatively, you can access an OpenAI compatible API via OAuth authentication by connecting a credential port object to the dynamic input port. The base URL needs to be set accordingly.

When this node is executed, it validates the OpenAI API key by sending a request to the https://api.openai.com/v1/models endpoint. This request does not consume any tokens.

If you do not have an OpenAI API key yet, you can generate one at OpenAI.

Options

OpenAI base URL

Sets the destination of the API requests to OpenAI or an OpenAI compatible API.

Custom headers

Any custom headers to include in requests to the API.

Header:

  • Key : Key of the header.
  • Value : Value of the header.
Verify settings

Whether to verify the settings by calling the list models endpoint.

Credentials

OpenAI API key

The credentials containing the OpenAI API key in its password field (the username is ignored). Only shown if the optional credential port is not connected.

Input Ports

Icon

Credentials for connecting to the OpenAI API.

Output Ports

Icon

Validated authentication for OpenAI.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.