Question set
Generate a question set from source text, at a chosen difficulty.
Authorizations
A workspace API key.
Headers
Stable retry key for this logical paid call. Reuse it after a timeout to receive the original result without duplicate work or spend.
1 - 255Send 1 to get the price, balance and budget verdict without running anything.
"1"The approved price; a call that would cost more is refused and nothing is charged.
^\d+$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 <= 20The existing project to file this work under. Create it with POST /v1/projects, then reuse its id across related calls. A project this workspace does not own answers not_found; the work is never silently filed somewhere else.
1 - 200e.g. easy, exam, olympiad.
60The subject, for correct terminology.
200Who is sitting it, e.g. undergraduate.
50Response
Success.
- Option 1
- Option 2
What this call actually cost, which is not always what was quoted.
300
The question set, with answers where the format has them. The text is under result.
The existing project this work was filed under. It matches the projectId supplied by the caller after workspace ownership was verified.
"prj_9x2a4c"
Your balance after the charge. Absent when billing is disabled for the workspace.
3900