/generate-quiz
Create a new quiz with custom settings and receive a unique quiz ID + quiz data.
Input Parameters
numQuizzes
Int
1
The number of quizzes you want to generate. Optional.
numQuestions
Int
10
Number of questions in the quiz. Optional.
subject
String
null
The subject of the quiz. Optional.
instructions
String
null
Instructions for the quiz. Optional.
gradeLevel
String
null
Target grade level. Optional.
difficulty
String
null
Difficulty level. Options: ""
, Easy
, Medium
, Hard
. Optional.
Note: If left blank... the difficulty of the quiz will be set at the AI's discretion.
pdfLinks
Array of Strings
null
Link your PDF(s) to the prompt for quiz generation via file URLs. Optional
videoLinks
Array of Strings
null
files
Array of FIles
null
Upload a file directly using form data, it works the same as "pdfLinks".
Note: For subject
, instructions
, and gradeLevel
... if either one is left blank, the AI will use any of the values as context in order to create the quiz. If nothing is passed, you will generate a random quiz.
Example Request
Return Value
quizzes
An array of quizzes.
quizId
: A unique identifier for the generated quiz.title
: The title of the quiz.questions
: The questions in the quiz.
Last updated