Translate a document
translate_documentTranslate documents into 12 languages while preserving layout, tables, images, and formulas. Saves output next to source and returns its path. Costs 100 credits per 1,000 words; confirm before use.
Instructions
Translate a document into another language while keeping its layout, tables, images and formulas. Takes .docx, .pdf, .pptx, .xlsx, .epub, .html and .txt. Saves the result next to the source and returns its path. COSTS CREDITS at 100 per 1,000 words processed (10 minimum) - say so and get agreement first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | Where to write the result; defaults to beside the source | |
| source_lang | No | Source language, or auto to detect it (the default) | |
| target_lang | Yes | Target language: zh, en, zh-tw, ja, ko, es, fr, pt, ru, de, pl or it | |
| wait_seconds | No | How long to wait before returning a job id (default 55) | |
| document_path | Yes | Absolute path to the document |