Skip to main content

OpenAI (ChatGPT, Whisper, DALL-E)

With OpenAI (ChatGPT, Whisper, DALL-E) modules in Make, you can create chat or prompt completions, edits, and moderations, generate images, and call APIs.

To get started with OpenAI, you need an OpenAI account.

Note

Make modules support GPT-3.5, and GPT-4 models provided the user has access. If you do not have access, please join the waitlist to get access when capacity is available.

GPT-4 is currently in a limited beta version and is only accessible to those who have been granted access.

Connect OpenAI to Make

To connect OpenAI to Make, you must obtain an API Key and Organization ID from your account.

  1. Log in to your OpenAI (ChatGPT, Whisper, DALL-E) account.

  2. Click on your profile icon in the top right corner > View API Keys.

    OpenAI1.png
  3. Click Create new secret key, give the key a name (optional), and click Create secret key.

  4. Copy the secret key, store it in a safe place as you will not be able to view it again, and click Done.

  5. Go to your account settings page and copy your Organization ID to your clipboard.

    openai-2.png
  6. Log in to your Make account, add an OpenAI (ChatGPT, Whisper, DALL-E) module to a scenario, and click Create a connection.

  7. Optional: In the Connection name field, enter a name for the connection.

  8. In the API Key field, enter the secret key copied in step 4.

  9. In the Organization ID field, enter the organization ID copied in step 5 and click Save.

You have successfully established the connection. You can now edit your scenario and add more OpenAI (ChatGPT, Whisper, DALL-E) modules. If your connection needs reauthorization at any point, follow the connection renewal steps here.

Actions

Creates a completion for the provided prompt or chat

See the OpenAI model endpoint compatibility section for the list of supported models.

Note

If you do not have access to the GPT-4 models, please join the waitlist to get access when capacity is available.

GPT-4 is currently in a limited beta version and is only accessible to those who have been granted access.

Connection

Establish a connection to your OpenAI account.

Select Method

Select a method to create a completion.

Model

Select or map the model you want to use.

Note

Ensure you have access to the model you want to work with. Only models available for the account are listed for selection.

Prompt

Enter the prompt for which you want to generate the completions.

Messages

Add the messages for which you want to create the completion by selecting the role and entering the message content.

For more information about chat completion, refer to the OpenAI documentation.

Max Token

The maximum number of tokens to generate in the completion. the default value is 16.

Temperature

Specify the sampling temperature to use.

A higher value means the model will take more risks. Try 0.9 for more creative applications and 0 (argmax sampling) for ones with a well-defined answer. Defaults to 1.

Top p

An alternative to sampling with temperature is 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. Defaults to 1.

N

The number of completions to generate for each prompt. Defaults to 1.

Creates a new edit for the provided input, instruction, and parameters.

Connection

Establish a connection to your OpenAI account.

Model

Select or map the model for which you want to create the edit.

Note

Ensure you have access to the model you want to work with. Only models available for the account are listed for selection.

Instruction

Enter instructions that tells the model about the process of editing the input.

Input

Enter the text to use as a starting point for creating the edit.

Temperature

Specify the sampling temperature to use.

A higher value means the model will take more risks. Try 0.9 for more creative applications and 0 (argmax sampling) for ones with a well-defined answer. The default value is 1.

Top p

Specify an alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.

A value of 0.1 means only the tokens comprising the top 10% probability mass are considered.

The default value is 1.

N

Specify the number of edits to generate for the input and instruction. The default value is 1.

Classifies if text violates OpenAI's Content Policy.

Connection

Establish a connection to your OpenAI account.

Input

Enter the text for which you want to create the moderation. The module will classify the content against OpenAI's Content Policy.

Generates an image with DALL E given a prompt.

Connection

Establish a connection to your OpenAI account.

Prompt

Enter details of the images you want to generate. The maximum number of characters allowed is 1000.

Size

Select or map the size of the images to generate. It must be one of 256x256512x512, or 1024x1024.

Response Format

Select or map the format in which the generated images are returned.

If you select Base64-encoded PNG, the raw PNG image can be obtained by using the IML function, toBinary(<module_no>.data[].b64_json; base64) in the subsequent modules.

N

Enter the number of images to generate. Enter a number between 1 and 10.

Creates a translation of an audio into English.

Connection

Establish a connection to your OpenAI account.

File Name

Enter the name of the file you want to translate.

File Data

Enter the data of the file you want to translate.

Model

Select or map the model you want to use. Refer to the OpenAI Audio API documentation for information on available models.

Note

Ensure you have access to the model you want to work with. Only models available for the account are listed for selection.

Prompt

Enter text to guide the model's style or continue a previous audio segment. (Optional) The prompt should be in English.

Temperature

Enter a sampling temperature between 0 and 1. Higher values, such as 0.8, will make the output more random. Lower values, such as 0.2, will make it more focused and deterministic.

Creates a transcription of an audio to text.

Connection

Establish a connection to your OpenAI account.

File Name

Enter the name of the file you want to transcribe.

File Data

Enter the data of the file you want to transcribe.

Model

Select or map the model you want to use. Refer to the OpenAI Audio API documentation for information on available models.

Note

Ensure you have access to the model you want to work with. Only models available for the account are listed for selection.

Prompt

Enter text to guide the model's style or continue a previous audio segment. (Optional) The prompt should be in the same language as the audio.

Temperature

Enter a sampling temperature between 0 and 1. Higher values, such as 0.8, will make the output more random. Lower values, such as 0.2, will make it more focused and deterministic.

Language

Enter the two letter ISO code of the input audio's language.

Identifies specified information in a prompt's raw text and returns it as structured data.

Connection

Establish a connection to your OpenAI account.

Model

Select or map the model you want to use to transform text into structured data.

Note

Ensure you have access to the model you want to work with. Only models available for the account are listed for selection.

Text to Parse

Enter the text containing the data that you want to transform.

Prompt

Enter a short description explaining what type of data should be extracted from the text entered above.

Structured Data Definition

Enter parameters or map the way in which the structured data should be returned.

Parameter Name

Enter a name for the parameter. Adhere to the following rules:

1. The first character must be either a letter or an underscore.

2. Do not include any commas or spaces.

3. Do not use any special symbols, other than an underscore.

Description

Enter a short description of the parameter.

For example, if would like OpenAI to search for coordinates in the text, you can enter Latitude and Longitude of the location.

Data Type

Select or map the data type format in which the parameter is returned.

If there will be multiple occurrences of similar data types, select an Array option. For example, if there are coordinates of multiple locations to be returned, select Array (text) .

Value Examples

Enter or map examples of possible values to be returned. The more examples you provide, the more accurate the response will be.

Is Parameter Required?

Select or map whether the parameter is required.

When selecting yes, OpenAI will be forced to generate a value in the output, even if no value is detected in the text.

Performs an arbitrary authorized API call.

Note

For the list of available endpoints, see OpenAI ChatGPT API Documentation.

Connection

Establish a connection to your OpenAI account.

URL

Enter a path relative to https://api.openai.com. For example, /v1/models.

Method

GET

to retrieve information for an entry.

POST

to create a new entry.

PUT

to update/replace an existing entry.

PATCH

to make a partial entry update.

DELETE

to delete an entry.

Headers

Enter the desired request headers. You don't have to add authorization headers; we already did that for you.

Query String

Enter the request query string.

Body

Enter the body content for your API call.

Examples of Use - List Models

The following API call returns all pages from your OpenAI account.

URL:/v1/models

Method: GET

openai-5.png

The search matches can be found in the module's Output under Bundle > Body > data

In our example, 69 models were returned:

openai-4.png