Create a quiz
quiz_video_create_quizCreate a quiz. Prefer sending themeDescription or themeCustomization so the saved quiz has a custom visual theme; if omitted, the server derives one from the title/description. Omit backgroundMusicId to use default YouTube-safe shared background music, or set null for silent. Required: title. Optional: description, format, quizType, template, countdownSeconds, difficulty, musicVolume, and questions[].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Human-readable quiz title. | |
| format | No | Output aspect ratio: "tiktok" (9:16 vertical) or "youtube" (16:9 horizontal). | |
| quizType | No | Quiz mechanic: multiple_choice, reveal_answer, or picture_guess. | |
| template | No | Visual template id (e.g. "neon", "minimal"). | |
| questions | No | Optional initial questions with their answers and images. | |
| difficulty | No | Target difficulty level for the generated/created quiz. | |
| description | No | Optional longer description shown on the quiz page. | |
| musicVolume | No | Background music volume from 0 (silent) to 1 (full). Default 0.15. | |
| countdownSeconds | No | Seconds of countdown shown before each question (3–15). | |
| themeDescription | No | Natural-language custom visual theme prompt. Example: "golden luxury game show", "ocean glass", or "cyber neon". The server saves the generated themeCustomization and applies it automatically. | |
| backgroundMusicId | No | Background music track id from /api/v1/music. Omit to use the default YouTube-safe shared track; set null for silent. | |
| themeCustomization | No | Explicit custom theme to save and apply to the quiz. Invalid colors/fonts are ignored by the API sanitizer. |