---
title: "AI: generate exam from prompt — creates exam + version A"
method: POST
path: "/v1/exams/generate"
tags: ["Exams"]
---

# AI: generate exam from prompt — creates exam + version A

`POST /v1/exams/generate`

## Request

- Base URL: `https://api.voomride.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.voomride.app/v1/exams/generate`
- Auth: HTTP bearer

## Request body

- GenerateExamDto
  - `title` string, required
  - `description` string
  - `topic` string
  - `audience` string
  - `language` string
  - `questionCount` number
  - `difficulty` number
  - `passScore` number
  - `questionsPerAttempt` number
  - `timeLimit` number
  - `failRateThreshold` number
  - `context` string
  - `policyText` string
  - `packageId` string
  - `questionTypes` string[]

## Response `201`

---

[API](https://skmtc.dev/voomride/apis/voomguard-api.md) - [All operations](https://skmtc.dev/voomride/apis/voomguard-api/llms.txt) - [OpenAPI document](https://skmtc.dev/voomride/apis/voomguard-api/revisions/91f21ff02ad0?raw)
