Generate quiz questions from a video

Reads the speech text of the selected slides and generates quiz questions with an LLM.

Nothing is saved: the questions come back for the caller to place on slides (PATCH /videos/{videoId}). placeAfterSlideId on each quiz suggests where it belongs.

notice is non-null when fewer questions were produced than requested — the slides did not contain enough material. The feedbackContextId values are opaque, short-lived identifiers for the generation and can be ignored.

Requires the workspace to have LLM features enabled (409 otherwise).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/quiz/from-video/66a1f0c2b7cd13032a9c6002' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "slideIds": [
    11150988696
  ],
  "quizType": "mixed",
  "count": 3,
  "answersCount": 4,
  "avoidDuplicateTopics": true
}'

Next: update-video — nothing is saved — write the questions onto a slide yourself.

Path Params
string
required

Video id (24-char hex ObjectId).

Body Params
slideIds
array of integers
length ≥ 1
slideIds
string
enum
Defaults to mixed
Allowed:
string
enum
Defaults to distributed
Allowed:
integer
0 to 10
Defaults to 0
integer
2 to 6
boolean
Defaults to false
boolean
Defaults to true
Responses

slideIds do not exist on the video.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json