Translate Document
Translate a PDF document into a target language while preserving the original formatting, layout, and images.
Required scopes (OAuth 2.0)
Required scopes (OAuth 2.0)
pdf:filesAuthorizations
Provide your API key in the X-API-Key header, e.g., X-API-Key: YOUR_API_KEY.
Body
ISO language code for the target language (e.g., vi, fr, ja, zh-hans).
Supported codes: ar, bn, bg, ca, zh-hans, zh-hant, hr, cs, da, nl, en, et, fa, fi, fr, de, el, gu, he, hi, hu, id, it, ja, kn, ko, lv, lt, ms, ml, mr, no, pl, pt, ro, ru, sr, sk, sl, es, sw, sv, ta, te, th, tr, uk, ur, vi.
Lumin document ID of the PDF to translate.
Required when file_url is not provided. Takes priority if both are provided.
To obtain a document ID, upload the file to Lumin first using Upload Document.
Publicly accessible URL of the PDF file to translate.
Required when document_id is not provided. Ignored if document_id is also provided.
Page range to translate. Accepts comma-separated pages and ranges (e.g., 1-10, 1,3,5-8).
If omitted, all pages are translated (up to the 40-page limit).
Output file format.
pdf, html Custom name for the translated file (without extension). Default is {target_language}_{original_name}.
Response
Returns a temporary download URL for the translated file.
Temporary URL to download the translated file.
Unix epoch timestamp (in milliseconds) when the signed_url expires.
Format of the output file.
pdf, html ISO language code of the auto-detected source language.
ISO language code of the target language.
Name of the translated output file (with extension).
Number of pages that were translated.
Number of translation requests the user has remaining for today.