POST

Translate text into a target language, with optional source language. Powered by the DeepL Free API

/v1/translate

Powered by DeepL

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/translate
Content-Type: application/json

{
  "text": "Hello, world!",
  "target_lang": "example",
  "source_lang": "example"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Translate text into a target language, with optional source language. Powered by the DeepL Free API.

Neural machine translation service for high-quality text translation.

Request schema

Body: JSON · application/json

FieldTypeDescription
textstringrequired
target_langstringrequired
source_langstringoptional
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/translate \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Hello, world!",
  "target_lang": "example",
  "source_lang": "example"
}'

402 payment flow omitted — see Integrations for settlement.