Skip to main content

OpenAI Connector

OpenAI Interact with OpenAI's models including GPT-4, GPT-3.5 Turbo, and DALL·E 3

Connections

OpenAI API Key

Connect to OpenAI using an API key

InputCommentsDefault
API KeyGenerate an API key at https://platform.openai.com/account/api-keys
OrganizationYour organization ID. If you have just one organization, this value is optional.

Actions

Create Chat Completion

Create a completion for the chat message

InputCommentsDefault
Connection
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.gpt-3.5-turbo
Messages
[
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Who won the world series in 2020?"
},
{
"role": "assistant",
"content": "The Los Angeles Dodgers won the World Series in 2020."
},
{
"role": "user",
"content": "Where was it played?"
}
]
TemperatureWhat sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.1
top_pAn alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.1
Number of choicesHow many chat completion choices to generate for each input message.1
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Create Image

Create image(s) given a prompt

InputCommentsDefault
Connection
PromptA text description of the desired image(s). The maximum length is 1000 characters.
Number of ImagesThe number of images to generate. Must be between 1 and 10.1
Image SizeThe size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.1024x1024
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Create Response

Create a response using the responses endpoint

InputCommentsDefault
Connection
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.gpt-4.1
InputThe input text to process
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Get Model by ID

Get model by ID

InputCommentsDefault
Connection
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

List Models

List all available models

InputCommentsDefault
Connection
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Raw Request

Send raw HTTP request to OpenAI

InputCommentsDefault
Connection
URLInput the path only (/v1/images/generations), The base URL is already included (https://api.openai.com). For example, to connect to https://api.openai.com/v1/images/generations, only /v1/images/generations is entered in this field./v1/models
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false