An optional custom reporting tag used to attribute this request's usage to a team, project, customer, or other category of your choosing. Values are limited to 100 characters. See How to use custom reporting tags for validation rules, naming guidance, and how to retrieve usage by tag.
Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified
many times in a single request, within the request size limit (128KiB). Translations are returned
in the same order as they are requested. Each text in the array is translated independently — texts
do not share context with each other.
When true, the response will include the billed_characters parameter, giving the
number of characters from the request that will be counted by DeepL for billing purposes.
Sets whether the translated text should lean towards formal or informal language.
This feature is only available for certain target languages. Setting this parameter
with a target language that does not support formality will fail, unless one of the
prefer_... options are used.
Possible options are:
default (default)
more - for a more formal language
less - for a more informal language
prefer_more - for a more formal language if available, otherwise fallback to default formality
prefer_less - for a more informal language if available, otherwise fallback to default formality
Specify the glossary to use for the translation. Important: This requires the source_lang
parameter to be set. The language pair of the glossary has to match the language pair of the
request.
Important: The target language has to match the language of the style rule list. A list
created for a root language (for example en) applies to that language and all of its variants
(EN-GB, EN-US). A list created for a variant (for example en-GB) applies only when
target_lang is that variant.
The minimum matching percentage required for a translation memory segment to be applied (recommended to be 75% or higher). A value below 50 is treated as 50.
Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.
Translate with a style profile: its glossaries,
style rule lists and translation memories through one ID. The profile is applied per text once the
source language is known: the glossaries with a dictionary for the text's language pair, the style
rule list for the target language, and the translation memories whose source language matches the
text. A component that does not fit a text's language pair is left out for that text; this is not an
error.
Cannot be combined with glossary_id, glossary_ids, style_id, translation_memory_id,
translation_memory_threshold or custom_instructions. A request that combines them is rejected
with 400 Bad Request. A style profile that does not exist or that your account cannot access is
rejected with 404 Not Found.
Disable the automatic detection of XML structure by setting the outline_detection parameter
to false and selecting the tags that should be considered structure tags. This will split sentences
using the splitting_tags parameter.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DeepL Documentation","description":"Developer documentation for the DeepL API: translate text and documents, transcribe and translate speech in real time, improve text, and customize output with glossaries, style rules, and translation memories.","colors":{"primary":"#0f2b46","light":"#ffffff","dark":"#0f2b46"},"logo":{"light":"https://mintcdn.com/deepl-c950b784/QiF37QSCmRj62dXZ/_assets/logo/light_with_text.svg?fit=max\u0026auto=format\u0026n=QiF37QSCmRj62dXZ\u0026q=85\u0026s=2dfc0d736effb479c0ac145abe2ab2c3","dark":"https://mintcdn.com/deepl-c950b784/QiF37QSCmRj62dXZ/_assets/logo/dark_with_text.svg?fit=max\u0026auto=format\u0026n=QiF37QSCmRj62dXZ\u0026q=85\u0026s=1c796b7a29370a15d010c5f6cda342f3"},"favicon":"https://mintcdn.com/deepl-c950b784/QiF37QSCmRj62dXZ/_assets/favicon.svg?fit=max\u0026auto=format\u0026n=QiF37QSCmRj62dXZ\u0026q=85\u0026s=b46ca099e325b1b5f0ce2f0fc351e394","api":{"openapi":"api-reference/openapi.yaml","asyncapi":"api-reference/voice/voice.asyncapi.yaml","playground":{"proxy":false},"examples":{"defaults":"required","languages":["curl"]}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#ffffff"}},"navbar":{"links":[{"href":"https://www.deepl.com/en/pro#api","label":"Pricing"}],"primary":{"type":"button","label":"Free API Key","href":"https://www.deepl.com/en/checkout?is_api=true"}},"footer":{"socials":{"facebook":"https://www.facebook.com/DeepLcom","linkedin":"https://www.linkedin.com/company/deepl","github":"https://github.com/DeepL","instagram":"https://www.instagram.com/deeplhq"},"links":[{"items":[{"label":"API Status","href":"https://status.deepl.com/?tab=api"},{"label":"DeepL Status","href":"https://status.deepl.com"},{"label":"Contact","href":"/docs/resources/contact"}]}]},"seo":{"metatags":{"google-site-verification":"0VDGg3gJk53xL5burIUykHtV_eBhXTp5AMdzaeffbbU"},"organization":{"id":"https://www.deepl.com/","name":"DeepL","legalName":"DeepL SE","url":"https://www.deepl.com","logo":"https://static.deepl.com/img/logo/deepl-logo-blue.svg","sameAs":["https://github.com/DeepL","https://www.linkedin.com/company/deepl","https://x.com/DeepLcom","https://www.instagram.com/deeplhq/","https://www.youtube.com/@DeepLcom"]},"indexing":"navigable"},"fonts":{"heading":{"family":"Roboto"},"body":{"family":"Roboto"}},"integrations":{"cookies":{"key":"deepl_cookie_consent","value":"accepted"}},"banner":{"content":"Help shape the DeepL API roadmap. [Take the survey](https://deepl.qualtrics.com/jfe/form/SV_8fbjoZx1wQUkAC2)","dismissible":true},"errors":{"404":{"redirect":false,"title":"Page not found","description":"This page does not exist. Humans: check out the [Quickstart](/docs/getting-started/quickstart) or the [API reference](/api-reference/translate/request-translation). Machines: try [/llms.txt](/llms.txt), [the docs MCP server](https://developers.deepl.com/mcp), or OpenAPI specs for [Text](/api-reference/openapi.yaml) and [Voice](/api-reference/voice/voice.asyncapi.yaml)."}},"contextual":{"options":["copy","download-spec","chatgpt","claude","cursor","vscode"],"display":"header"},"markdown":{"instructions":["Use the DeepL API when a task needs machine translation or text improvement, including translating text strings, whole documents with formatting preservation, or transcribing and translating live speech. Preferred terminology and phrasing may be enforced using customizations (glossaries, style rules, and translation memories). Retrieve supported languages for each product from the `/v3/languages` endpoints.","Read the machine-readable API surface instead of inferring request shapes from prose: the REST spec is at https://developers.deepl.com/api-reference/openapi.yaml (also served as openapi.json) and the Voice WebSocket protocol is at https://developers.deepl.com/api-reference/voice/voice.asyncapi.yaml. These docs also expose an MCP server at https://developers.deepl.com/mcp (Streamable HTTP, no authentication).","Use https://api.deepl.com for Pro plans and https://api-free.deepl.com for the Free plan. Authenticate every request with the header `Authorization: DeepL-Auth-Key \u003capi-key>`. Never fabricate an API key: ask the user for one, or point them at https://developers.deepl.com/docs/getting-started/quickstart.","Errors use standard HTTP status codes with a JSON body containing a `message` field, plus a `code` field where available, and an `X-Trace-ID` response header that identifies the request in DeepL's logs. Log `X-Trace-ID` by default. Retry 429 and 5xx with exponential backoff. Do not retry 456, which means the account quota is exhausted, or 400, which means the request itself is invalid."]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"deepl-c950b784","hasAudioNarration":false,"actualSubdomain":"deepl-c950b784","customDomains":["developers.deepl.com"],"gitSource":{"type":"github","owner":"deepl","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf546c6c71dd37a987fec4","collectionId":"14e3f4cf-3d64-4e31-b78c-6a7fda71bcd7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf546c6c71dd37a987fec4"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6adf546c6c71dd37a987fec4","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":66},{"language":"default","tag":"Customize","count":55},{"language":"default","tag":"Home","count":35},{"language":"default","tag":"Translate","count":23},{"language":"default","tag":"Glossaries","count":17},{"language":"default","tag":"Admin","count":14},{"language":"default","tag":"Style Rules","count":12},{"language":"default","tag":"Spoken Terms","count":10},{"language":"default","tag":"Text Translation","count":10},{"language":"default","tag":"Voice","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"cookie-banner.css","content":"#cookie-banner{position:fixed;bottom:0;left:0;width:100%;background:#0f2b46;color:#fff;padding:20px;display:flex;justify-content:space-between;align-items:center;gap:20px;z-index:10000;box-shadow:0 -2px 10px rgba(0,0,0,.2);font-family:Roboto,sans-serif}#cookie-banner-content{flex:1}#cookie-banner-text{margin:0;font-size:14px;line-height:1.5}#cookie-banner-text a{color:#4fc3f7;text-decoration:underline}#cookie-banner-buttons{display:flex;gap:12px;flex-shrink:0}#cookie-accept,#cookie-reject{padding:10px 20px;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;font-family:Roboto,sans-serif}#cookie-reject{background:0 0;color:#fff;border:1px solid #fff}#cookie-reject:hover{background:rgba(255,255,255,.1)}#cookie-accept{background:#fff;color:#0f2b46;border:0}#cookie-accept:hover{background:#e6e6e6}@media (max-width:768px){#cookie-banner{flex-direction:column;align-items:stretch;gap:16px;padding:16px}#cookie-banner-buttons{width:100%;justify-content:stretch}#cookie-accept,#cookie-reject{flex:1}}"},{"filePath":"user-study-popup.css","content":"#user-study-popup{position:fixed;right:24px;bottom:24px;z-index:9999;pointer-events:none;font-family:Roboto,sans-serif}#user-study-card{position:relative;width:360px;max-width:calc(100vw - 48px);padding:24px;background:#fff;border:1px solid rgba(15,43,70,.12);border-radius:16px;box-shadow:0 20px 45px rgba(15,43,70,.16),0 6px 16px rgba(15,43,70,.1);pointer-events:auto;transform:translateX(calc(100% + 48px));transition:transform .35s ease}#user-study-card.slide-in{transform:translateX(0)}#user-study-card.slide-out{transform:translateX(calc(100% + 48px));transition:transform .25s ease-in}#user-study-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:999px;background:0 0;color:#6b7280;font-size:24px;line-height:1;cursor:pointer}#user-study-close:hover{background:rgba(15,43,70,.06);color:#0f2b46}#user-study-eyebrow{margin:0 0 8px;color:#0f2b46;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}#user-study-content h3{margin:0 28px 12px 0;color:#111827;font-size:22px;font-weight:700;line-height:1.2}#user-study-content p{margin:0 0 18px;color:#4b5563;font-size:14px;line-height:1.5}#user-study-cta{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-radius:999px;background:#0f2b46;color:#fff;font-size:14px;font-weight:600;text-decoration:none}#user-study-cta:hover{background:#133858}@media (max-width:480px){#user-study-popup{right:16px;bottom:16px;left:16px}#user-study-card{width:auto;max-width:none;padding:20px}#user-study-content h3{font-size:20px}}"},{"filePath":"navbar-cta.css","content":"html.dark #topbar-cta-button a>span:first-child{background-color:#fff!important}html.dark #topbar-cta-button a,html.dark #topbar-cta-button a span,html.dark #topbar-cta-button a svg{color:#292929!important}"}],"page":{"pagePath":"api-reference/translate/request-translation","slug":"/api-reference/translate/request-translation","pageMetadata":{"openapi":"post /v2/translate","title":"Translate text","description":"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.","href":"/api-reference/translate/request-translation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v2/translate","title":"Translate text","description":"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.","href":"/api-reference/translate/request-translation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/deepl-c950b784/79954643574228d7/analytics.js","/_mintlify/custom/deepl-c950b784/7c795428034ccd8b/cookie-banner.js","/_mintlify/custom/deepl-c950b784/e09568492714dd0f/user-study-popup.js","/_mintlify/custom/deepl-c950b784/06c83788a8296584/user-data.js"],"openApiReferenceData":{"operation":{"tags":["TranslateText"],"summary":"Request Translation","operationId":"translateText","description":"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.","parameters":["1aab218e-c742-4b5f-9a50-8dcf08ec36a1"],"requestBody":"d8eb6b32-b806-4447-b99d-f9193a6b9e80","responses":{"200":"5bf92c83-4c86-4f8a-9b64-82332271ef80","400":"3e110fdf-14d3-4eab-aadb-9c5a53fd4214","403":"c6b35af1-6b19-4044-b08a-da37d99af618","404":"51e171ed-e945-4193-8c2f-caf65b3b854c","413":"89d6ebb6-2201-4cb1-9684-52cfa3a347d5","414":"3b4e4fb0-9370-4b7e-8342-91d24cc654f5","429":"0f737e82-f60f-465d-8753-e68fa7237de5","456":"562e7527-1f03-4b45-8d7a-d232d4f3c834","500":"46e4da73-a390-4000-8326-5bf859144813","504":"f32e29fa-f8b3-4459-912c-616fc2b25358","529":"e77fae1e-857a-4d05-b30d-5bc1b16322d3"},"security":["a7a222ba-6885-4abb-8c18-fee854814d29"],"method":"post","type":"path","servers":["cef4feb7-0d18-4c7e-b414-23c9f75d44ab","39ac81ce-ac35-40e9-9c4b-2ef650afe9e0"],"path":"/v2/translate","baseUrlOptions":["https://api.deepl.com","https://api-free.deepl.com"],"title":"Request Translation","codeSamples":[],"requestExampleLanguages":["bash"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"1aab218e-c742-4b5f-9a50-8dcf08ec36a1":{"name":"X-DeepL-Reporting-Tag","in":"header","required":false,"description":"An optional custom reporting tag used to attribute this request's usage to a team, project, customer, or other category of your choosing. Values are limited to 100 characters. See [How to use custom reporting tags](/docs/learning-how-tos/examples-and-guides/how-to-use-custom-reporting-tags) for validation rules, naming guidance, and how to retrieve usage by tag.\n","schema":{"type":"string","maxLength":100,"isRequired":false,"description":"An optional custom reporting tag used to attribute this request's usage to a team, project, customer, or other category of your choosing. Values are limited to 100 characters. See [How to use custom reporting tags](/docs/learning-how-tos/examples-and-guides/how-to-use-custom-reporting-tags) for validation rules, naming guidance, and how to retrieve usage by tag.\n","uniqueKey":"","typeLabel":"string"},"example":"team-billing"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","target_lang"],"properties":{"text":{"description":"Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified\nmany times in a single request, within the request size limit (128KiB). Translations are returned\nin the same order as they are requested. Each text in the array is translated independently — texts\ndo not share context with each other.","type":"array","x-default":["Hello, World!"],"items":{"type":"string","example":"Hello, World!","uniqueKey":"text.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"text","typeLabel":"string[]"},"target_lang":{"type":"string","description":"The language into which the text should be translated.\n\nFor the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/docs/languages/using-the-languages-api).","example":"DE","x-default":"DE","isRequired":true,"uniqueKey":"target_lang","typeLabel":"string"},"source_lang":{"type":"string","description":"Language of the text to be translated. If this parameter is omitted, the API will attempt to\ndetect the language of the text and translate it.\n\nFor the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/docs/languages/using-the-languages-api).","example":"EN","uniqueKey":"source_lang","typeLabel":"string"},"context":{"description":"Additional context that can influence a translation but is not translated itself.\n\nCharacters included in the `context` parameter will not be counted toward billing.","type":"string","example":"This is context.","uniqueKey":"context","typeLabel":"string"},"show_billed_characters":{"description":"When true, the response will include the billed_characters parameter, giving the\nnumber of characters from the request that will be counted by DeepL for billing purposes.","type":"boolean","uniqueKey":"show_billed_characters","typeLabel":"boolean"},"split_sentences":{"description":"Sets whether the translation engine should first split the input into sentences.\n\nPossible values are:\n * 0 - no splitting at all, whole input is treated as one sentence\n * 1 (default when tag_handling is not set to html) - splits on punctuation and on newlines\n * nonewlines (default when tag_handling=html) - splits on punctuation only, ignoring newlines","type":"string","enum":["0","1","nonewlines"],"default":"1","example":"1","uniqueKey":"split_sentences","typeLabel":"enum\u003cstring>"},"preserve_formatting":{"description":"Sets whether the translation engine should respect the original formatting, even if it would usually\ncorrect some aspects.","type":"boolean","default":false,"uniqueKey":"preserve_formatting","typeLabel":"boolean"},"formality":{"description":"Sets whether the translated text should lean towards formal or informal language.\nThis feature is only available for certain target languages. Setting this parameter\nwith a target language that does not support formality will fail, unless one of the\n`prefer_...` options are used.\nPossible options are:\n * `default` (default)\n * `more` - for a more formal language\n * `less` - for a more informal language\n * `prefer_more` - for a more formal language if available, otherwise fallback to default formality\n * `prefer_less` - for a more informal language if available, otherwise fallback to default formality","type":"string","enum":["default","more","less","prefer_more","prefer_less"],"default":"default","example":"prefer_more","uniqueKey":"formality","typeLabel":"enum\u003cstring>"},"model_type":{"type":"string","description":"Specifies which DeepL model should be used for translation.","enum":["quality_optimized","prefer_quality_optimized","latency_optimized"],"uniqueKey":"model_type","typeLabel":"enum\u003cstring>"},"glossary_id":{"description":"Specify the glossary to use for the translation. **Important:** This requires the `source_lang`\nparameter to be set. The language pair of the glossary has to match the language pair of the\nrequest.\n\nCannot be used together with `glossary_ids`.","type":"string","example":"def3a26b-3e84-45b3-84ae-0c0aaf3525f7","uniqueKey":"glossary_id","typeLabel":"string"},"glossary_ids":{"description":"Specify up to 5 glossaries to use for the translation, as an array of glossary IDs. Each glossary's matching terms are applied to the translation.\n\n**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.\n\nCannot be used together with `glossary_id`.","type":"array","maxItems":5,"items":{"type":"string","example":"def3a26b-3e84-45b3-84ae-0c0aaf3525f7","uniqueKey":"glossary_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"glossary_ids","typeLabel":"string[]"},"style_id":{"description":"Specify the [style rule list](/docs/customize/using-style-rules) to use for the translation.\n\n**Important:** The target language has to match the language of the style rule list. A list\ncreated for a root language (for example `en`) applies to that language and all of its variants\n(`EN-GB`, `EN-US`). A list created for a variant (for example `en-GB`) applies only when\n`target_lang` is that variant.\n\nAll `model_type` values are supported.","type":"string","example":"7ff9bfd6-cd85-4190-8503-d6215a321519","uniqueKey":"style_id","typeLabel":"string"},"translation_memory_id":{"type":"string","format":"uuid","description":"A unique ID assigned to a translation memory.","example":"a74d88fb-ed2a-4943-a664-a4512398b994","uniqueKey":"translation_memory_id","typeLabel":"string\u003cuuid>"},"translation_memory_threshold":{"type":"integer","description":"The minimum matching percentage required for a translation memory segment to be applied (recommended to be 75% or higher). A value below 50 is treated as 50.","minimum":0,"maximum":100,"default":75,"example":75,"uniqueKey":"translation_memory_threshold","typeLabel":"integer"},"custom_instructions":{"description":"Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.","type":"array","items":{"type":"string","example":"Use a friendly, diplomatic tone","uniqueKey":"custom_instructions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"custom_instructions","typeLabel":"string[]"},"style_profile_id":{"description":"Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries,\nstyle rule lists and translation memories through one ID. The profile is applied per text once the\nsource language is known: the glossaries with a dictionary for the text's language pair, the style\nrule list for the target language, and the translation memories whose source language matches the\ntext. A component that does not fit a text's language pair is left out for that text; this is not an\nerror.\n\nCannot be combined with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`,\n`translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected\nwith `400 Bad Request`. A style profile that does not exist or that your account cannot access is\nrejected with `404 Not Found`.","type":"string","format":"uuid","example":"3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47","uniqueKey":"style_profile_id","typeLabel":"string\u003cuuid>"},"tag_handling":{"description":"Sets which kind of tags should be handled. Options currently available:\n * `xml`\n * `html`","type":"string","enum":["xml","html"],"example":"html","uniqueKey":"tag_handling","typeLabel":"enum\u003cstring>"},"tag_handling_version":{"description":"Sets which version of the tag handling algorithm should be used. Options currently available:\n* `v1`: Traditional algorithm (currently the default, will become deprecated in the future).\n* `v2`: Improved algorithm released in October 2025 (will become the default in the future).","type":"string","enum":["v2","v1"],"uniqueKey":"tag_handling_version","typeLabel":"enum\u003cstring>"},"outline_detection":{"description":"Disable the automatic detection of XML structure by setting the `outline_detection` parameter\nto `false` and selecting the tags that should be considered structure tags. This will split sentences\nusing the `splitting_tags` parameter.","type":"boolean","default":true,"uniqueKey":"outline_detection","typeLabel":"boolean"},"enable_beta_languages":{"description":"This parameter is maintained for backward compatibility and has no effect.","type":"boolean","default":false,"deprecated":true,"uniqueKey":"enable_beta_languages","typeLabel":"boolean"},"non_splitting_tags":{"description":"Comma-separated list of XML tags which never split sentences.","type":"array","items":{"type":"string","example":"non_splitting_tag","uniqueKey":"non_splitting_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"non_splitting_tags","typeLabel":"string[]"},"splitting_tags":{"description":"Comma-separated list of XML tags which always cause splits.","type":"array","items":{"type":"string","example":"splitting_tag","uniqueKey":"splitting_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"splitting_tags","typeLabel":"string[]"},"ignore_tags":{"description":"Comma-separated list of XML tags that indicate text not to be translated.","type":"array","items":{"type":"string","example":"ignore_tag","uniqueKey":"ignore_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"ignore_tags","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"text":["Hello, World!"],"target_lang":"DE","source_lang":"EN","context":"This is context.","show_billed_characters":true,"split_sentences":"1","preserve_formatting":false,"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"],"style_profile_id":"3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47","tag_handling":"html","outline_detection":true,"enable_beta_languages":false,"non_splitting_tags":["non_splitting_tag"],"splitting_tags":["splitting_tag"],"ignore_tags":["ignore_tag"]}}},"exampleType":"generated"},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["text","target_lang"],"properties":{"text":{"description":"Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified many times in a single request, within the request size limit (128KiB). Translations are returned in the same order as they are requested. Each text in the array is translated independently — texts do not share context with each other.","type":"array","items":{"type":"string","example":"Hello, World!","uniqueKey":"text.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"text","typeLabel":"string[]"},"target_lang":{"type":"string","description":"The language into which the text should be translated.\n\nFor the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/docs/languages/using-the-languages-api).","example":"DE","isRequired":true,"uniqueKey":"target_lang","typeLabel":"string"},"source_lang":{"type":"string","description":"Language of the text to be translated. If this parameter is omitted, the API will attempt to\ndetect the language of the text and translate it.\n\nFor the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/docs/languages/using-the-languages-api).","example":"EN","uniqueKey":"source_lang","typeLabel":"string"},"context":{"description":"Additional context that can influence a translation but is not translated itself.\n\nCharacters included in the `context` parameter will not be counted toward billing.","type":"string","example":"This is context.","uniqueKey":"context","typeLabel":"string"},"show_billed_characters":{"description":"When true, the response will include the billed_characters parameter, giving the\nnumber of characters from the request that will be counted by DeepL for billing purposes.","type":"boolean","uniqueKey":"show_billed_characters","typeLabel":"boolean"},"split_sentences":{"description":"Sets whether the translation engine should first split the input into sentences.\n\nPossible values are:\n * 0 - no splitting at all, whole input is treated as one sentence\n * 1 (default when tag_handling is not set to html) - splits on punctuation and on newlines\n * nonewlines (default when tag_handling=html) - splits on punctuation only, ignoring newlines","type":"string","enum":["0","1","nonewlines"],"default":"1","example":"1","uniqueKey":"split_sentences","typeLabel":"enum\u003cstring>"},"preserve_formatting":{"description":"Sets whether the translation engine should respect the original formatting, even if it would usually\ncorrect some aspects.","type":"string","enum":["0","1"],"default":"0","uniqueKey":"preserve_formatting","typeLabel":"enum\u003cstring>"},"formality":{"description":"Sets whether the translated text should lean towards formal or informal language.\nThis feature is only available for certain target languages. Setting this parameter\nwith a target language that does not support formality will fail, unless one of the\n`prefer_...` options are used.\nPossible options are:\n * `default` (default)\n * `more` - for a more formal language\n * `less` - for a more informal language\n * `prefer_more` - for a more formal language if available, otherwise fallback to default formality\n * `prefer_less` - for a more informal language if available, otherwise fallback to default formality","type":"string","enum":["default","more","less","prefer_more","prefer_less"],"default":"default","example":"prefer_more","uniqueKey":"formality","typeLabel":"enum\u003cstring>"},"model_type":{"type":"string","description":"Specifies which DeepL model should be used for translation.","enum":["quality_optimized","prefer_quality_optimized","latency_optimized"],"uniqueKey":"model_type","typeLabel":"enum\u003cstring>"},"glossary_id":{"description":"Specify the glossary to use for the translation. **Important:** This requires the `source_lang`\nparameter to be set. The language pair of the glossary has to match the language pair of the\nrequest.\n\nCannot be used together with `glossary_ids`.","type":"string","example":"def3a26b-3e84-45b3-84ae-0c0aaf3525f7","uniqueKey":"glossary_id","typeLabel":"string"},"glossary_ids":{"description":"Comma-separated list of up to 5 glossary IDs to use for the translation. Each glossary's matching terms are applied to the translation. May also be sent as a repeated parameter.\n\n**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.\n\nCannot be used together with `glossary_id`.","type":"array","maxItems":5,"items":{"type":"string","example":"def3a26b-3e84-45b3-84ae-0c0aaf3525f7","uniqueKey":"glossary_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"glossary_ids","typeLabel":"string[]"},"translation_memory_id":{"type":"string","format":"uuid","description":"A unique ID assigned to a translation memory.","example":"a74d88fb-ed2a-4943-a664-a4512398b994","uniqueKey":"translation_memory_id","typeLabel":"string\u003cuuid>"},"translation_memory_threshold":{"type":"integer","description":"The minimum matching percentage required for a translation memory segment to be applied (recommended to be 75% or higher). A value below 50 is treated as 50.","minimum":0,"maximum":100,"default":75,"example":75,"uniqueKey":"translation_memory_threshold","typeLabel":"integer"},"style_profile_id":{"description":"Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries,\nstyle rule lists and translation memories through one ID. The profile is applied per text once the\nsource language is known: the glossaries with a dictionary for the text's language pair, the style\nrule list for the target language, and the translation memories whose source language matches the\ntext. A component that does not fit a text's language pair is left out for that text; this is not an\nerror.\n\nCannot be combined with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`,\n`translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected\nwith `400 Bad Request`. A style profile that does not exist or that your account cannot access is\nrejected with `404 Not Found`.","type":"string","format":"uuid","example":"3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47","uniqueKey":"style_profile_id","typeLabel":"string\u003cuuid>"},"tag_handling":{"description":"Sets which kind of tags should be handled. Options currently available:\n * `xml`\n * `html`","type":"string","enum":["xml","html"],"example":"html","uniqueKey":"tag_handling","typeLabel":"enum\u003cstring>"},"outline_detection":{"description":"Disable the automatic detection of XML structure by setting the `outline_detection` parameter\nto `false` and selecting the tags that should be considered structure tags. This will split sentences\nusing the `splitting_tags` parameter.","type":"string","default":"1","enum":["0","1"],"uniqueKey":"outline_detection","typeLabel":"enum\u003cstring>"},"enable_beta_languages":{"description":"This parameter is maintained for backward compatibility and has no effect.","type":"boolean","default":false,"deprecated":true,"uniqueKey":"enable_beta_languages","typeLabel":"boolean"},"non_splitting_tags":{"description":"Comma-separated list of XML tags which never split sentences.","type":"array","items":{"type":"string","example":"non_splitting_tag","uniqueKey":"non_splitting_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"non_splitting_tags","typeLabel":"string[]"},"splitting_tags":{"description":"Comma-separated list of XML tags which always cause splits.","type":"array","items":{"type":"string","example":"splitting_tag","uniqueKey":"splitting_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"splitting_tags","typeLabel":"string[]"},"ignore_tags":{"description":"Comma-separated list of XML tags that indicate text not to be translated.","type":"array","items":{"type":"string","example":"ignore_tag","uniqueKey":"ignore_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"ignore_tags","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"encoding":{"text":{"style":"form","explode":true}},"examples":{"Example":{"title":"Example","value":{"text":["Hello, World!"],"target_lang":"DE","source_lang":"EN","context":"This is context.","show_billed_characters":true,"split_sentences":"1","preserve_formatting":"0","formality":"prefer_more","glossary_id":"def3a26b-3e84-45b3-84ae-0c0aaf3525f7","glossary_ids":["def3a26b-3e84-45b3-84ae-0c0aaf3525f7"],"translation_memory_id":"a74d88fb-ed2a-4943-a664-a4512398b994","translation_memory_threshold":75,"style_profile_id":"3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47","tag_handling":"html","outline_detection":"1","enable_beta_languages":false,"non_splitting_tags":["non_splitting_tag"],"splitting_tags":["splitting_tag"],"ignore_tags":["ignore_tag"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5bf92c83-4c86-4f8a-9b64-82332271ef80":{"description":"The translate function returns a JSON representation of the translations in the order the text parameters have been specified.","headers":{"X-Trace-ID":{"description":"A unique identifier for the request that can be included in bug reports to DeepL support.","schema":{"type":"string"},"example":"501c3d93cc0c4f11ae2f60a226c2f0f0"}},"content":{"application/json":{"schema":{"type":"object","properties":{"translations":{"type":"array","minItems":1,"items":{"type":"object","properties":{"detected_source_language":{"description":"The language detected in the source text. It reflects the value of the `source_lang` parameter, when specified.","type":"string","example":"EN","uniqueKey":"translations.items.[INDEX].detected_source_language","typeLabel":"string"},"text":{"description":"The translated text.","type":"string","example":"Hallo, Welt!","uniqueKey":"translations.items.[INDEX].text","typeLabel":"string"},"billed_characters":{"description":"Number of characters counted by DeepL for billing purposes. Only present if the show_billed_characters parameter is set to true.","type":"integer","example":42,"uniqueKey":"translations.items.[INDEX].billed_characters","typeLabel":"integer"},"model_type_used":{"description":"Indicates the translation model used. Only present if model_type parameter is included in the request.","type":"string","example":"quality_optimized","uniqueKey":"translations.items.[INDEX].model_type_used","typeLabel":"string"},"tag_handling_version":{"description":"The version of the tag handling algorithm used for the translation. Only present when the `tag_handling` parameter (`xml` or `html`) is set. If you don't specify `tag_handling_version`, this shows the default that was applied.","type":"string","enum":["v2","v1"],"example":"v2","uniqueKey":"translations.items.[INDEX].tag_handling_version","typeLabel":"enum\u003cstring>"}},"uniqueKey":"translations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"translations","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"translations":[{"detected_source_language":"EN","text":"Hallo, Welt!","billed_characters":42,"model_type_used":"quality_optimized","tag_handling_version":"v2"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"3e110fdf-14d3-4eab-aadb-9c5a53fd4214":{"description":"Bad request. Please check error message and your parameters.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"c6b35af1-6b19-4044-b08a-da37d99af618":{"description":"Authorization failed. Please supply a valid `DeepL-Auth-Key` via the `Authorization` header. This error is also returned when the API key is scoped but does not include the scope required for this endpoint.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"51e171ed-e945-4193-8c2f-caf65b3b854c":{"description":"The requested resource could not be found.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"89d6ebb6-2201-4cb1-9684-52cfa3a347d5":{"description":"The request size exceeds the limit.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"3b4e4fb0-9370-4b7e-8342-91d24cc654f5":{"description":"The request URL is too long. You can avoid this error by using a POST request instead of a GET request, and sending the parameters in the HTTP body.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"oneOf.0.code","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Error body returned by DeepL's edge infrastructure for failures that occur before a request reaches the API itself. The message is nested under `error`, unlike the application-level `ErrorResponse`. Clients that parse error bodies should handle both shapes.\n","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","example":"Bad Gateway.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"0f737e82-f60f-465d-8753-e68fa7237de5":{"description":"Too many requests. Please wait and resend your request.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"562e7527-1f03-4b45-8d7a-d232d4f3c834":{"description":"Quota exceeded. The character limit has been reached.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"46e4da73-a390-4000-8326-5bf859144813":{"description":"Internal error.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"oneOf.0.code","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Error body returned by DeepL's edge infrastructure for failures that occur before a request reaches the API itself. The message is nested under `error`, unlike the application-level `ErrorResponse`. Clients that parse error bodies should handle both shapes.\n","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","example":"Bad Gateway.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"f32e29fa-f8b3-4459-912c-616fc2b25358":{"description":"Resource currently unavailable. Try again later.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"oneOf.0.code","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Error body returned by DeepL's edge infrastructure for failures that occur before a request reaches the API itself. The message is nested under `error`, unlike the application-level `ErrorResponse`. Clients that parse error bodies should handle both shapes.\n","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","example":"Bad Gateway.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"},"e77fae1e-857a-4d05-b30d-5bc1b16322d3":{"description":"Too many requests. Please wait and resend your request.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A machine-readable identifier for the error, when available. Clients should match on this value rather than on `message` when branching on error types.","example":"invalid_content_type","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"invalid_content_type"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"a7a222ba-6885-4abb-8c18-fee854814d29":{"auth_header":{"type":"apiKey","description":"Authentication with `Authorization` header and `DeepL-Auth-Key` authentication scheme. Example: `DeepL-Auth-Key \u003capi-key>`\n","name":"Authorization","in":"header","x-default":"DeepL-Auth-Key ","scopes":[],"schemeName":"auth_header"}}},"servers":{"cef4feb7-0d18-4c7e-b414-23c9f75d44ab":{"url":"https://api.deepl.com","description":"DeepL API Pro"},"39ac81ce-ac35-40e9-9c4b-2ef650afe9e0":{"url":"https://api-free.deepl.com","description":"DeepL API Free"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"Authentication with `Authorization` header and `DeepL-Auth-Key` authentication scheme. Example: `DeepL-Auth-Key \u003capi-key>`\n","name":"Authorization","in":"header","x-default":"DeepL-Auth-Key ","scopes":[],"schemeName":"auth_header"},"schema":{"title":"Authorization","type":"string","description":"Authentication with `Authorization` header and `DeepL-Auth-Key` authentication scheme. Example: `DeepL-Auth-Key \u003capi-key>`\n","isRequired":true,"default":"DeepL-Auth-Key ","typeLabel":"string","deprecated":false},"schemeName":"auth_header","name":"Authorization"}],"title":"auth_header"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"deepl-c950b784","siteName":"DeepL Documentation","title":"Translate text - DeepL Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T08:55:22.857Z","originalFileLocation":"api-reference/translate/request-translation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DeepL Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Translate text - DeepL Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DeepL Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.deepl.com/api-reference/translate/request-translation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://deepl-c950b784.mintlify.app/_mintlify/api/og/v2?division=Translate+Text\u0026amp;title=Translate+text\u0026amp;description=Translate+text+between+any+supported+language+pair%2C+with+options+for+formality%2C+glossaries%2C+tag+handling%2C+and+context.\u0026amp;theme=a0c51edccdcaa2c1bb0516c1\u0026amp;signature=2a59770e8f9da2f724f0940738fedf0ce473d1037bc1c818205d65075ea95770\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Translate text - DeepL Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://deepl-c950b784.mintlify.app/_mintlify/api/og/v2?division=Translate+Text\u0026amp;title=Translate+text\u0026amp;description=Translate+text+between+any+supported+language+pair%2C+with+options+for+formality%2C+glossaries%2C+tag+handling%2C+and+context.\u0026amp;theme=a0c51edccdcaa2c1bb0516c1\u0026amp;signature=2a59770e8f9da2f724f0940738fedf0ce473d1037bc1c818205d65075ea95770\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/deepl-c950b784/hSlhr1iEcolF1mhS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DeepL Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f2b46\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"0VDGg3gJk53xL5burIUykHtV_eBhXTp5AMdzaeffbbU\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.deepl.com/api-reference/translate/request-translation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/translate/request-translation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.deepl.com/\",\"name\":\"DeepL\",\"legalName\":\"DeepL SE\",\"url\":\"https://www.deepl.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://static.deepl.com/img/logo/deepl-logo-blue.svg\"},\"sameAs\":[\"https://github.com/DeepL\",\"https://www.linkedin.com/company/deepl\",\"https://x.com/DeepLcom\",\"https://www.instagram.com/deeplhq/\",\"https://www.youtube.com/@DeepLcom\"]},{\"@type\":\"WebSite\",\"@id\":\"https://developers.deepl.com#website\",\"name\":\"DeepL Documentation\",\"url\":\"https://developers.deepl.com\",\"publisher\":{\"@id\":\"https://www.deepl.com/\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.deepl.com/api-reference/translate/request-translation#webpage\",\"url\":\"https://developers.deepl.com/api-reference/translate/request-translation\",\"name\":\"Translate text\",\"description\":\"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.\",\"dateModified\":\"2026-09-10T08:55:22.857Z\",\"isPartOf\":{\"@id\":\"https://developers.deepl.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.deepl.com/api-reference/translate/request-translation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.deepl.com/api-reference/translate/request-translation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"DeepL Documentation\",\"item\":\"https://developers.deepl.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Translate text\",\"item\":\"https://developers.deepl.com/api-reference/translate/request-translation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.deepl.com/api-reference/translate/request-translation#apireference\",\"headline\":\"Translate text\",\"name\":\"Translate text\",\"description\":\"Translate text between any supported language pair, with options for formality, glossaries, tag handling, and context.\",\"url\":\"https://developers.deepl.com/api-reference/translate/request-translation\",\"mainEntityOfPage\":{\"@id\":\"https://developers.deepl.com/api-reference/translate/request-translation#webpage\"},\"dateModified\":\"2026-09-10T08:55:22.857Z\",\"publisher\":{\"@id\":\"https://www.deepl.com/\"},\"isPartOf\":{\"@id\":\"https://developers.deepl.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DeepL Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DeepL Documentation","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":"/docs/getting-started/quickstart"}]},{"tab":"Translate","icon":"language","pages":[{"title":"Translate","href":"/docs/translate/overview"}]},{"tab":"Voice","icon":"waveform-lines","pages":[{"title":"Voice","href":"/docs/voice/overview"}]},{"tab":"Customize","icon":"wand-magic-sparkles","pages":[{"title":"Customize","href":"/docs/customize/overview"}]},{"tab":"Admin","icon":"sliders","pages":[{"title":"Admin","href":"/docs/admin/overview"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Translate","pages":[{"group":"Translate Text","pages":[{"openapi":"post /v2/translate","title":"Translate text","href":"/api-reference/translate/request-translation"}]},{"group":"Translate Documents","pages":[{"openapi":"post /v2/document","title":"Upload and translate a document","description":"Upload a document for translation and receive the document ID and key needed to check status and download the result.","href":"/api-reference/document/upload-and-translate-a-document"},{"openapi":"post /v2/document/{document_id}","title":"Check document status","href":"/api-reference/document/check-document-status"},{"openapi":"post /v2/document/{document_id}/result","title":"Download translated document","href":"/api-reference/document/download-translated-document"}]},{"group":"Quality Evaluation","tag":"BETA","pages":[{"openapi":"get /v1/quality-evaluations/{job_id}","tag":"BETA","title":"Poll for the evaluation result","href":"/api-reference/quality-evaluations/poll"}]},{"group":"Write","pages":[{"openapi":"post /v2/write/rephrase","title":"Improve text","href":"/api-reference/improve-text/request-text-improvement"},{"openapi":"post /v2/write/correct","title":"Correct text","href":"/api-reference/improve-text/correct-text"}]},{"title":"Detect Language","tag":"BETA","href":"/api-reference/detect-language/detect-language-beta"}]},{"group":"Customize","pages":[{"group":"Glossaries","pages":[{"openapi":"post /v3/glossaries","title":"Create a glossary","href":"/api-reference/multilingual-glossaries/create-a-glossary"},{"openapi":"get /v3/glossaries","title":"List all glossaries","href":"/api-reference/multilingual-glossaries/list-all-glossaries"},{"openapi":"get /v3/glossaries/{glossary_id}","title":"Retrieve glossary details","href":"/api-reference/multilingual-glossaries/retrieve-glossary-details"},{"openapi":"patch /v3/glossaries/{glossary_id}","title":"Edit glossary details","href":"/api-reference/multilingual-glossaries/edit-glossary-details"},{"openapi":"get /v3/glossaries/{glossary_id}/entries","title":"Retrieve glossary entries","href":"/api-reference/multilingual-glossaries/retrieve-glossary-entries"},{"openapi":"delete /v3/glossaries/{glossary_id}","title":"Delete a glossary","href":"/api-reference/multilingual-glossaries/delete-a-glossary"},{"openapi":"delete /v3/glossaries/{glossary_id}/dictionaries","sidebarTitle":"Delete a glossary dictionary","title":"Deletes the dictionary associated with the given language pair with the given glossary ID.","href":"/api-reference/multilingual-glossaries/deletes-the-dictionary-associated-with-the-given-language-pair-with-the-given-glossary-id"},{"openapi":"put /v3/glossaries/{glossary_id}/dictionaries","sidebarTitle":"Create or replace glossary entries","title":"Replaces or creates a dictionary in the glossary with the specified entries.","href":"/api-reference/multilingual-glossaries/replaces-or-creates-a-dictionary-in-the-glossary-with-the-specified-entries"},{"group":"Glossaries v2","tag":"DEPRECATED","pages":[{"openapi":"get /v2/glossary-language-pairs","title":"List language pairs supported for glossaries","tag":"DEPRECATED","playground":"none","href":"/api-reference/multilingual-glossaries/list-language-pairs-supported-by-glossaries"},{"openapi":"post /v2/glossaries","title":"Create a glossary","playground":"none","href":"/api-reference/glossaries/create-a-glossary"},{"openapi":"get /v2/glossaries","title":"List all glossaries","playground":"none","href":"/api-reference/glossaries/list-all-glossaries"},{"openapi":"get /v2/glossaries/{glossary_id}","title":"Retrieve glossary details","playground":"none","href":"/api-reference/glossaries/retrieve-glossary-details"},{"openapi":"get /v2/glossaries/{glossary_id}/entries","title":"Retrieve glossary entries","playground":"none","href":"/api-reference/glossaries/retrieve-glossary-entries"},{"openapi":"delete /v2/glossaries/{glossary_id}","title":"Delete a glossary","playground":"none","href":"/api-reference/glossaries/delete-a-glossary"}]}]},{"group":"Spoken Terms","pages":[{"openapi":"post /v3/spoken-terms","title":"Create Spoken Terms collection","href":"/api-reference/spoken-terms/create-spoken-terms-collection"},{"openapi":"get /v3/spoken-terms","title":"List all Spoken Terms collections","href":"/api-reference/spoken-terms/list-all-spoken-terms"},{"openapi":"get /v3/spoken-terms/{spoken_terms_id}","title":"Retrieve Spoken Terms collection details","href":"/api-reference/spoken-terms/retrieve-spoken-terms-details"},{"openapi":"patch /v3/spoken-terms/{spoken_terms_id}","title":"Edit Spoken Terms collection details","href":"/api-reference/spoken-terms/edit-spoken-terms-details"},{"openapi":"get /v3/spoken-terms/{spoken_terms_id}/entries","title":"Retrieve Spoken Terms entries","href":"/api-reference/spoken-terms/retrieve-spoken-terms-entries"},{"openapi":"delete /v3/spoken-terms/{spoken_terms_id}","title":"Delete Spoken Terms collection","href":"/api-reference/spoken-terms/delete-spoken-terms"},{"openapi":"delete /v3/spoken-terms/{spoken_terms_id}/term-lists","title":"Delete a term list","href":"/api-reference/spoken-terms/delete-spoken-terms-list"},{"openapi":"put /v3/spoken-terms/{spoken_terms_id}/term-lists","title":"Replace or create a term list","href":"/api-reference/spoken-terms/replace-or-create-term-list"}]},{"group":"Style Profiles","pages":[{"openapi":"get /v3/style_profiles","title":"List style profiles","href":"/api-reference/style-profiles/list-all-style-profiles"},{"openapi":"post /v3/style_profiles","title":"Create a style profile","href":"/api-reference/style-profiles/create-style-profile"},{"openapi":"get /v3/style_profiles/{style_profile_id}","title":"Retrieve a style profile","href":"/api-reference/style-profiles/get-style-profile"},{"openapi":"patch /v3/style_profiles/{style_profile_id}","title":"Update a style profile","href":"/api-reference/style-profiles/update-style-profile"},{"openapi":"delete /v3/style_profiles/{style_profile_id}","title":"Delete a style profile","href":"/api-reference/style-profiles/delete-style-profile"}]},{"group":"Style Rules","pages":[{"openapi":"get /v3/style_rules","title":"Get all style rule lists","href":"/api-reference/style-rules/list-all-style-rules"},{"openapi":"post /v3/style_rules","title":"Create a style rule list","href":"/api-reference/style-rules/create-style-rule"},{"openapi":"get /v3/style_rules/{style_id}","title":"Get a style rule list","href":"/api-reference/style-rules/get-style-rule"},{"openapi":"patch /v3/style_rules/{style_id}","title":"Update a style rule list's name","href":"/api-reference/style-rules/update-style-rule"},{"openapi":"put /v3/style_rules/{style_id}/configured_rules","title":"Replace configured rules","href":"/api-reference/style-rules/update-configured-rules"},{"openapi":"delete /v3/style_rules/{style_id}","title":"Delete a style rule list","href":"/api-reference/style-rules/delete-style-rule"},{"openapi":"post /v3/style_rules/{style_id}/custom_instructions","title":"Create a custom instruction","href":"/api-reference/style-rules/create-custom-instruction"},{"openapi":"get /v3/style_rules/{style_id}/custom_instructions/{instruction_id}","title":"Get a custom instruction","href":"/api-reference/style-rules/get-custom-instruction"},{"openapi":"put /v3/style_rules/{style_id}/custom_instructions/{instruction_id}","title":"Replace a custom instruction","href":"/api-reference/style-rules/update-custom-instruction"},{"openapi":"delete /v3/style_rules/{style_id}/custom_instructions/{instruction_id}","title":"Delete a custom instruction","href":"/api-reference/style-rules/delete-custom-instruction"}]},{"group":"Translation Memory","pages":[{"openapi":"get /v3/translation_memories","title":"List translation memories","href":"/api-reference/translation-memory/list-translation-memories"},{"openapi":"get /v3/translation_memories/{translation_memory_id}","title":"Retrieve a translation memory","href":"/api-reference/translation-memory/retrieve-a-translation-memory"},{"openapi":"get /v3/translation_memories/{translation_memory_id}/segments","title":"List translation memory segments","href":"/api-reference/translation-memory/list-translation-memory-segments"},{"openapi":"post /v3/translation_memories/import","title":"Import a translation memory","href":"/api-reference/translation-memory/import-a-translation-memory"},{"openapi":"post /v3/translation_memories/{translation_memory_id}/export","title":"Export a translation memory","href":"/api-reference/translation-memory/export-a-translation-memory"},{"openapi":"get /v3/translation_memories/jobs/{job_id}","title":"Retrieve an import or export job","href":"/api-reference/translation-memory/retrieve-a-translation-memory-job"},{"openapi":"delete /v3/translation_memories/{translation_memory_id}","title":"Delete a translation memory","href":"/api-reference/translation-memory/delete-a-translation-memory"}]}]},{"group":"Voice","pages":[{"group":"Real-Time","pages":[{"openapi":"post /v3/voice/realtime","title":"Request Session","href":"/api-reference/voice/request-session"},{"asyncapi":"voiceStream","title":"WebSocket Streaming","href":"/api-reference/voice/websocket-streaming"},{"openapi":"get /v3/voice/realtime","title":"Reconnect Session","href":"/api-reference/voice/reconnect-session"}]}]},{"group":"Translate Audio Files","hidden":true,"pages":[{"title":"Translate Audio Files","sidebarTitle":"Overview","href":"/api-reference/jobs-voice-translate"},{"openapi":"post /v1/jobs/voice/translate","title":"Create a voice translation job","href":"/api-reference/jobs-voice-translate/create-voice-translate-job"},{"openapi":"get /v1/jobs/voice/translate/{job_id}","title":"Get voice translation job status","href":"/api-reference/jobs-voice-translate/get-voice-translate-job-status"},{"title":"Reference","sidebarTitle":"Reference","href":"/api-reference/jobs-voice-translate/reference"}]},{"group":"Languages","pages":[{"group":"Languages v3","pages":[{"openapi":"get /v3/languages","title":"Retrieve languages","href":"/api-reference/languages/retrieve-languages-by-resource"},{"openapi":"get /v3/languages/resources","title":"Retrieve language resources","href":"/api-reference/languages/retrieve-resources"}]},{"group":"Languages v2","tag":"DEPRECATED","pages":[{"openapi":"get /v2/languages","title":"Retrieve supported languages (v2)","tag":"DEPRECATED","href":"/api-reference/languages/retrieve-supported-languages"}]}]},{"group":"Admin","pages":[{"group":"Managing Developer Keys","pages":[{"openapi":"post /v2/admin/developer-keys","title":"Create a developer key","href":"/api-reference/admin-api/managing-developer-keys/create-key"},{"openapi":"get /v2/admin/developer-keys","title":"Get developer keys","href":"/api-reference/admin-api/managing-developer-keys/get-keys"},{"openapi":"put /v2/admin/developer-keys/deactivate","title":"Deactivate a developer key","href":"/api-reference/admin-api/managing-developer-keys/deactivate-key"},{"openapi":"put /v2/admin/developer-keys/label","title":"Rename a developer key","href":"/api-reference/admin-api/managing-developer-keys/rename-key"},{"openapi":"put /v2/admin/developer-keys/limits","title":"Set developer key limits","href":"/api-reference/admin-api/managing-developer-keys/set-usage-limits"}]},{"group":"Usage \u0026 Quota","pages":[{"openapi":"get /v2/usage","title":"Check usage and limits","href":"/api-reference/usage-and-quota/check-usage-and-limits"}]},{"group":"Organization Usage Analytics","pages":[{"openapi":"get /v2/admin/analytics","title":"Get usage analytics","href":"/api-reference/admin-api/get-usage-analytics"},{"openapi":"get /v2/admin/analytics/custom-tags","title":"Get custom tag usage analytics","href":"/api-reference/admin-api/get-custom-tag-usage-analytics"}]}]}]}]},"title":"Translate text - DeepL Documentation","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-BVNUlwBc.js","dist-aeztFa9U.js","lib--scc4DXi.js","lib-B8HbPgcC.js","clsx-rL8ZCCw4.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","AssistantPageLink-BywkCr5C.js"]}