---
title: "Translate text into any target language, detecting the source when you do not give it. Proper nouns, numbers, code and formatting are kept as they are. Returns the translation alone, with no preamble to strip. Fixed price per call."
method: POST
path: "/v1/tools/translate-text"
---

# Translate text into any target language, detecting the source when you do not give it. Proper nouns, numbers, code and formatting are kept as they are. Returns the translation alone, with no preamble to strip. Fixed price per call.

`POST /v1/tools/translate-text`

## Request

- Base URL: `https://agents.dexl.io`
- URL: `https://agents.dexl.io/v1/tools/translate-text`
- Auth: API key in header `X-Payment`

Paid per call via x402. Send without payment to get the exact price in the 402.

## Request body

- object
  - `text` string, required
  - `to` string, required: Target language, e.g. "Turkish", "German", "ja".
  - `from` string: Source language. Detected when omitted.

## Response `200`

The tool output

## Other responses

- `400`: The input did not match the schema
- `402`: Payment required

---

[API](https://skmtc.dev/dexl/apis/dexl-agents.md) · [All operations](https://skmtc.dev/dexl/apis/dexl-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/dexl/apis/dexl-agents/revisions/e3692765c3f7?raw)
