---
title: "Prepare"
method: POST
path: "/api/spelling/prepare"
tags: ["Spelling"]
---

# Prepare

`POST /api/spelling/prepare`

Detect the dominant language of the sequence text and translate the
user's correction instruction into it (so /analyze reasons natively).

## Request body

- PrepareRequest
  - `sample_text` string, required
  - `correction_prompt` string
  - `model` string, nullable

## Response `200`

Successful Response

- PrepareResponse
  - `language` string, required
  - `language_name` string, required
  - `translated_prompt` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/premierecopilot/apis/premierecopilot-api.md) · [All operations](https://skmtc.dev/premierecopilot/apis/premierecopilot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/premierecopilot/premierecopilot-api/revisions/fa72d3c14142/schema)
