---
title: "POST /translate"
method: POST
path: "/translate"
tags: ["Translate"]
---

# POST /translate

`POST /translate`

Translates text into one or more languages.

## Query parameters

- `api-version` string, required
- `from` string
- `to` string[], required
- `textType` 'plain' | 'html'
- `category` string
- `profanityAction` 'NoAction' | 'Marked' | 'Deleted'
- `profanityMarker` string
- `includeAlignment` boolean
- `includeSentenceLength` boolean
- `suggestedFrom` string
- `fromScript` string
- `toScript` string[]

## Headers

- `X-ClientTraceId` string

## Request body

- TranslateTextInput[]
  - `text` string

## Response `200`

Success

- object[] — Example of a successful translate request, including all optional parameters.
  - `detectedLanguage` object
    - `language` string
    - `score` integer
  - `translations` object[]
    - `text` string
    - `transliteration` object
      - `text` string
      - `script` string
    - `to` string
    - `alignment` object
      - `proj` string
    - `sentLen` object
      - `srcSentLen` object[]
        - `integer` integer
      - `transSentLen` object[]
        - `integer` integer

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-translatortext.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-translatortext/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-translatortext/versions/70ce120aedb4/schema)
