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:
After logging into the application, do the following:
On the left menu, navigate to the Create chat completionand right-click on it. This will lead you to a Create chat completion page.
On the Example request part of the page, navigate to the Default tab.
Copy and paste the curlto the
Copy and paste the model to the
After completing the previous step your OpenAI API Integration page will look like the following image:
OpenAI API URL is the copied curl (part 3 of the previous step)
OpenAI API model is the copied model (part 4 of the previous step)
Alternatively, you may choose a different OpenAI API model:
Select the menu as shown in the image below.
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:
Navigate to the dashboard.
Open the API keys page.
Click on Create new Secret Key button.
After successfully opening the Create New Secret Key dialog, do the following:
Insert preferred Secret Key name into “Name” field.
Select preferred Project.
Select “All” for Permissions options.
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:
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 OpenAI API secret key field.
Copy the newly created API Key to the OpenAI API secret key field.