Create Translation Task
create_translationCreate a translation task for a document using a local file path or URL. Specify the target language, optionally the source language, and enable math formula optimization for PDFs.
Instructions
Create a document translation task. Supports file upload via path or URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_lang | Yes | Target language code (required), e.g., en, zh, ko, ja | |
| file_url | No | Document URL to translate (mutually exclusive with file_path) | |
| file_path | No | Local file path to translate (mutually exclusive with file_url) | |
| from_lang | No | Source language code (optional, auto-detect if not specified) | |
| optimize_math_formula | No | Optimize math formulas (PDF only) |