---
title: "Generate Exercise Hints For Admin"
method: POST
path: "/admin/holiday-courses/exercises/generate-hints"
tags: ["Admin - Holiday Courses"]
---

# Generate Exercise Hints For Admin

`POST /admin/holiday-courses/exercises/generate-hints`

Generate hints for an exercise using AI.

This endpoint:
1. Takes an exercise statement (LaTeX/HTML) and optional difficulty level
2. Uses an LLM to generate hints for the exercise
3. Returns the generated hints formatted for KaTeX rendering

Only accessible by admin users.

## Request body

- GenerateHintsRequest — Request model for generating exercise hints via AI
  - `exercise_content` string, required
  - `exercise_solution` string, nullable
  - `difficulty` 'easy' | 'medium' | 'hard', nullable

## Response `200`

Successful Response

- GenerateHintsResponse — Response model for generated exercise hints
  - `hints1` string, nullable
  - `hints2` string, nullable
  - `hints3` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/437cd8414e9e/schema)
