v1
latestOpenAPI 3.0.32026-07-265278189.1 KBTranslateText
Request Translation
post/v2/translate
Request body
Example request
{
"text": [
"Hello, World!"
],
"source_lang": "EN",
"target_lang": "DE",
"context": "This is context.",
"split_sentences": "1",
"formality": "prefer_more",
"glossary_id": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7",
"glossary_ids": [
"def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
],
"style_id": "7ff9bfd6-cd85-4190-8503-d6215a321519",
"translation_memory_id": "a74d88fb-ed2a-4943-a664-a4512398b994",
"translation_memory_threshold": 75,
"custom_instructions": [
"Use a friendly, diplomatic tone"
],
"tag_handling": "html",
"non_splitting_tags": [
"non_splitting_tag"
],
"splitting_tags": [
"splitting_tag"
],
"ignore_tags": [
"ignore_tag"
]
}Response
The translate function returns a JSON representation of the translations in the order the text parameters have been specified.
Example response
{
"translations": [
{
"detected_source_language": "EN",
"text": "Hallo, Welt!",
"billed_characters": 42,
"model_type_used": "quality_optimized",
"tag_handling_version": "v2"
}
]
}