✨AI Lab
Pro Plus Feature
AI Lab is a powerful add-on designed to simplify and accelerate course creation within your learning management system. By integrating artificial intelligence into the content-building process, AI Lab allows instructors to generate entire courses, lessons, quizzes, assignments, and even visuals from a single input.
Whether you are creating a course from scratch or enhancing existing content, AI Lab helps you work faster, smarter, and with more creativity. It removes the manual workload and lets you focus on teaching, while AI cares for structure, flow, and variety.
✅ With AI Lab, you can:
Generate full course structures with titles, descriptions, and outlines
Create interactive and well-organized lessons
Automatically produce quizzes and assignments aligned with your content
Add relevant images to your lessons using AI image generation
Instantly rewrite or improve any text content across your course
This documentation will guide you through installing the add-on, using each feature effectively, and customizing the output to fit your teaching style.
AI Lab Addon Settings
AI Lab addon can be activated by following WP Dashboard > MS LMS > Pro Addons > AI Lab:

Once you have enabled the add-on, you can reach its settings by clicking the gear ⚙️ icon or by following WP Dashboard > MS LMS > Settings > AI Lab:

AI Lab Provider - choose one of the available AI Providers. MasterStudy LMS is integrated with the most popular AI platforms to provide the best results. You can use any of them according to your needs. Available options are: OpenAI, Grok, Gemini, Mistral, Claude.
API Key - Enter your API key for the selected AI Lab Provider. You can obtain the key by following these steps.
Text Model - Choose the desired AI Lab Provider model to generate text outputs.
Image Model* - Choose the desired AI Lab Provider model to generate image outputs.
Number of Text Suggestions - Select how many variations of AI-generated text you want to receive for each request.
Number of Image Suggestions - Choose how many AI-generated image options to receive. The DALLE-3 model will be used to generate images.
Instructor Access - Enable or disable AI feature access for instructors. Use the "Manage" button to configure permissions.
* Image generation is available only in OpenAI, Grok, and Gemini. If you choose Mistral and Claude as your provider, for image generation, you have to select a partner provider and provide its API Key.
Obtain API Keys for AI Lab Providers
There are 5 providers available for AI Lab:
Obtain OpenAI Credentials
To use the AI Lab features in MasterStudy, you need to connect your OpenAI account by entering your API key.
Visit https://platform.openai.com/ and sign in with your OpenAI account. If you don't have one, you will need to create it first.

After logging in, you should be redirected to the API Keys tab https://platform.openai.com/api-keys/, and here you have to click on Create New Secret Key:

Set the parameters as above, name your project according to your needs, and click on Create Secret Key:

Copy the generated Secret Key:

Go back to the addon settings, choose OpenAI as provider, then paste the key into the designated field, and save the settings:

Now you can go and set up billing to use the feature.
How to Set Up OpenAI Billing
OpenAI charges for its API based on usage, so if you haven’t already set up a payment method for billing, you’ll need to do so. Otherwise, the API key you created won’t function.
💲 OpenAI Pricing 👉 https://openai.com/api/pricing/
To begin, click the settings (gear ⚙️) icon in the top right corner of the API keys screen:

On the opened page, move to the Billing tab and click on Add Payment Details:
Enter your card information and billing:

Set up the payment amount and/or automatic recharge settings according to your needs, and initiate the payment:

Now you’ve set up billing, it’s a good idea to set usage limits to control your monthly API spending. Simply click Limits in the left menu, set your desired monthly budget, and choose an email notification threshold according to your needs. Finally, click Save to apply your settings.
You can also check the usage of your API right on the Usage section of the Addon Setting page:

Obtain Grok (xAI) Credentials
To use Grok models in AI Lab, you need to connect your xAI account by entering your API key.
Visit https://console.x.ai/ and sign in with your xAI account. If you don't have one, you will need to create it first.
Complete the short onboarding steps (use case, terms acceptance) if prompted.

