For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

✨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:

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.

OpenAI provides powerful language and image generation tools, but please note that these services are not free. Each time you generate text or images through the AI Lab, your usage is counted and charged according to OpenAI’s pricing model. Charges depend on the number of tokens used in your requests or the number and type of images generated.

➡️ How to Set Up Billing?

1

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.

2

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:

3

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

4

Copy the generated Secret Key:

5

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/

1

To begin, click the settings (gear ⚙️) icon in the top right corner of the API keys screen:

2

On the opened page, move to the Billing tab and click on Add Payment Details:

3

Enter your card information and billing:

4

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

5

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.

6

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.

xAI charges for API usage on a pay-as-you-go basis, and there is no permanent free tier. Each time you generate text or images through AI Lab using Grok, your usage is counted and charged according to xAI's pricing model.

➡️ How to Set Up Billing?

1

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.

2

Complete the short onboarding steps (use case, terms acceptance) if prompted.

3

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:

4

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

5

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

6

Copy the generated Secret Key.

7

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

1

In the xAI Console, open the Credits (Billing) section from the left sidebar.

2

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.

Google offers a free tier for Gemini with limited rate limits, but higher-volume use through AI Lab will require billing to be enabled on the linked Google Cloud project. Charges follow Google's pricing model.

➡️ How to Set Up Billing?

1

Visit https://aistudio.google.com/ and sign in with your Google account. Then go to Dashboard:

2

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

3

Name your key and click on the Create key button:

4

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:

5

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

1

In AI Studio, go to https://aistudio.google.com/app/apikey and locate the Google Cloud project linked to your key.

Free-tier and paid-tier keys use the same key format and endpoint — enabling billing simply removes the free tier's rate limits (requests per minute/day).

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).

Mistral requires an active billing plan — including its free Experiment plan — before an API key will work. Usage beyond the free plan is charged according to Mistral's pricing model.

➡️ How to Set Up Billing?

1

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.

2

In the left sidebar, open API Keys

3

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

4

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

5

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

6

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

1

In the Mistral console, open Billing from the left sidebar.

2

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

3

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.

Anthropic uses a prepaid credit system for API usage — you'll need to add credits before your key can make requests. Charges are counted according to Anthropic's pricing model.

➡️ How to Set Up Billing?

1

Visit https://console.anthropic.com/ and sign up or sign in (email or Google).

2

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:

You might be asked to add funds to your account. However, this step is totally skippable.

3

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

4

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

5

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:

6

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

1

In the Anthropic Console, click Credits > Billing in the left sidebar.

2

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

Optionally, set a monthly usage limit as a safety cap, then confirm your settings.

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

AI Lab can not generate audio, video, Google Meet, Stream, or Zoom lessons. You can use tools to improve their text content, but these kinds of lessons should be created and added manually to the course.

1

Go to the WP Dashboard > MS LMS > Courses, then click on the Generate Course button:

2

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

3

Now, we need a clear and specific prompt that describes your course.

💡 What to include in your prompt:

📝 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:

4

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

5

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:

6

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

When it comes to curriculum, only section and lesson titles will be generated. Lesson content will be generated in the next steps.

7

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:

8

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

9

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

Images for the lessons will not be generated in this step. To include illustrations inside lessons, you have to individually add them via Content Generator.

10

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

11

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

12

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

13

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

14

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.

AI Lab uses OpenAI's DALL·E models to generate images.

1

Go to the desired place and put the cursor where you want to add the AI-generated image:

2

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

3

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

4

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

5

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

It takes some time to generate an image. That's why do not close the tab and wait patiently.

6

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

7

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:

Course Builder > Settings > Main > Image

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.

1

Create any type of new lesson:

2

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

3

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.

4

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:

5

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

6

You got the success message with the contents generated.

For Audio, Video, Google Meet, Stream, and Zoom Lessons, the rest of the content and lesson details should be provided manually.

7

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.

1

Create a new quiz or use the existing one. Inside the quiz, you will see the ✨Generate Questions button:

2

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:

IMPORTANT

3

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.

4

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:

5

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

Last updated

Was this helpful?