The document translation API allows you to translate whole documents and supports the following file types and extensions:
docx- Microsoft Word Documentpptx- Microsoft PowerPoint Documentxlsx- Microsoft Excel Documentpdf- Portable Document Formathtm / html- HTML Documenttxt- Plain Text Documentxlf / xliff- XLIFF Document, version 2.1srt- SRT Documentjpeg / jpg / png- Image
Please note that with every submitted document of type .pptx, .docx, .xlsx, or .pdf, you are billed a minimum of 50,000 characters with the DeepL API plan, no matter how many characters are included in the document.
Translating a document usually involves three types of HTTP requests:
- upload the document to be translated,
- periodically check the status of the document translation,
- once the status call reports
done, download the translated document.
To learn more about context in DeepL API translations, we recommend this article.