If you are creating a new account, you will be given a default API Key and an option to fill out your account. You can skip both:

In the left sidebar, navigate to API Keys, then click Create API Key:

Name your key according to your needs (e.g., "MasterStudy AI Lab") and click Create:

Copy the generated Secret Key.

Go back to the AI Lab addon settings, select Grok as your provider, paste the key into the designated field, and save the settings:

Now you can go and set up billing to use the feature.
How to Set Up Billing (Grok)
xAI charges per token used, so you'll need an active payment method before your key will work.
💲 xAI API Pricing 👉 https://x.ai/api
In the xAI Console, open the Credits (Billing) section from the left sidebar.

Click Add Payment Method and enter your card and billing details.

New xAI accounts typically receive a small amount of promotional credit that expires after a set period, so you may be able to test the integration before adding a card.
Obtain Gemini (Google) Credentials
To use Gemini models in AI Lab, you need to connect your Google account by entering an API key generated through Google AI Studio.
Visit https://aistudio.google.com/ and sign in with your Google account. Then go to Dashboard:

In the left sidebar under the API Keys tab, click on the Create API key button:

Name your key and click on the Create key button:

Copy the generated key. Unlike some providers, Google AI Studio lets you view the key again later, but it's still best practice to store it securely right away:

Go back to the AI Lab addon settings, select Gemini as your provider, paste the key into the designated field, and save the settings:

Now you can go and set up billing if you need higher usage limits than the free tier.
How to Set Up Billing (Gemini)
💲 Gemini API Pricing 👉 https://ai.google.dev/gemini-api/docs/pricing
In AI Studio, go to https://aistudio.google.com/app/apikey and locate the Google Cloud project linked to your key.

