AI Quiz Generator avatar

AI Quiz Generator

Pricing

from $3.00 / 1,000 results

Go to Apify Store
AI Quiz Generator

AI Quiz Generator

AI quiz generator that creates multiple-choice questions, short-answer questions, answer keys, ideal answers, and explanations for e-learning, trivia apps, LMS question banks, and training assessments.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Inus Grobler

Inus Grobler

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

2

Monthly active users

9 days ago

Last modified

Share

AI Quiz Generator - Multiple Choice and Short Answer Quiz Maker

Create ready-to-use quizzes for any topic with this AI quiz generator. The Actor turns a topic into structured multiple-choice questions, short-answer questions, correct answers, ideal answers, and explanations that you can export from Apify as JSON, CSV, Excel, or through the API.

Use it as a quiz maker for e-learning content, LMS question banks, trivia apps, corporate training assessments, student revision tools, and educational content workflows.

What This Actor Does

  • Generates AI quiz questions for almost any subject, lesson, book, topic, product, policy, or training module.
  • Supports multiple-choice questions with four answer options and one exact correct answer.
  • Supports short-answer questions with an ideal answer for grading or review.
  • Adds explanations to help learners understand why an answer is correct.
  • Lets you choose easy, medium, or hard difficulty.
  • Offers standard and premium quality tiers depending on your accuracy and cost needs.
  • Saves every question as a clean dataset item that is easy to export or integrate.

Best Use Cases

  • Online course quizzes and LMS assessment questions
  • Multiple-choice question generation for lessons and modules
  • Trivia question generation for apps, games, and events
  • Corporate training checks and employee knowledge tests
  • Student study guides, revision quizzes, and practice tests
  • Product, policy, compliance, and onboarding assessments
  • Question bank generation for educational platforms

Input

FieldTypeDefaultDescription
topicStringBasic Python programming conceptsThe subject of the quiz. Specific topics produce better questions.
total_questionsInteger10Total number of questions to generate. Min: 1, max: 100.
multiple_choice_countInteger7Number of multiple-choice questions. The remaining questions are short-answer.
difficultySelectmediumChoose easy, medium, or hard.
quality_tierSelectstandardChoose standard for cost-effective generation or premium for higher-accuracy specialist topics.

Example Input

{
"topic": "The causes and key events of World War I",
"total_questions": 20,
"multiple_choice_count": 14,
"difficulty": "hard",
"quality_tier": "premium"
}

Output

Each dataset item is one quiz question. Multiple-choice records include answer options and a correct answer. Short-answer records include an ideal answer.

Multiple-Choice Example

{
"questionNumber": 1,
"type": "multiple_choice",
"question": "Which event directly triggered the outbreak of World War I?",
"options": [
"The assassination of Archduke Franz Ferdinand",
"The sinking of the Lusitania",
"The invasion of Poland",
"The fall of the Ottoman Empire"
],
"correctAnswer": "The assassination of Archduke Franz Ferdinand",
"idealAnswer": null,
"explanation": "The assassination in Sarajevo on 28 June 1914 triggered a chain of diplomatic crises that led to the outbreak of World War I.",
"metaTopic": "The causes and key events of World War I",
"metaQualityTier": "premium",
"metaDifficulty": "hard",
"metaModel": "google/gemini-2.5-flash-lite",
"metaGeneratedAt": "2026-05-12T15:02:37.264739+00:00"
}

Short-Answer Example

{
"questionNumber": 2,
"type": "short_answer",
"question": "What alliance opposed the Triple Alliance before World War I?",
"options": null,
"correctAnswer": null,
"idealAnswer": "The Triple Entente, made up of France, Russia, and Great Britain.",
"explanation": "The Triple Entente aligned France, Russia, and Great Britain against the Central Powers.",
"metaTopic": "The causes and key events of World War I",
"metaQualityTier": "premium",
"metaDifficulty": "hard",
"metaModel": "google/gemini-2.5-flash-lite",
"metaGeneratedAt": "2026-05-12T15:02:37.264739+00:00"
}

Output Fields

FieldDescription
questionNumberThe question's position in the generated quiz.
typemultiple_choice or short_answer.
questionThe generated question text.
optionsFour answer options for multiple-choice questions, otherwise null.
correctAnswerCorrect option text for multiple-choice questions, otherwise null.
idealAnswerSuggested answer for short-answer questions, otherwise null.
explanationEducational explanation for the answer.
metaTopicTopic used for the run.
metaQualityTierstandard or premium.
metaDifficultyeasy, medium, or hard.
metaModelAI model used for generation.
metaGeneratedAtUTC timestamp for the generation run.

How To Run It

Open the Actor on Apify, enter a topic, choose how many questions you want, select the difficulty and quality tier, then start the run. When the run finishes, download the dataset or connect it to your workflow through the Apify API.

For best results, use a clear and specific topic. For example, use "Newton's laws of motion for high school physics" instead of just "science".

Python API Example

Install the Apify API client:

$pip install apify-client

Run the Actor and fetch the generated quiz questions:

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_API_TOKEN")
run_input = {
"topic": "Basic Python programming concepts",
"total_questions": 10,
"multiple_choice_count": 7,
"difficulty": "medium",
"quality_tier": "standard",
}
run = client.actor("thescrapelab/Apify-Quiz-Generator").call(run_input=run_input)
dataset_id = run["defaultDatasetId"]
items = client.dataset(dataset_id).list_items().items
for item in items:
print(item["question"])
if item["type"] == "multiple_choice":
print("Options:", item["options"])
print("Correct answer:", item["correctAnswer"])
else:
print("Ideal answer:", item["idealAnswer"])
print("Explanation:", item["explanation"])
print()

Difficulty Guide

DifficultyBest ForWhat To Expect
easyBeginners, introductions, broad reviewWell-known facts and clearly incorrect distractors.
mediumCourse checks, revision quizzes, general assessmentsSpecific knowledge with more plausible distractors.
hardExpert quizzes, specialist domains, advanced learnersNiche details, precise facts, and harder-to-eliminate distractors.

Quality Tiers

TierBest For
standardGeneral quiz generation, high-volume question sets, cost-sensitive workflows.
premiumTechnical, academic, specialist, or higher-stakes question generation where accuracy matters more. Premium adds a small per-question charge.

Tips For Better Quiz Results

  • Use specific topics, audiences, and scope, such as "introductory SQL joins for data analysts".
  • Start with 10 questions to review style and difficulty before generating a larger question bank.
  • Use a 70/30 multiple-choice to short-answer split for most learning quizzes.
  • Choose hard plus premium for technical, academic, or expert-level quizzes.
  • Review AI-generated content before using it in high-stakes exams, compliance programs, medical training, or legal training.

SEO Keywords

AI quiz generator, quiz maker, multiple choice question generator, short answer question generator, trivia question generator, assessment generator, LMS quiz generator, e-learning quiz creator, training quiz generator, education question bank generator.