Translate document
translate_documentTranslate a document from a public URL. Supported formats include PDF, DOCX/DOC, XLSX/XLS, PPTX/PPT, EPUB, TXT, HTML, MD and CSV. Upstream size limits: PDF <= 30 MB, other formats <= 80 MB. This is an async job: the call waits up to wait_seconds (default 30, max 120) and returns a job_id if still running. Call again with the same job_id to poll; polling does not start a new translation job. Upstream deletes temporary/original files after processing and result URLs expire (about 24 hours), so download promptly. Cost: 5 credits per new job, charged by mcp-credit-gateway before forwarding the request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target language code or name, e.g. en, zh, cht, ja, ko, fr, de, es. | |
| from | No | Source language code or name. Defaults to 'auto'. | auto |
| job_id | No | Resume polling an existing job. Polling does not create a new upstream job. | |
| doc_url | No | Publicly reachable document URL (signed URLs are fine). Supported: PDF, DOCX/DOC, XLSX/XLS, PPTX/PPT, EPUB, TXT, HTML, MD, CSV, SRT and more. Upstream size limits: PDF <= 30 MB, other formats <= 80 MB. | |
| file_name | No | Optional original file name, used by the upstream for the output file name. | |
| wait_seconds | No | How long to wait for the async job in this call (0-120 seconds, default 30). | |
| idempotency_key | No | Optional per-job key for upstream job isolation. Billing is handled by mcp-credit-gateway. |