Obtain Mistral Credentials
To use Mistral models in AI Lab, you need to connect your Mistral account by entering an API key generated through La Plateforme (Mistral's console).
Visit https://console.mistral.ai/ and sign up or sign in (email, Google, Microsoft, or Apple). If prompted, complete your workspace setup by providing an organization name.

In the left sidebar, open API Keys

From the opened pop-up, click Create new key:

Give your key a descriptive name, optionally set an expiration date, and confirm:

Copy the generated key immediately — Mistral only shows it once.

Go back to the AI Lab addon settings, select Mistral as your provider, paste the key into the designated field, and save the settings:

How to Set Up Billing (Mistral)
💲 Mistral API Pricing 👉 https://mistral.ai/pricing
In the Mistral console, open Billing from the left sidebar.

Choose a subscription plan — Experiment (free, limited) or Pay as you go — and add a payment method if selecting a paid plan.

Then, move to the billing tab and set a monthly spending limit under your workspace's billing settings to avoid unexpected charges (optional).

Obtain Claude (Anthropic) Credentials
To use Claude models in AI Lab, you need to connect your Anthropic account by entering an API key generated through the Anthropic Console.
Visit https://console.anthropic.com/ and sign up or sign in (email or Google).
If this is a new account, complete onboarding by confirming your details, creating an organization (your company name or a descriptive name), and accepting the terms. If you work individually, you can go with the individual plan:

In the left sidebar, go to Settings > API Keys, then click Create Key:

Name your key (e.g. "MasterStudy AI Lab"), choose the workspace and permission level, and confirm:

Copy the generated key immediately. It starts with sk-ant- and is only shown once — if you close the dialog without copying it, you'll need to revoke it and create a new one:

Go back to the AI Lab addon settings, select Claude as your provider, paste the key into the designated field, and save the settings:

Now you can go and set up billing to use the feature.
How to Set Up Billing (Claude)
A freshly created key cannot make calls until billing is configured — requests will return a billing error otherwise.
💲 Claude API Pricing 👉 https://www.anthropic.com/pricing
In the Anthropic Console, click Credits > Billing in the left sidebar.

Add a payment method and either pre-purchase credits or enable auto-recharge:

How to Generate Entire Course with AI
The AI Lab add-on allows instructors to generate an entire course in just a few clicks by harnessing the power of artificial intelligence. With a well-structured prompt, AI can create comprehensive, well-organized courses with sections, lessons, descriptions, and learning objectives. Based on your input, AI Lab will automatically generate:
Course title, description, and image
Sections and lesson outlines
Lesson content with explanations and key points
Quizzes for selected lessons
Assignments to reinforce learning
Suggested images for each lesson
Course FAQs
Go to the WP Dashboard > MS LMS > Courses, then click on the Generate Course button:

On the opened page, you will see a special field dedicated to generating a course via prompt using AI. Click on Generate Entire Course:

Now, we need a clear and specific prompt that describes your course.
📝 Here is the example prompt:
I want to create a course called "Digital Marketing Basics" for young entrepreneurs and students aged 16 to 35. The course should introduce topics like SEO, content strategy, social media marketing, and email campaigns. Learners should gain enough knowledge to start promoting their own brand or freelance service online.
For the course image, please show a group of diverse students at laptops learning marketing tools in a modern, colorful setting. Use a friendly, encouraging tone with real-life examples and emojis in the text. Lessons should include short intros and 3–4 key points.
Enter the prompt in the designated area:

Now, provide the rest of the details of the course and proceed by clicking the ✨Generate Entire Course button:

It takes some time for AI to generate an entire course with lessons. Be patient and do not close the tab during the course generation:

You will see the ready course preview with short and long descriptions, course cover image, and curriculum:

If you do not like the AI-generated course, you have several options:
You can do it by clicking the Regenerate button on the right sidebar. It simply regenerates the course without changing your original prompt:

If you want to add something or change your ideas, you can try changing your prompt. It can also be done by clicking the Change prompt button on the right sidebar:

If you are satisfied with everything except the course curriculum, you can try regenerating it by clicking the Regenerate Curriculum button on the top right side of the curriculum section:

Once you are satisfied with the outputs, proceed by the Save and Continue button:

After that, the system starts generating lesson contents. The same, wait patiently and do not close the tab:

Once it's done, proceed by clicking the Save and Continue button:

Now, you can check the contents one by one and the rest of the settings.

Move to the Settings tab, and check the course title, cover image, description, and provide other relevant details (course category, level, duration, etc.):

In this step, set pricing for the course on the Pricing tab and check the Course FAQs on the FAQ tab:

Now the course is ready to be published. You can change the course status from Draft to Published:

Here is our AI-generated course:

Improve Content with AI
In the existing lessons and assignments, you can find small Generate with AI ✨ buttons on each text field.

By clicking on them, you can get the AI Text Generator modals:

Prompt Input Field – Describe what you need help writing. For example: “Write a blog intro about AI in education” or “Generate a course title on web development.” This is the main instruction that guides the AI. The more specific and structured your prompt is, the better the generated content will match your expectations.
Words Limit – Sets the maximum length of the output text, in number of words. Use this to control how long the generated content should be.
Type – Select the desired output format. Once you change the type, Word Limit will also change to the preferred amount automatically. But you can freely change it.
Title - generates short text designed to be used as a title for the lesson
Paragraph - generates a medium-sized text designed to be used as a paragraph along with other content
Article - generates long text designed to be used as a full article that covers the topic fully
Tone – Choose the desired tone of voice for the content. Options include Formal, Casual, Engaging, Professional, and Conversational.
Language - choose the text output language
Image Generation with AI
Images can be generated manually for the lesson contents, course cover image, or anywhere that accepts media via the Media File Manager. So, make sure you have enabled it.
Go to the desired place and put the cursor where you want to add the AI-generated image:

Click on the Insert Image button from the WYSIWYG editor tools:

In the General tab, click on the Browse files button:

On the opened pop-up, move to the AI Generate tab:

Describe the image you need in detail and choose the desired image style. Then simply click on the Generate button:

Based on the number of images you set in the Addon Settings, AI Lab offers you several AI-generated images to select.


If you are not satisfied with the generated images, you can regenerate them or change the prompt. To use the image, click on the Use Selected Image button. It saves the image on your website and pastes it to the selected place:

Following the same steps, you can generate the Course Cover Image with AI as well:

Craft Lessons with AI
You can apply the power of AI to your existing lessons to improve their content, or in any courses, you can simply add new lessons with AI.
Create any type of new lesson:

At the top of the lesson, there is a special section dedicated to creating lesson contents with AI. Click on Generate:

After that, this menu opens:

Prompt Input Field – Provide a clear description of the lesson topic, target audience, key points, and any specific requirements or context. The AI will use this to generate the full lesson content. Additionally, describe the images you want to include as well.
Words Limit – Set the maximum number of words for the AI-generated lesson. This helps control content length based on your needs.
Tone – Choose the desired tone of voice for the content. Options include Formal, Casual, Engaging, Professional, and Conversational.
Images Limit – Define how many images you want the AI to generate alongside the lesson. The DALLE-3 model will be used to generate images.
Style – Choose the appropriate image generation style.
Language - Choose the output language
Continue Manually – If selected, it lets you skip AI generation and write the lesson manually.
Write your prompt very carefully and in detail. Here is the example prompt:
Generate a structured lesson script for a video titled “The Basics of Blockchain for Beginners.” The audience is university students with no prior experience in blockchain. The content should cover: what blockchain is, how it works, real-world use cases, and common misconceptions. Keep the tone formal, the style explanatory, and ensure that the script includes clear transitions and engaging explanations suitable for a 5-minute lesson video. Add one relevant image concept for visual aid.
Then, click on the ✨Generate button to proceed:

It takes some time to generate the lesson. Do not close the tab and wait patiently:

You got the success message with the contents generated.

Now you can click on the Create button to add the lesson to the course:

Craft Quizzes with AI
Creating quizzes using AI Lab is also straightforward.
Create a new quiz or use the existing one. Inside the quiz, you will see the ✨Generate Questions button:

You will see Questions Generator:

Prompt Input Field – Describe the topic, audience level, key concepts, and any special focus areas. The clearer and more specific your instructions, the more relevant and accurate the generated questions will be.
Number of Questions – Set how many quiz questions you want the AI to generate in one go.
Answers Limit – Define the number of answer choices for each question (applies to formats like multiple or single choice).
Language - Choose the output language
Preferred Question Types – Select which types of questions should be included. Options are:
Single Choice – One correct answer from a list.
Multiple Choice – Multiple correct answers possible.
True / False – Binary statement-based questions.
Item Match – Matching items between two columns.
Keywords – Short-answer questions requiring a specific word or phrase.
Fill in the Gap – Questions with a blank that the student must complete.
*Image Matching – Generates Item Match questions where the answer options are AI-generated images instead of text.
*Image Choice – Generates Multiple Choice questions with AI-generated images used as answer options instead of text.
*Please note that OpenAI has limitations on the number of image generation requests. If this limit is exceeded, the image will not be generated, and an error message will be displayed instead:

Write your prompt in detail and adjust the rest of the setting. Then, proceed by clicking the Generate button. Here is the example prompt:
Create 5 intermediate-level quiz questions on the topic of “Introduction to Artificial Intelligence.” Focus on key concepts such as machine learning, neural networks, supervised vs unsupervised learning, and AI applications in daily life. Include a variety of question types like multiple choice, fill-in-the-gap, and true/false. Each question should have up to 4 answer choices.

AI Lab provides a preview of the questions. If you are not satisfied, you can change the prompt or regenerate the response. If you are not satisfied with only one or two questions, you can accept the response, then manually modify it as well:

Once you are done, you can save the settings, and that's it.

Last updated
Was this helpful?



