View Categories

How to Set Up the OpenAI API Integration

OpenAI API Integration is necessary integration for using AI to generate questions inside the question pools. To learn how to generate questions using AI please refer to this article. This article will explain how to set up OpenAI API Integration.

Setting up the OpenAI API Integration

To access the tab to set up OpenAI API integration on the Youtestme application, do the following:

  1. Click on the System tab in the main menu.
  2. Select the Integrations tab.
  3. Select the OpenAI API tab.

For the next step, log in with the OpenAI account at https://platform.openai.com.

After logging into the application, do the following:

  1. On the left menu, navigate to the Create chat completion and right-click on it. This will lead you to a Create chat completion page.
  2. On the Example request part of the page, navigate to the Default tab.
  3. Copy and paste the curlto the
  4. Copy and paste the model to the

 

After completing the previous step your OpenAI API Integration page will look like the following image:

  1. OpenAI API URL is the copied curl (part 3 of the previous step)
  2. OpenAI API model is the copied model (part 4 of the previous step)

Alternatively, you may choose a different OpenAI API model:

  1. Select the menu as shown in the image below.
  2. Select one of the provided models. Notice that the openAI API models that we recommend are gpt-4o and gpt-3.5-turbo.

After successfully completing the previous steps, do the following:

  1. Navigate to the dashboard.
  2. Open the API keys page.
  3. Click on Create new Secret Key button.

After successfully opening the Create New Secret Key dialog, do the following:

  1. Insert preferred Secret Key name into “Name” field.
  2. Select preferred Project.
  3. Select “All” for Permissions options.
  4. Click on the “Create secret key” button.

After successfully generating a field, the new “Save your key” dialog will appear, and the pop-up message will inform you that the API key has been generated. While on the “Save your key” dialog, do the following:

  1. Click on the “Copy” button to copy the secret key. This key can only be copied on this dialog. If you fail to copy the key in this step, you will need to generate a new secret key.

After successfully copying the secret key, go back to the OpenAI API integration on the Youtestme application and copy the key into the

  1. Copy the newly created API Key to the

Powered by BetterDocs