Question set
Generate a question set from source text, at a chosen difficulty.
Authorizations
A workspace API key.
Body
The source material to write questions from.
1 - 50000Question format, e.g. multiple-choice, short-answer, true-false.
1 - 60How many to produce, 1–20.
1 <= x <= 20e.g. easy, exam, olympiad.
60The subject, for correct terminology.
200Who is sitting it, e.g. undergraduate.
50The project to file this work under. Optional: omit it and one is created for you, and its id comes back on the response — read it from there rather than assuming. Pass the same id across calls when you want the script, the render and the thumbnail to land in one container. A project this workspace does not own answers not_found; the work is never silently filed somewhere else.
1 - 200Response
Success.
The project this work was filed under. Read it from here — a call that sent no projectId had one created, and this is where its id comes back.
"prj_9x2a4c"
What this call actually cost, which is not always what was quoted.
300
The question set, with answers where the format has them.
Your balance after the charge. Absent when billing is disabled for the workspace.
3900