All Products
Search
Document Center

Machine Translation:Machine Translation Professional Call Guide

Last Updated:Apr 01, 2026

Translates text using Machine Translation Professional Edition, with specialized engines optimized for e-commerce, medical, social, and financial content.

The QPS (queries per second) limit for this API is 50. To request a higher limit, contact support via DingTalk group 21983957.

Before calling this API, review the billing methods and pricing for Professional Edition.2. Before you use this API, make sure that you understand the billing methods and pricing of the Machine Translation Professional Edition.

Debugging

OpenAPI Explorer automatically calculates the signature value and generates sample code for different SDKs. Try this API in OpenAPI Explorer.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesTranslateThe operation to perform. Set to Translate.
FormatTypeStringYestextThe format of the source and translated text. Valid values: html (HTML format — text is processed as markup), text (plain text — text is not processed as markup).
SceneStringYestitleThe translation scenario, which determines the engine used. Valid values: title, description, communication, medical, social, finance. See Scenarios for details.
SourceLanguageStringYeszhThe source language code.
SourceTextStringYesHelloThe text to translate.
TargetLanguageStringYesenThe target language code.

Scenarios

Each scenario uses a separately trained engine optimized for that content type. Set the Scene parameter to one of the following values:

ValueScenarioOptimized for
titleProduct titleShort e-commerce product titles trained on Alibaba e-commerce data
descriptionProduct descriptionDetailed product descriptions trained on Alibaba product catalog data
communicationE-commerce conversationBuyer-seller messages in e-commerce contexts
medicalMedicalMedical literature, terminology, and drug names
socialSocialColloquial and conversational text
financeFinanceFinancial industry content

Response elements

ParameterTypeExampleDescription
CodeInteger200The HTTP status code.
DataStruct—The response data.
TranslatedStringHelloThe translated text.
WordCountString10The word count of the source text.
DetectedLanguageStringzhThe detected source language code. Returned only when SourceLanguage is set to auto.
MessageStringsuccessThe response message.
RequestIdString86D18195-D89C-4C8C-9DC4-5FCE789CE6D5The request ID.

Examples

Sample request

http(s)://[Endpoint]/?Action=Translate
&FormatType=text
&Scene=title
&SourceLanguage=en
&SourceText=Hello
&TargetLanguage=zh
&<Common request parameters>

Sample success response — XML

<TranslateResponse>
    <Data>
        <Translated>Hello</Translated>
    </Data>
    <RequestId>22A7F1D3-57AF-4F64-B2A6-5E1A180CF6B1</RequestId>
    <Code>200</Code>
</TranslateResponse>

Sample success response — JSON

{
    "TranslateResponse": {
        "Data": {
            "Translated": "Hello"
        },
        "RequestId": "22A7F1D3-57AF-4F64-B2A6-5E1A180CF6B1",
        "Code": 200
    }
}

Error codes

HTTP status codeError codeError messageDescription
10110001The request has timed out.The request timed out.
10210002A system error occurred.System error.
10310003An error occurred while decoding the URL. Verify that the specified URL is encoded.The source text is not URL encoded.
10410004Some required parameters are missing.The application ID is not specified.
10510005The specified language pair is not supported.The language pair is not supported.
10610006An error occurred while detecting the language.Language detection failed.
10710007An error occurred while translating.Translation failed.
10810008The specified string is too long.The source text exceeds the maximum length.
10910009The RAM user has no permissions.The RAM user does not have the required permissions.
11010010The account does not activate the service.Machine Translation is not activated for this account.
11110011The sub-account service failed.The RAM user service failed.
11210012Translation service call failedThe translation service call failed.
11310013The account service is not activated or the payment is overdue.The service is not activated or the account has an overdue payment.
19919999An unknown error occurred.An unknown error occurred.

For the full list of error codes, see Service error codes.

For more error codes, visit the Error Center.