---
title: "Create a quiz from AI generated questions."
method: POST
path: "/v1/ai/quizzes"
tags: ["AI"]
---

# Create a quiz from AI generated questions.

`POST /v1/ai/quizzes`

## Request body

- ReqCreateQuizFromAI
  - `description` string
  - `questions` AIQuestion[]
    - `correct_answer` integer
    - `options` string[]
    - `options_media` string
    - `question` string
    - `question_media` string
    - `question_type` string
    - `resource` string
  - `title` string

## Response `201`

- object
  - `quizId` string
  - `status` string

## Other responses

- `400` — Fail due to resource not exists
- `401` — Server understand request but refuse to authorize it
- `500` — Unexpected error occurred

## Changes

- **2026-09-16** `15ae2821b57b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/improwised/apis/untitled-api/changes/v1/ai/quizzes/post.md)

---

[API](https://skmtc.dev/improwised/apis/untitled-api.md) · [All operations](https://skmtc.dev/improwised/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc.dev/improwised/apis/untitled-api/revisions/15ae2821b57b?raw)
