AI Question Generation

Upload a document, get exam-ready questions in seconds. Multichoice, true/false, short answer, fill-in-the-blanks, matching — 15 question types out of the box.

What it does

Send a PDF, DOCX, PPTX, or TXT file. The AI engine reads it, identifies the key concepts, and produces structured exam questions with answers and explanations. Use it inside your LMS, Moodle plugin, or any internal tool.

Highlights

  • 15 question types — multichoice, T/F, short answer, essay, fill-in-blanks, matching, numerical, ordering, hotspot, labeling, matrix, calculated, recording, bowtie, interactive.
  • 15 languages — English, Arabic, French, Spanish, Urdu, Hindi, Chinese, and more.
  • Difficulty control — easy / medium / hard / mixed.
  • Smart deduplication — small repeated batches automatically dedupe so Moodle plugins never get repeats.
  • Per-package quota — every entity has its own subscription limit + extra pool fallback.
  • Audit trail — every request stores who paid, from which subscription.

How to integrate

  1. Get your API key from the admin panel → Entities → your row.
  2. POST your file to /api/v1/generate with a Bearer token.
  3. Receive a JSON array of questions ready to render in your LMS.

Quick start (cURL)

curl -X POST https://aiquestions.intrazero.com/api/v1/generate \
  -H "Authorization: Bearer $API_KEY" \
  -F "file=@chapter5.pdf" \
  -F "num_questions=10" \
  -F "question_type=multichoice" \
  -F "difficulty=mixed"

Response: JSON with questions[], meta.remaining_quota, and request_id.

Example response

{
  "success": true,
  "request_id": 1234,
  "questions": [
    {
      "name": "Cell Membrane",
      "stem": "Which structure controls what enters a cell?",
      "choices": ["Nucleus", "Cell membrane", "Cytoplasm", "Mitochondria"],
      "answer": "Cell membrane",
      "explanation": "The cell membrane is selectively permeable..."
    }
  ],
  "meta": { "generated": 10, "remaining_quota": 487, "processing_time_ms": 8421 }
}

Full developer guide

Complete reference: authentication, all endpoints, error codes, best practices.

Contact us to get started →