---
title: "Translate and explain how to say a specific phrase or word in another language."
method: POST
path: "/v1/public/openai/translate"
---

# Translate and explain how to say a specific phrase or word in another language.

`POST /v1/public/openai/translate`

## Request

- Base URL: `https://api.speak.com`
- URL: `https://api.speak.com/v1/public/openai/translate`
- Auth: none declared
- TypeScript: <https://skmtc.dev/camel-ai/apis/speak/docs/v1/public/openai/translate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- TranslateRequest
  - `phrase_to_translate` string, required: Phrase or concept to translate into the foreign language and explain further.
  - `learning_language` string, required: The foreign language that the user is learning and asking about. Always use the full name of the language (e.g. Spanish, French).
  - `native_language` string, required: The user's native language. Infer this value from the language the user asked their question in. Always use the full name of the language (e.g. Spanish, French).
  - `additional_context` string, required: A description of any additional context in the user's question that could affect the explanation - e.g. setting, scenario, situation, tone, speaking style and formality, usage notes, or any other qualifiers.
  - `full_query` string, required: Full text of the user's question.

## Response `200`

OK

- TranslateResponse
  - `explanation` string: An explanation of how to say the input phrase in the foreign language.

---

[API](https://skmtc.dev/camel-ai/apis/speak.md) - [All operations](https://skmtc.dev/camel-ai/apis/speak/llms.txt) - [OpenAPI document](https://skmtc.dev/camel-ai/apis/speak/revisions/ae633ff84e2d?raw)
