All Products
Search
Document Center

:Text translation

Last Updated:Sep 22, 2026

Marco MT is a large language model from Aidge, fine-tuned for e-commerce and aligned with translation preferences for translation tasks. For more details, see Key Concepts › Marco MT.

Overview

The model supports over 100 language directions (including bridging) and specializes in Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It also supports language detection for 24 languages. If you do not specify a source language, the service automatically performs detection.

Use cases

  • Product titles: Accurately translate phrases, keywords, and trending terms in product titles into the target language to increase product visibility on e-commerce platforms.

  • Product descriptions: Product descriptions are often long, with diverse and complex formatting. The service supports long-text and HTML translation, providing excellent quality while preserving the original format.

  • Product attributes: Attribute terms are short and often contain e-commerce-specific terms such as model numbers and parameters.

  • Customer service conversations: The service handles common conversational issues such as missing context and typos. The service also supports polite expressions for certain language directions.

Additionally, the Marco MT large language model can be used for general-purpose translation in scenarios such as office communication, meetings, and daily conversations.

Features

  • Supported languages: Supports translation between more than 100 languages and language detection for 24 languages. For a detailed list, see Supported languages below.

  • Extremely low hallucination rate and high-speed inference: As a large language model aligned with translation preferences, Marco MT provides faster inference and a significantly lower hallucination rate than general-purpose LLMs. This makes it ideal for large-scale API call scenarios.

  • Supported text formats: Currently supports text and html formats.

  • Translation intervention: Customize translation results to keep specific words untranslated (ABC to ABC), enforce specific translations (ABC to DEF), or remove words entirely (ABC to an empty value). This feature is often used to protect brand names. To apply these rules, pass the corresponding glossary ID in your request. You can typically upload up to 100,000 glossary entries. If you require more, contact technical support.

Translation quality comparison

Source text

Aidge translation

Other translation product 1

Other translation product 2

Aidge advantage

75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan

75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960.

Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960.

Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960

Identifies the main product more clearly.

New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men's Business Steel Watch

Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios

Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo.

Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada

Provides a more complete sentence structure, clearer phrasing, and natural sentence breaks.

Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet

Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille

Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille.

Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille

It clearly describes the main product as a 'key bag' instead of a 'keychain', which avoids ambiguity.

API

POST /ai/text/marco/translator

Quick start

import os
import json

data = json.dumps({
    "SourceTextList": ["Hello, how are you?"],
    "TargetLanguage": "zh",
    "FormatType": "text"
})

result = make_signed_request("/ai/text/marco/translator", data)
print(result)

Expected output:

{
  "Data": {
    "Translations": [
      {
        "TranslatedText": "你好,你好吗?",
        "DetectedLanguage": "en",
        "Characters": 19
      }
    ],
    "UsageMap": { "InputCharacterCount": "19" }
  },
  "RequestId": "21570000-0000-0000-0000-000000000001",
  "Message": "Success",
  "Code": "success",
  "Success": true
}

For complete instructions on request signing, SDK call examples in languages like Java, Python, and Go, and online debugging tools, see the Alibaba Cloud OpenAPI Developer Portal: Text Translation API (OpenAPI Portal).

Request parameters

Parameter

Type

Required

Description

SourceTextList

List<String>

Yes

An array of text strings to be translated. The total character count cannot exceed 50,000, and the array cannot contain more than 50 strings.

TargetLanguage

String

Yes

The language code for the target language. For details, see Supported languages.

SourceLanguage

String

No

The language code for the source language. If omitted, the service automatically performs language detection.

FormatType

String

No

The format of the source text. Valid values are text (default) and html.

Glossary

String

No

The ID of the glossary to apply. You must create the glossary in the console first and then provide its ID in the request. If this parameter is empty, no translation intervention is applied.

Example: "glossary_1"

Using HTML format

Set the FormatType parameter to html to preserve HTML tags during translation. You can wrap content that should not be translated, such as brand names or product models, in <span translate="no">...</span> tags.

Response fields

Field

Type

Description

Code

String

The business status code. success indicates a successful request.

Message

String

The response message. Success indicates a successful request.

Success

Boolean

Indicates whether the request was successful. true for success; false for failure.

RequestId

String

The unique identifier for the request.

Data.Translations

Array

An array of translation results. The elements in this array correspond one-to-one with the input strings in the SourceTextList array.

Data.Translations[].TranslatedText

String

The translated text for the corresponding input string.

Data.Translations[].DetectedLanguage

String

The language code of the detected source language. Returned only when the SourceLanguage parameter is omitted.

Data.Translations[].Characters

Number

The number of characters billed for the translation.

Data.UsageMap.InputCharacterCount

String

The total number of billable characters in the request. Use this value for billing reconciliation.

Supported languages

Text translation supports over 100 language directions across 49 languages. This includes bridging, where Traditional Chinese (zh-tw) is translated via Simplified Chinese (zh). The service also provides language detection for 24 languages. For a complete list of translation directions, supported detection languages, and language codes, see Language Mapping

Error codes

Common error codes: InvalidParameter (Invalid parameter, such as an unsupported language code or an excessively long value), InputContentBlocked (The input triggered a content security review), FreeQuotaExhausted (The free trial quota is exhausted), DownstreamUnavailable (The downstream model is unavailable), Throttling (HTTP 429 throttling, requires exponential backoff), and InternalError (The system is busy). For a complete list of error codes, see Error codes.

Limitations

  • Call mode: Synchronous.

  • The maximum API response time is 30 seconds. We recommend setting the request timeout to 30 seconds or more.

  • Maximum characters per request: 50,000.

  • Maximum number of text strings per request: 50.

  • Billing: $10.42 per million characters

  • To increase your QPS quota, contact technical support.