---
title: "Generate Similar Exercise"
method: POST
path: "/demo-homework-helper/generate-similar/{exercise_id}"
tags: ["Demo Homework Helper"]
---

# Generate Similar Exercise

`POST /demo-homework-helper/generate-similar/{exercise_id}`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/demo-homework-helper/generate-similar/{exercise_id}`
- Auth: none declared

Generate a new ephemeral doc with "similar" latex content,
using chat completions or any approach, matching the original code,
but ignoring user auth or DB.  We still accept lang.

## Path parameters

- `exercise_id` string, required

## Query parameters

- `session_id` string, required: Demo session ID
- `lang` string: Language code for the demo

## Response `200`

Successful Response

- RoutersDemoHomeworkHelperBasicResponse
  - `status` string, required
  - `message` string, required
  - `data` object, nullable
  - `transcript` string, nullable
  - `url` 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.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
