---
title: "Transcribe Exercise Image For Admin"
method: POST
path: "/admin/holiday-courses/exercises/transcribe-image"
tags: ["Admin - Holiday Courses"]
---

# Transcribe Exercise Image For Admin

`POST /admin/holiday-courses/exercises/transcribe-image`

Transcribe an exercise image to LaTeX/HTML for admin exercise creation.

This endpoint:
1. Takes a base64-encoded image from the admin
2. Optionally uploads the original image to S3 for reference
3. Uses AI transcription service to convert image to LaTeX/HTML
4. Returns the transcribed content for use in exercise creation

Only accessible by admin users.

## Request body

- AdminExerciseImageUploadRequest — Request model for admin exercise image transcription
  - `file_content` string, required
  - `file_name` string, required
  - `content_type` string, required

## Response `200`

Successful Response

- AdminExerciseImageTranscriptionResponse — Response model for admin exercise image transcription
  - `transcribed_content` string, required
  - `s3_image_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/2a0c1636fd3b?raw)
