Document translation
1. Product introduction
Designed specifically for document translation, this service supports over 150 languages and provides bridge translation capabilities, enabling thousands of language pair combinations. It excels at translating large, complex, and multi-page documents. The service does not currently support scanned documents.
It performs exceptionally well in the following areas:
Content accuracy: Delivers precise translations of text, parameters, and units.
Structural fidelity: Preserves the original document layout, margins, and formatting.
2. Use cases
Ideal for various scenarios, including translating product manuals for cross-border e-commerce, contracts, agreements, business proposals, qualification documents, and textbooks and courseware.
3. Features
Supports PDF, Word, and Excel formats. Source documents can contain multiple languages. For a complete list of supported languages, see section 4.4.
Translates text embedded in images, charts, and special symbols within documents.
Preserves the original document layout and formatting with high fidelity.
Supports translation of single PDF and Word documents of up to 800 pages.
Allows you to customize translation results using glossaries for translation intervention. Supported rules include: do not translate (ABC -> ABC), specified translation (ABC -> DEF), and text removal (ABC -> empty value). This feature is commonly used for brand term protection. To apply a glossary, pass the corresponding glossary ID when calling the API. You can upload up to 100,000 glossary entries. If you need a higher limit, please contact us. For detailed instructions, see the Multimodal Translation and Translation Intervention Guide.
4. Developer guide
4.1. Submission API
4.1.1. Request parameters
Supported document types: PDF, WORD, EXCEL
File requirements:
File size must be 100 MB or less.
For WORD files, a top-to-bottom layout is recommended. Avoid dense arrangements of text and images. Strict formatting constraints can cause layout issues if the translated text is longer than the source text.
For EXCEL files, the service does not translate cells that contain formulas. Review your file before submission for optimal results.
Capacity limits:
WORD: 100 MB, 800 pages
PDF: 100 MB, 800 pages
EXCEL: 100 MB, supports multiple sheets
Parameter | Type | Required | Description |
Url | string | Yes | The publicly accessible OSS URL of the source document. |
TargetLanguage | string | Yes | The target language. |
FileType | string | Yes |
|
Glossary | string | No |
This feature is commonly used for brand term protection. Example: |
4.1.2. Request example
{
"Url": "https://aib-innovation-oss.oss-accelerate.aliyuncs.com/AI_Business/38dao/testdemo.pdf?Expires=3356578313&OSSAccessKeyId=LTAI5tE8X3gEy66SRU1V8dig&Signature=8niQY2HtMQY7h05zmSUdyORML9E%3D",
"TargetLanguage": "en",
"FileType": "PDF"
}4.1.3. Response parameters
Parameter | Type | Description |
RequestId | string | The unique request ID, used for troubleshooting and tracking. |
Data | object | Information about the asynchronous task. |
Data.TaskId | string | The unique task ID. Use this ID to query the task status and retrieve the results. |
Message | string | An error message, such as "The parameter contains sensitive information. Please try a different input." |
Code | string | The response code. |
Success | boolean | Indicates whether the request was successful: |
4.1.4. Response example
{
"Data": {
"TaskId": "6071a030-5c92-9df1-96d0-44952343439a"
},
"RequestId": "39E8A74B-F99E-1195-A5FF-3ECC5F94F304",
"Message": "Success",
"Code": "success",
"Success": true
}4.2. Query API
4.2.1. Request parameters
For details, see the Asynchronous Result Query API documentation.
4.2.2. Request example
{
"TaskId": "6071a030-5c92-9df1-96d0-44952343439a"
}4.2.3. Response parameters
Parameter | Type | Description |
Code | number | The response code. |
Data | object | The result data. |
Data.UsageMap | string | Contains usage data, such as the number of pages processed for billing. |
Data.Status | string | The task status: QUEUED: The task has been submitted and is waiting to be processed. IN_PROGRESS: The task is being processed. COMPLETED: The task has been successfully completed. FAILED: The task failed to complete. |
Data.TaskId | string | The task ID. |
Data.Result | string (JSON) | The task result. If the task status is FAILED, this field contains the reason for the failure. |
RequestId | string | The unique ID for the request. |
Success | boolean | Indicates whether the request was successful: |
Message | string | An error message, such as "The parameter contains sensitive information. Please try a different input." |
4.2.4. Response example
{
"Data": {
"Status": "COMPLETED",
"UsageMap": {
"ProcessedDocumentPageCount": 1
},
"TaskId": "6071a030-5c92-9df1-96d0-44952343439a",
"Result": "{\"url\":\"https://aidge-bailian-oss.oss-cn-beijing.aliyuncs.com/gaolinfeng/pdf_trans/translated_en.pdf?security-token=CAISzwJ1q6Ft5B2yfSjIr5ncKMmMupUQ3KqYa1HUtjkTXcF71pSf1Dz2IHhMeHFgAeAbs%2Fw%2Fm29W6v4SlqZdVplOWU3Da%2BB364xK7Q754gNjBULuv9I%2Bk5SANTW5KXyShb3%2FAYjQSNfaZY3eCTTtnTNyxr3XbCirW0ffX7SClZ9gaKZ8PGD6F00kYu1bPQx%2FssQXGGLMPPK2SH7Qj3HXEVBjt3gX6wo9y9zmk53FsUWA1QKmlr9F%2BdWhGPX%2BMZkwZqUYesyuwel7epDG1CNt8BVQ%2FM909vccoWuf7onNXgQJs0rZbbaMoscSJQ51aaV%2FFaUBt%2FXmi%2Fxzt6nJkID626jAvGbZzsW0rumBtyikcIvBXr5RHT3rKupsNt8hHK1UotEFoIMqxRLLQaBVDlVaJ2ICxM%2B0xCFZtp7kzHnNJWb7ssUUla4R5TGOWbKW0LHxHt3xuRqAARFplY72AHVjjEGnySyyXiyu4oiPWQ7AQ6zk4bDjcCFgoHLzetexRSuySN5rWUJfdE7pmYDv7f0BnCtKOJlG86oQ7tcwn5Lb9po%2BkxKJ2h%2B%2BVBxRrT72J3yIwbnzXyZphZ7qI2jo3wzHddCqsFATSffAVxVjWGYywcXO6P42mWpaIAA%3D&OSSAccessKeyId=STS.NZics8WJ1khsiweR9FQNW9Q46&Expires=1780390280&Signature=78SHPcMGzcnbUAwL4zucmtyGZmw%3D\"}"
},
"RequestId": "838F8E51-C020-1E03-966C-92653E7564F2",
"Message": "Success",
"Code": "success",
"Success": true
}4.3. Error codes
For a list of error codes, see the Asynchronous Result Query API documentation.
4.4. Supported languages
For a list of supported languages and their corresponding codes, see Language Mappings.
5. Billing
¥24 per 1 million characters.